Regret a product.template, borra los datos de los productos sin script de migración.
This commit is contained in:
parent
b48b7df70a
commit
f93bc37942
2 changed files with 4 additions and 4 deletions
|
@ -8,8 +8,8 @@ from odoo import tools, models, fields, api, _
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class ProductProduct(models.Model):
|
class ProductTemplate(models.Model):
|
||||||
_inherit = "product.product"
|
_inherit = "product.template"
|
||||||
|
|
||||||
subtitle = fields.Char('Subtítulo')
|
subtitle = fields.Char('Subtítulo')
|
||||||
editorial = fields.Char('Editorial')
|
editorial = fields.Char('Editorial')
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
<record model="ir.ui.view" id="product_library_form_config">
|
<record model="ir.ui.view" id="product_library_form_config">
|
||||||
<field name="name">product.product.library.form</field>
|
<field name="name">product.template.library.form</field>
|
||||||
<field name="model">product.product</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="barcode" position="after">
|
<field name="barcode" position="after">
|
||||||
|
|
Loading…
Add table
Reference in a new issue