[VIEW] ~fix available products in pos order
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 27 May 2020 12:30:26 +0000 (14:30 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 27 May 2020 12:30:26 +0000 (14:30 +0200)
view/point_of_sale.xml

index 7d7707f..9a87f8a 100644 (file)
@@ -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">
-                    <attribute name="domain">[('available_in_pos','=', True)]</attribute>
+                    <attribute name="domain">[('sale_ok','=', True),('available_in_pos','=', True)]</attribute>
                 </xpath>
             </field>
         </record>