add new fields

This commit is contained in:
Wilson Gomez 2022-11-18 14:28:26 -05:00
parent 70f0ad45bb
commit f3cd672672
3 changed files with 11 additions and 4 deletions

View File

@ -1,12 +1,12 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
from trytond.transaction import Transaction
from trytond.pool import Pool, PoolMeta
from trytond.model import fields
from trytond.pool import PoolMeta
class Configuration(metaclass=PoolMeta):
__name__ = 'crm.configuration'
region_defect = fields.Many2One('crm.region_fiduprevisora', 'Region For Defect')
response_mail_template = fields.Many2One('email.template', 'Template Response Emails')
notification_mail_template = fields.Many2One('email.template', 'Template Notification Emails')

View File

@ -176,6 +176,9 @@ class CustomerService(metaclass=PoolMeta):
homeless = fields.Selection(OPTION_SELECT, 'Homeless', states={'required': False})
deprived_of_freedom = fields.Selection(OPTION_SELECT, 'Deprived Of Freedom',
states={'required': False})
nursing_mother = fields.Selection(OPTION_SELECT, 'Nursing Mother', states={'required': False})
older_adult = fields.Selection(OPTION_SELECT, 'Older Adult',
states={'required': False})
@classmethod
def __setup__(cls):

View File

@ -145,7 +145,7 @@ this repository contains the full copyright notices and license terms. -->
</xpath>
<xpath expr="/form/notebook/page[@id='info']/field[@name='age']"
position="after">
<group id='special_population' string='Special Population'>
<group id='special_population' string='Special Population' colspan="4">
<label name="displaced"/>
<field name="displaced"/>
<label name="victim_of_violence"/>
@ -158,6 +158,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="homeless"/>
<label name="deprived_of_freedom"/>
<field name="deprived_of_freedom"/>
<label name="nursing_mother"/>
<field name="nursing_mother"/>
<label name="older_adult"/>
<field name="older_adult"/>
</group>
</xpath>