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">
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')]"
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)]"
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)]"
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)]"
467
get_selection="get_nomen"
468
on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)" />
470
<button colspan="4" icon="gtk-go-down" string="Fill lines" type="object" name="fill_lines" attrs="{'readonly': [('state', '!=', 'draft')]}" />
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">
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" />
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)"