1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<record id="automatic_supply_form_view" model="ir.ui.view">
<field name="name">automatic.supply.form.view</field>
<field name="model">stock.warehouse.automatic.supply</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Automatic Supply">
<group colspan="2" col="2">
<separator string="General Information" />
<field name="name" />
</group>
<group colspan="2" col="2">
<separator string="Locations" />
<field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
<field name="location_id"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
<group colspan="2" col="4">
<separator string="Period / Frequence Rule" colspan="4" />
<field name="frequence_name" readonly="1" colspan="4" />
<field name="frequence_id" invisible="1" />
<label />
<button name="choose_change_frequence" type="object" string="Change/Choose Frequency" icon="terp-go-today" colspan="3" />
<field name="next_date" colspan="4" />
</group>
<group colspan="2" col="2">
<separator string="Misc" />
<field name="active" />
<field name="procurement_id" />
</group>
<separator colspan="4" string="Product filters" />
<field name="sublist_id" attrs="{'readonly': [('nomen_manda_0', '!=', False)]}" />
<group colspan="2" col="4" attrs="{'readonly': [('sublist_id', '!=', False)]}">
<field name="nomen_manda_0"
domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
widget="selection"
on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
/>
<field name="nomen_manda_1"
domain="[('id','=', 0)]"
widget="selection"
get_selection="get_nomen"
on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
/>
<field name="nomen_manda_2"
domain="[('id','=', 0)]"
widget="selection"
get_selection="get_nomen"
on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
/>
<field name="nomen_manda_3"
domain="[('id','=', 0)]"
widget="selection"
get_selection="get_nomen"
on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
/>
</group>
<button colspan="4" icon="gtk-go-down" string="Fill lines" type="object" name="fill_lines" />
<group colspan="4" col="4">
<separator colspan="4" string="Order quantity by product" />
<field name="line_ids" nolabel="1" colspan="4">
<tree string="Products" editable="top">
<field name="product_id" on_change="onchange_product_id(product_id)" domain="[('list_ids', '=', parent.sublist_id)]"/>
<field name="product_uom_id" domain="[('uom_by_product', '=', product_id)]" />
<field name="product_qty" />
</tree>
</field>
</group>
</form>
</field>
</record>
<record id="automatic_supply_tree_view" model="ir.ui.view">
<field name="name">automatic.supply.tree.view</field>
<field name="model">stock.warehouse.automatic.supply</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Automatic Supply rules">
<field name="name" />
<field name="warehouse_id" />
<field name="location_id" />
<field name="frequence_id" />
<field name="sublist_id" invisible="1" />
<field name="nomen_manda_0" invisible="1" />
<field name="nomen_manda_1" invisible="1" />
<field name="nomen_manda_2" invisible="1" />
<field name="nomen_manda_3" invisible="1" />
</tree>
</field>
</record>
<record id="automatic_supply_search_view" model="ir.ui.view">
<field name="name">automatic.supply.search.view</field>
<field name="model">stock.warehouse.automatic.supply</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Automatic Supply">
<group expand="1" string="Filters...">
<field name="name" default_focus="1" colspan="4" />
<field name="location_id" eval="context.get('location_id', False)" colspan="4" />
<field name="product_ids" widget="many2one" string="Product" />
</group>
<newline/>
<group expand="1" string="Group By...">
<filter name="group_location" string="Location" icon="terp-go-home" context="{'group_by':'location_id'}"/>
<separator orientation="vertical"/>
<filter string="Sublist" icon="terp-go-week" domain="" context="{'group_by':'sublist_id'}"/>
<filter string="Main type" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_0'}"/>
<filter string="Group" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_1'}"/>
<filter string="Family" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_2'}"/>
<filter string="Root" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_3'}"/>
</group>
</search>
</field>
</record>
<record id="action_automatic_supply_tree" model="ir.actions.act_window">
<field name="name">Automatic Supply</field>
<field name="res_model">stock.warehouse.automatic.supply</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'withnum': 1}</field>
<field name="help">You can define automatic replenishment rules, so that OpenERP will periodically create purchase orders according to the quantity to order you have defined and according to the choosen frequency.</field>
</record>
<menuitem action="action_automatic_supply_tree"
id="menu_automatic_supply"
sequence="2"
parent="stock_schedule.stock_automatic_procurements_menu" />
</data>
</openerp>
|