[VIEW] ~replace to attributes for config_id modifier in session form
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 16 Jan 2018 12:00:59 +0000 (13:00 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 16 Jan 2018 12:00:59 +0000 (13:00 +0100)
view/point_of_sale.xml

index 2e79f0e..5ac0901 100644 (file)
@@ -35,8 +35,9 @@
             <field name="model">pos.session</field>
             <field name="inherit_id" ref="point_of_sale.view_pos_session_form"/>
             <field name="arch" type="xml">
-                <xpath expr="//field[@name='config_id']" position="replace">
-                    <field name="config_id" widget="selection" domain="[('state','=', 'active')]"/>
+                <xpath expr="//field[@name='config_id']" position="attributes">
+                    <attribute name="widget">selection</attribute>
+                    <attribute name="domain">[('state', '=', 'active')]</attribute>
                 </xpath>
             </field>
         </record>