This commit is contained in:
oscar alvarez 2023-05-09 10:28:27 -05:00
parent b8677f9872
commit a902c16555
7 changed files with 13 additions and 6 deletions

View File

@ -15,7 +15,7 @@ class Configuration(ModelSQL, ModelView):
'Charge Form Sequence', required=True)
phyto_export_sequence = fields.Many2One('ir.sequence',
'Phyto Export Sequence', required=True)
ica_register = fields.Char('ICA Register')
ica_register = fields.Char('ICA Register', required=True)
@staticmethod
def default_company():

Binary file not shown.

View File

@ -15,6 +15,7 @@ class Party(metaclass=PoolMeta):
class Company(metaclass=PoolMeta):
__name__ = 'company.company'
ica_register = fields.Char('ICA Register')
farm_code = fields.Char('Farm Code')
class CustomsGlobal(ModelSQL, ModelView):

View File

@ -11,6 +11,7 @@ class ProductStyle(ModelSQL, ModelView):
name = fields.Char('Name')
class Product(metaclass=PoolMeta):
class Template(metaclass=PoolMeta):
__name__ = 'product.template'
farming = fields.Boolean('Farming')
hts = fields.Char('HTS')

Binary file not shown.

View File

@ -2,10 +2,13 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr="/form/notebook/page[@id='reports']/field[@name='footer']"
<xpath expr="/form/notebook/page[@id='reports']/field[@name='footer']"
position="after">
<label name="ica_register"/>
<field name="ica_register"/>
<group id="farm_data">
<label name="farm_code"/>
<field name="farm_code"/>
<label name="ica_register"/>
<field name="ica_register"/>
</group>
</xpath>
</data>

View File

@ -6,5 +6,7 @@ this repository contains the full copyright notices and license terms. -->
position="after">
<label name="farming"/>
<field name="farming"/>
<label name="hts"/>
<field name="hts"/>
</xpath>
</data>