mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] force save to readonly related partner fields in reservation
This commit is contained in:
@@ -174,14 +174,17 @@
|
||||
<group col="8">
|
||||
<group colspan="2" col="3" string="General Info" name="contact_details" >
|
||||
<field name="email" colspan="2" nolabel="1" placeholder="email" widget="email"
|
||||
force_save="1"
|
||||
attrs="{'invisible': [('reservation_type','in',('out'))],
|
||||
'readonly': [('partner_id', '!=', False),
|
||||
('email','!=', False)]}"/>
|
||||
<field name="mobile" colspan="2" nolabel="1" placeholder="mobile" widget="phone"
|
||||
force_save="1"
|
||||
attrs="{'invisible': [('reservation_type','in',('out'))],
|
||||
'readonly': [('partner_id', '!=', False),
|
||||
('mobile','!=', False)]}"/>
|
||||
<field name="phone" colspan="2" nolabel="1" placeholder="phone" widget="phone"
|
||||
force_save="1"
|
||||
attrs="{'invisible': [('reservation_type','in',('out'))],
|
||||
'required': [('channel_type','in',('door','mail','phone')),
|
||||
('mobile','=','')],
|
||||
|
||||
Reference in New Issue
Block a user