add second attachment customer

This commit is contained in:
Camilo Sarmiento 2020-05-06 11:16:49 -05:00
parent 1191eee722
commit fb8750d88c
2 changed files with 9 additions and 5 deletions

View file

@ -181,7 +181,8 @@ class CustomerService(metaclass=PoolMeta):
health_provider = fields.Many2One('crm.health_provider', 'Health Provider', domain=[
('city', '=', Eval('city_region'))
])
attach_customer = fields.Char('Attach Customer', readonly=True)
attach_customer_1 = fields.Char('Attach Customer ...', readonly=True)
attach_customer_2 = fields.Char('Attach Customer ...', readonly=True)
id_document = fields.Char('Document')
email = fields.Char('Email')
sended_mail = fields.Boolean('Sended Email')
@ -294,7 +295,7 @@ class CustomerService(metaclass=PoolMeta):
])
if services_:
res['status'] = 'error',
res['msg'] = 'msg': 'Ya existe un PQR para el usuario: ' + service.party.name \
res['msg'] = 'Ya existe un PQR para el usuario: ' + service.party.name \
+ ' con el caso: "' + service.case.name + '" en los últimos 30 días',
# service.get_message('Ya existe un PQR para el usuario: ' + service.party.name \
# + ' con el caso: "' + service.case.name + '" en los últimos 30 días')

View file

@ -111,9 +111,12 @@ this repository contains the full copyright notices and license terms. -->
position="after">
<page string="Customers Attachments" id="customer_attachment" col="4">
<group id="localization" col="4" colspan="4">
<label name="attach_customer"/>
<field name="attach_customer" colspan="2"/>
<field name="attach_customer" widget="url"/>
<label name="attach_customer_1"/>
<field name="attach_customer_1" colspan="2"/>
<field name="attach_customer_1" widget="url"/>
<label name="attach_customer_2"/>
<field name="attach_customer_2" colspan="2"/>
<field name="attach_customer_2" widget="url"/>
</group>
</page>
<page string="Response Attachments" id="response_attachment" col="4">