1
<?xml version="1.0" encoding="utf-8" ?>
5
<record id="mission_stock_wizard_view" model="ir.ui.view">
6
<field name="name">mission.stock.wizard.view</field>
7
<field name="model">mission.stock.wizard</field>
8
<field name="type">form</field>
9
<field name="arch" type="xml">
10
<form string="Mission stock report">
11
<separator colspan="4" string="Mission stock" />
12
<field name="report_id" widget="selection" on_change="report_change(report_id)" />
13
<field name="last_update" />
14
<separator colspan="4" string="Stock valuation" />
15
<field name="with_valuation" />
16
<separator colspan="4" string="Split Stock" />
17
<field name="split_stock" />
18
<separator colspan="4" string="Actions" />
19
<button name="update" string="Update (in background)" type="object" colspan="4" icon="gtk-remove" />
20
<button special="cancel" string="Close window" icon="gtk-cancel" />
21
<button name="open_products_view" string="Open report" type="object" icon="gtk-go-forward" colspan="3" />
26
<record id="mission_stock_wizard_action" model="ir.actions.act_window">
27
<field name="name">Mission stock report</field>
28
<field name="res_model">mission.stock.wizard</field>
29
<field name="view_type">form</field>
30
<field name="view_mode">form</field>
31
<field name="target">new</field>
34
<menuitem id="mission_stock_wizard_menu"
35
parent="stock.next_id_61"
37
action="mission_stock_wizard_action" />
39
<record id="mission_stock_line_search_view" model="ir.ui.view">
40
<field name="name">mission.stock.line.search.view</field>
41
<field name="model">stock.mission.report.line</field>
42
<field name="type">search</field>
43
<field name="arch" type="xml">
44
<search string="Mission stock lines">
45
<filter string="Stockable" icon="terp-accessories-archiver" domain="[('type','=','product')]"/>
46
<filter string="Non-Stockable" icon="terp-accessories-archiver" domain="[('type','=','consu')]"/>
47
<filter string="Service" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
48
<filter string="Service with Reception" icon="terp-accessories-archiver" domain="[('type','=','service_recep')]" />
49
<separator orientation="vertical"/>
50
<field name="default_code"/>
52
<field name="categ_id" widget="selection" operator="child_of"/>
54
<filter string="Single Item" icon="terp-accessories-archiver" domain="[('subtype','=','single')]"/>
55
<filter string="Kit/Module" icon="terp-accessories-archiver" domain="[('subtype','=','kit')]"/>
56
<filter string="Asset" icon="terp-accessories-archiver" domain="[('subtype','=','asset')]"/>
58
<group expand="1" string="Nomenclature Filters...">
59
<field name="nomen_manda_0_s"
60
domain="[('parent_id', '=', -1)]"
62
on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, True, context)" />
63
<field name="nomen_manda_1_s"
64
domain="[('parent_id', '=', -1)]"
66
on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, True, context)" />
67
<field name="nomen_manda_2_s"
68
domain="[('parent_id', '=', -1)]"
70
on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, True, context)" />
71
<field name="nomen_manda_3_s"
72
domain="[('parent_id', '=', -1)]"
74
on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, True, context)" />
77
<group expand="0" string="Optional Nomenclature Filters...">
78
<field name="nomen_sub_0_s" domain="[('parent_id', '=', -1)]" widget="selection" />
79
<field name="nomen_sub_1_s" domain="[('parent_id', '=', -1)]" widget="selection" />
80
<field name="nomen_sub_2_s" domain="[('parent_id', '=', -1)]" widget="selection" />
81
<field name="nomen_sub_3_s" domain="[('parent_id', '=', -1)]" widget="selection" />
82
<field name="nomen_sub_4_s" domain="[('parent_id', '=', -1)]" widget="selection" />
83
<field name="nomen_sub_5_s" domain="[('parent_id', '=', -1)]" widget="selection" />
86
<group expand="0" string="Group by...">
87
<filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" />
88
<separator orientation="vertical"/>
89
<filter string='Default UOM' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}" />
90
<separator orientation="vertical"/>
91
<filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
97
<record id="mission_stock_line_list_view" model="ir.ui.view">
98
<field name="name">mission.stock.product.list.view</field>
99
<field name="model">stock.mission.report.line</field>
100
<field name="type">tree</field>
101
<field name="arch" type="xml">
102
<tree string="Stock mission report" hide_new_button="1" hide_delete_button="1" editable="top" noteditable="1">
103
<field name="default_code" />
104
<field name="name" />
105
<field name="uom_id" />
106
<field name="cost_price" invisible="not context.get('with_valuation')" />
107
<field name="currency_id" invisible="not context.get('with_valuation')" />
108
<field name="internal_qty" />
109
<field name="internal_val" invisible="not context.get('with_valuation')" />
110
<!-- field name="in_pipe_coor_qty" />
111
<field name="in_pipe_coor_val" invisible="not context.get('with_valuation')" / -->
112
<field name="stock_qty" invisible="not context.get('split_stock')" />
113
<field name="central_qty" invisible="not context.get('split_stock')" />
114
<field name="wh_qty" invisible="context.get('split_stock')" />
115
<field name="cross_qty" />
116
<!-- <field name="cross_val" invisible="not context.get('with_valuation')" /> -->
117
<field name="secondary_qty" />
118
<!-- <field name="secondary_val" invisible="not context.get('with_valuation')" /> -->
119
<field name="cu_qty" />
120
<!-- <field name="cu_val" invisible="not context.get('with_valuation')" /> -->
121
<field name="product_amc" />
122
<field name="reviewed_consumption" />
123
<field name="in_pipe_qty" />
124
<field name="categ_id" invisible="1" />
125
<field name="type" invisible="1" />