mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF]pms: Refactor computes of partner_id, partner_name, email and mobile in folio and reservation
This commit is contained in:
@@ -304,13 +304,13 @@
|
||||
attrs="{'invisible':[('reservation_type','in',('out'))]}"
|
||||
/>
|
||||
<field
|
||||
name="partner_email"
|
||||
name="email"
|
||||
placeholder="email"
|
||||
widget="email"
|
||||
attrs="{'invisible':[('reservation_type','in',('out'))]}"
|
||||
/>
|
||||
<field
|
||||
name="partner_mobile"
|
||||
name="mobile"
|
||||
placeholder="mobile"
|
||||
widget="phone"
|
||||
attrs="{'invisible':[('reservation_type','in',('out'))]}"
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
<div class="col pl-md-0">
|
||||
<div
|
||||
t-field="reservation.partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["name", "partner_email", "partner_mobile"]}'
|
||||
t-options='{"widget": "contact", "fields": ["name", "email", "mobile"]}'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user