hi
i want to set the domain of the field location_dest_id1, in the following XML:
<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" >
<field name="partner_id" string="Fournisseur"/>
<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>
with the following python code
for node in doc.xpath("//field[@name='mvtinternes_articleqty_rel']") :
for node1 in node.xpath("//field[@name='location_dest_id1']"):
print "node1",node1
node1.set('domain', "[('id','in',%s)]"%domain)
but i i havent any result, can someone help me