3
<record id="view_allocation_stock_setup" model="ir.ui.view">
4
<field name="name">Allocated Stock Configuration</field>
5
<field name="model">allocation.stock.setup</field>
6
<field name="type">form</field>
7
<field name="inherit_id" ref="base.res_config_view_base"/>
8
<field name="arch" type="xml">
10
<form position="attributes">
11
<attribute name="string">Allocation Stock Configuration</attribute>
13
<xpath expr="//label[@string='description']" position="attributes">
14
<attribute name="string">Determines if the stock is allocated or not or both.</attribute>
16
<xpath expr='//separator[@string="title"]' position='attributes'>
17
<attribute name='string'>Configure Your Allocated Stock</attribute>
19
<xpath expr='//separator[@string="vsep"]' position='attributes'>
20
<attribute name='rowspan'>25</attribute>
21
<attribute name='string'></attribute>
23
<group string="res_config_contents" position="replace">
25
<field name="allocation_setup" on_change="allocation_on_change(allocation_setup)" />
26
<field name="unallocated_ok" readonly="1" />
27
<group colspan="5" col="4" attrs="{'invisible': [('error_ok', '=', False)]}">
28
<separator colspan="4" string="Error" />
29
<field name="error_ok" invisible="1" />
30
<field name="error_po_ok" invisible="1" />
31
<field name="error_cross_ok" invisible="1" />
32
<field name="error_central_ok" invisible="1" />
33
<field name="error_location_ok" invisible="1" />
34
<field name="error_msg" attrs="{'invisible': [('error_ok', '=', False)]}" nolabel="1" colspan="4" />
35
<button name="go_to_po" attrs="{'invisible': [('error_po_ok', '=', False)]}" string="Display PO" type="object" />
36
<button name="go_to_cross" attrs="{'invisible': [('error_cross_ok', '=', False)]}" string="Display Picking (Cross-docking)" type="object" />
37
<button name="go_to_central" attrs="{'invisible': [('error_central_ok', '=', False)]}" string="Display Picking (Central stock)" type="object" />
38
<button name="go_to_location" attrs="{'invisible': [('error_location_ok', '=', False)]}" string="Display Locations" type="object" />
46
<record id="action_allocation_stock_setup" model="ir.actions.act_window">
47
<field name="name">Allocated Setup Configuration</field>
48
<field name="type">ir.actions.act_window</field>
49
<field name="res_model">allocation.stock.setup</field>
50
<field name="view_id" ref="view_allocation_stock_setup"/>
51
<field name="view_type">form</field>
52
<field name="view_mode">form</field>
53
<field name="target">new</field>
56
<record id="allocation_stock_setup_todo" model="ir.actions.todo">
57
<field name="action_id" ref="action_allocation_stock_setup"/>
58
<field name="sequence">20</field>
59
<field name="restart">always</field>