This question has been flagged
3807 Views

can someon tell me how ta set the domain value of the field location_dest_id1 in the following xml code ?

<field name="arch" type="xml">
                <form string="Déplacer des articles" version="7.0">
                    <group col="4">
                        <field name="mvtinternes_bonreception_rel" domain="[('picking_deplace','=',False),('type','=','in')]" on_change="itk_entrepot_mvtinternes_onchangebonreception(mvtinternes_bonreception_rel)"/>
                        <field name="mvtinternes_picking_rel" readonly="1"/>
                    </group>
                    <field name="mvtinternes_articleqty_rel" context="{'tree_view_ref':'itk_entrepot.itk_entrepot_moveline'}" domain="[('type','=','in'),('state','=','done'),('mouvementdustock_qtyadeplacer','!=',0)]">
                        <tree editable="bottom" create="false" name="test">
                            <field name="partner_id" string="Fournisseur"/>
                            <field name="prodlot_id" string="No de lot" />
                            <field name="product_id" string="Article"/>
                            <field name="mouvementdustock_qtyadeplacer" string="Qté à déplacer" on_change="itk_entrepot_fct_articleqty_onchangeqty(mouvementdustock_qtyadeplacer,mouvementdustock_qtymaxadeplacer)"/>
                            
                            <field name="location_id1" string="Emplacement Source" readonly="1"/>
                            <field name="mouvementdustock_placesrc1_rel" readonly="1"/>
                            <field name="location_dest_id1" required="1" string="Emplacement Destination" domain="[('usage','=','internal')]" on_change="itk_entrepot_fct_articleqty_onchangedestination(location_dest_id1)"/>
                            <field name="mouvementdustock_placedest1_rel" domain="[('places_emplacement_rel','=',location_dest_id1)]" required="1" on_change="itk_entrepot_fct_articleqty_onchangeplacedestination(mouvementdustock_placedest1_rel)"/>
                            <field name="state" invisible="1"/>
                            <field name="mouvementdustock_qtymaxadeplacer" invisible="1"/>
                            <field name="product_qty" invisible="1"/>
                        </tree>
                    </field>

 

Avatar
Discard