[REF]Change possible_existing_customer field from boolean to many2one

This commit is contained in:
braisab
2021-08-19 10:09:35 +02:00
parent 079dbf8ec7
commit 0e4042150f
4 changed files with 32 additions and 43 deletions

View File

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

View File

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