[REF]Refactor pms_reservation possible_existing_customers

This commit is contained in:
braisab
2021-09-10 16:37:20 +02:00
parent 70de629277
commit 49d64f9479
2 changed files with 41 additions and 15 deletions

View File

@@ -140,13 +140,14 @@
class="alert alert-warning"
role="alert"
style="margin-bottom:0px;"
attrs="{'invisible': [('is_possible_existing_customer_id','=',[])]}"
attrs="{'invisible': [('possible_existing_customer_ids','=',[])]}"
>
There is a customer with this email or mobile, do you want to add it to the reservation?
<field name="is_possible_existing_customer_id" invisible="1" />
<field
name="add_possible_customer"
attrs="{'invisible': [('is_possible_existing_customer_id','=',False)]}"
A customer/s has this email or mobile, do you want to add it?
<field name="possible_existing_customer_ids" invisible="1" />
<button
name="open_wizard_several_partners"
string="Add customer"
type="object"
/>
</div>
<sheet>