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] ~fix available products in pos order
[burette/bikecoop.git]
/
view
/
point_of_sale.xml
diff --git
a/view/point_of_sale.xml
b/view/point_of_sale.xml
index
5ac0901
..
9a87f8a
100644
(file)
--- a/
view/point_of_sale.xml
+++ b/
view/point_of_sale.xml
@@
-13,7
+13,7
@@
<field name="partner_id" on_change="onchange_partner_id(partner_id, context)" context="{'search_default_customer': 1, 'form_view_ref': 'bikecoop.view_bikecoop_members_form'}" attrs="{'readonly': [('state','=', 'invoiced')]}"/>
</xpath>
<xpath expr="//tree/field[@name='product_id']" position="attributes">
<field name="partner_id" on_change="onchange_partner_id(partner_id, context)" context="{'search_default_customer': 1, 'form_view_ref': 'bikecoop.view_bikecoop_members_form'}" attrs="{'readonly': [('state','=', 'invoiced')]}"/>
</xpath>
<xpath expr="//tree/field[@name='product_id']" position="attributes">
- <attribute name="domain">[('available_in_pos','=', True)]</attribute>
+ <attribute name="domain">[('
sale_ok','=', True),('
available_in_pos','=', True)]</attribute>
</xpath>
</field>
</record>
</xpath>
</field>
</record>
@@
-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>