model of products

This commit is contained in:
sinergia 2023-03-31 11:31:18 -05:00
parent b766a9ceda
commit 48ef146c44
3 changed files with 14 additions and 11 deletions

View File

@ -2,13 +2,14 @@
# this repository contains the full copyright notices and license terms. # this repository contains the full copyright notices and license terms.
from trytond.pool import Pool from trytond.pool import Pool
from . import party, product, maintenance from . import party, product, configuration, maintenance
__all__ = ['register'] __all__ = ['register']
def register(): def register():
Pool.register( Pool.register(
configuration.Configuration,
party.Address, party.Address,
party.Party, party.Party,
product.Template, product.Template,

View File

@ -13,15 +13,15 @@
<field name="inherit" ref="product.template_view_tree"/> <field name="inherit" ref="product.template_view_tree"/>
<field name="name">template_tree</field> <field name="name">template_tree</field>
</record> </record>
<!-- <record model="ir.ui.view" id="pattern_view_form"> --> <record model="ir.ui.view" id="pattern_view_form">
<!-- <field name="model">optical_equipment.product_pattern</field> --> <field name="model">optical_equipment.product_pattern</field>
<!-- <field name="type">form</field> --> <field name="type">form</field>
<!-- <field name="name">pattern_form</field> --> <field name="name">pattern_form</field>
<!-- </record> --> </record>
<!-- <record model="ir.ui.view" id="pattern_view_tree"> --> <record model="ir.ui.view" id="pattern_view_tree">
<!-- <field name="model">optical_equipment.product_pattern</field> --> <field name="model">optical_equipment.product_pattern</field>
<!-- <field name="type">tree</field> --> <field name="type">tree</field>
<!-- <field name="name">pattern_tree</field> --> <field name="name">pattern_tree</field>
<!-- </record> --> </record>
</data> </data>
</tryton> </tryton>

View File

@ -8,6 +8,8 @@ depends:
product_image product_image
product_measurements product_measurements
xml: xml:
configuration.xml
equipment.xml
party.xml party.xml
uom.xml uom.xml
product.xml product.xml