add new fields in CustomerService

This commit is contained in:
Elvis 2023-08-16 15:38:09 -05:00
parent aa8d07ec79
commit ecd69d8989
4 changed files with 23 additions and 4 deletions

View File

@ -179,10 +179,18 @@ class CustomerService(metaclass=PoolMeta):
('pendiente', 'Pendiente')
], 'Soporte', states={'required': True}
)
pending = fields.Selection(PENDING, 'Pending',
states={'invisible':
(Eval('support') != 'ok')
})
# pending = fields.Selection(PENDING, 'Pending',
# states={'invisible':
# (Eval('support') != 'ok')
# })
pending = fields.MultiSelection(PENDING, 'Pending',
states={
'invisible': (Eval('support') != 'ok')
})
other = fields.Text('Other')
# states={
# 'invisible': ~Eval('invoice_types', []),
# }, translate=True, depends=['pending'],)
detailed_especific_1 = fields.Many2One('list.specialty',
'Detailed Especific 1', states={'required': True})
detailed_especific_2 = fields.Many2One('list.specialty', 'Detailed Especific 2')

Binary file not shown.

View File

@ -122,6 +122,10 @@ msgctxt "field:crm.customer_service,older_adult:"
msgid "Older Adult"
msgstr "Adulto Mayor"
msgctxt "field:crm.customer_service,other:"
msgid "Other"
msgstr "Otro"
msgctxt "field:crm.customer_service,other_city:"
msgid "Other City"
msgstr "Otra Ciudad"

View File

@ -96,8 +96,15 @@ this repository contains the full copyright notices and license terms. -->
<newline/>
<label name="support"/>
<field name="support"/>
<newline/>
<!-- <label name="pending_multi"/> -->
<!-- <field name="pending_multi"/> -->
<label name="pending"/>
<field name="pending"/>
<newline/>
<label name="other"/>
<newline/>
<field name="other" colspan="4"/>
</xpath>
<xpath expr="/form/notebook/page[@id='summary']/field[@name='diagnose']"
position="replace">