dépôts
/
burette
/
bikecoop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[VIEW] +make pos_config field readonly when the session is not in opening control...
[burette/bikecoop.git]
/
view
/
point_of_sale.xml
diff --git
a/view/point_of_sale.xml
b/view/point_of_sale.xml
index
5ac0901
..
7d7707f
100644
(file)
--- a/
view/point_of_sale.xml
+++ b/
view/point_of_sale.xml
@@
-37,7
+37,8
@@
<field name="arch" type="xml">
<xpath expr="//field[@name='config_id']" position="attributes">
<attribute name="widget">selection</attribute>
<field name="arch" type="xml">
<xpath expr="//field[@name='config_id']" position="attributes">
<attribute name="widget">selection</attribute>
- <attribute name="domain">[('state', '=', 'active')]</attribute>
+ <attribute name="domain">[('state', 'in', ('active',))]</attribute>
+ <attribute name="attrs">{'readonly': [('state', 'not in', ('opening_control',))]}</attribute>
</xpath>
</field>
</record>
</xpath>
</field>
</record>