~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to specific_rules/specific_rules_view.xml

  • Committer: duy.vo at msf
  • Date: 2012-09-18 21:05:00 UTC
  • mfrom: (1175 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 1188.
  • Revision ID: duy.vo@geneva.msf.org-20120918210500-qw8i815ns8xtk3bv
UF-1055: Merged with trunk 1175

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        <record id="view_production_lot_expiry_date_tree" model="ir.ui.view">
132
132
            <field name="name">stock.production.lot.expiry.date.tree</field>
133
133
            <field name="model">stock.production.lot</field>
 
134
            <field name="priority">99</field>
134
135
            <field name="type">tree</field>
135
136
            <field name="priority" eval="200" />
136
137
            <field name="arch" type="xml">
433
434
                
434
435
                </data>
435
436
                </field>
436
 
        </record>
 
437
        </record>
 
438
 
 
439
        <!-- Add product filters on Physical inventories to fill lines with list or nomenclature level -->
 
440
        <record id="stock_inventory_form" model="ir.ui.view">
 
441
            <field name="name">stock.inventory.form</field>
 
442
            <field name="model">stock.inventory</field>
 
443
            <field name="type">form</field>
 
444
            <field name="inherit_id" ref="stock.view_inventory_form" />
 
445
            <field name="arch" type="xml">
 
446
                <xpath expr="//notebook" position="before">
 
447
                    <separator colspan="4" string="Product filters" />
 
448
                    <field name="sublist_id" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('nomen_manda_0', '!=', False)]}"/>
 
449
                    <group colspan="2" col="4" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('sublist_id', '!=', False)]}">
 
450
                        <field name="nomen_manda_0"
 
451
                               domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
 
452
                               widget="selection"
 
453
                               on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)" />
 
454
                        <field name="nomen_manda_1"
 
455
                               domain="[('id','=', 0)]"
 
456
                               widget="selection"
 
457
                               get_selection="get_nomen"
 
458
                               on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)" />
 
459
                        <field name="nomen_manda_2"
 
460
                               domain="[('id','=', 0)]"
 
461
                               widget="selection"
 
462
                               get_selection="get_nomen"
 
463
                               on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)" />
 
464
                        <field name="nomen_manda_3"
 
465
                               domain="[('id','=', 0)]"
 
466
                               widget="selection"
 
467
                               get_selection="get_nomen"
 
468
                               on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)" />
 
469
                    </group>
 
470
                    <button colspan="4" icon="gtk-go-down" string="Fill lines" type="object" name="fill_lines" attrs="{'readonly': [('state', '!=', 'draft')]}" />
 
471
                </xpath>
 
472
            </field>
 
473
        </record>
437
474
        
438
475
        <record id="stock_inventory_line_tree" model="ir.ui.view">
439
476
            <field name="name">stock.inventory.line.tree</field>
441
478
            <field name="type">tree</field>
442
479
            <field name="inherit_id" ref="stock.stock_inventory_line_tree" />
443
480
            <field name="arch" type="xml">
444
 
                <data>
 
481
                <data>
445
482
                        <xpath expr="/tree/field[@name='product_uom']" position="after">
446
483
                            <field name="reason_type_id" widget="selection" domain="[('is_inventory', '=', True)]" />
447
484
                            <field name="comment" />
448
 
                        </xpath>
449
 
                            
 
485
                    </xpath>
 
486
 
450
487
                                <field name="prod_lot_id" position="replace">
451
488
                                        <field name="prod_lot_id"
452
489
                                on_change="change_lot(prod_lot_id)"
466
503
                                <field name="kc_check" />
467
504
                                        <field name="ssl_check" invisible="True" />
468
505
                                        <field name="dg_check" />
469
 
                                        <field name="np_check" />
 
506
                        <field name="np_check" />
 
507
                    <field name="has_problem" invisible="True" />
470
508
                                </field>
471
509
                </data>
472
510
            </field>