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 file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms. # this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields from trytond.model import fields
from trytond.transaction import Transaction from trytond.pool import PoolMeta
from trytond.pool import Pool, PoolMeta
class Configuration(metaclass=PoolMeta): class Configuration(metaclass=PoolMeta):
__name__ = 'crm.configuration' __name__ = 'crm.configuration'
region_defect = fields.Many2One('crm.region_fiduprevisora', 'Region For Defect') region_defect = fields.Many2One('crm.region_fiduprevisora', 'Region For Defect')
response_mail_template = fields.Many2One('email.template', 'Template Response Emails') response_mail_template = fields.Many2One('email.template', 'Template Response Emails')
notification_mail_template = fields.Many2One('email.template', 'Template Notification 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}) homeless = fields.Selection(OPTION_SELECT, 'Homeless', states={'required': False})
deprived_of_freedom = fields.Selection(OPTION_SELECT, 'Deprived Of Freedom', deprived_of_freedom = fields.Selection(OPTION_SELECT, 'Deprived Of Freedom',
states={'required': False}) 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 @classmethod
def __setup__(cls): def __setup__(cls):

View file

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