~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to specific_rules/specific_rules_view.xml

[MERGE] Merge UF-1763

Show diffs side-by-side

added added

removed removed

Lines of Context:
480
480
                    <xpath expr="/form//field[@name='inventory_line_id']/tree//field[@name='product_id']" position="attributes">
481
481
                        <attribute name="domain">[('type', 'not in', ('consu', 'service', 'service_recep'))]</attribute>
482
482
                    </xpath>
 
483
                    
 
484
                    <xpath expr="//tree/field[@name='product_uom']" position="attributes">
 
485
                        <attribute name="on_change">onchange_uom_qty(product_uom, product_qty)</attribute>
 
486
                    </xpath>
 
487
                    
 
488
                    <xpath expr="//tree/field[@name='product_qty']" position="attributes">
 
489
                        <attribute name="on_change">onchange_uom_qty(product_uom, product_qty)</attribute>
 
490
                    </xpath>
 
491
 
483
492
 
484
493
            </field>
485
494
        </record>
634
643
                <field name="type">form</field>
635
644
                <field name="inherit_id" ref="procurement.view_warehouse_orderpoint_form" />
636
645
                <field name="arch" type="xml">
637
 
                        <data>                          
 
646
                        <data>   
 
647
                        
 
648
                                        <xpath expr="//field[@name='product_id']" position="attributes">
 
649
                        <attribute name="on_change">onchange_product_id(product_id, product_uom, product_min_qty, product_max_qty)</attribute>
 
650
                    </xpath>
 
651
                                                
638
652
                                <xpath expr="/form//field[@name='product_uom']" position="attributes">
639
 
                                        <attribute name="on_change">onchange_uom(product_id, product_uom)</attribute>
 
653
                                        <attribute name="on_change">onchange_uom_qty(product_id, product_uom, product_min_qty, product_max_qty)</attribute>
640
654
                                        <attribute name="domain">[('uom_by_product', '=', product_id)]</attribute>
641
655
                                </xpath>
 
656
                                
 
657
                                <xpath expr="//field[@name='product_min_qty']" position="attributes">
 
658
                        <attribute name="on_change">onchange_uom_qty(product_id, product_uom, product_min_qty, product_max_qty)</attribute>
 
659
                    </xpath>
 
660
 
 
661
                    <xpath expr="//field[@name='product_max_qty']" position="attributes">
 
662
                        <attribute name="on_change">onchange_uom_qty(product_id, product_uom, product_min_qty, product_max_qty)</attribute>
 
663
                    </xpath>
 
664
                                
642
665
                        </data>
643
666
                </field>
644
667
        </record>