Compare commits

..

No commits in common. "823589afb041cefb66dabca57f937507e83d049c" and "386ae33d805a6dbb4d7be225e3dfa1b34055246e" have entirely different histories.

4 changed files with 0 additions and 27 deletions

View file

@ -1 +0,0 @@
from . import models

View file

@ -1,10 +0,0 @@
{
'name': 'Website Descrition Internal',
'version': '16.0.1.0.0',
'summary': 'Sobrescribe el campo website_description y devuelve el campo internal description.',
'author': 'Criptomart',
'depends': ['product','website_sale'],
'data': [],
'installable': True,
'application': False,
}

View file

@ -1 +0,0 @@
from . import product_template

View file

@ -1,15 +0,0 @@
from odoo import models, fields, api
class ProductTemplate(models.Model):
_inherit = 'product.template'
website_description = fields.Html(
string='Website Description',
compute='_compute_website_description',
store=True
)
@api.depends('description')
def _compute_website_description(self):
for record in self:
record.website_description = record.description