Odoo Help


Parsing XML ????

on 9/9/14, 8:00 AM 793 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"/>
                    <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"/>


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/9/14, 8:00 AM
Seen: 793 times
Last updated: 3/16/15, 8:10 AM