1
<?xml version="1.0" encoding="utf-8"?>
4
<record id="periodic_inventory_valuation_form" model="ir.ui.view">
5
<field name="name">Inventory Valuation</field>
6
<field name="model">periodic.inventory.valuation</field>
7
<field name="arch" type="xml">
8
<form string="Inventory Valuation" version="7.0">
11
name="load_valuation_items"
13
string="Update Valuation"
14
states="draft,confirm"
15
class="oe_highlight"/>
18
statusbar_visible="draft,confirmed,done"
19
statusbar_colors="{"draft":"blue","confirmed":"green","done":"red"}"/>
21
<h2><label for="name"/></h2>
22
<field name="name" nolabel="1"/>
23
<field name="date" required="1"/>
25
<page string='Products to Valuate'>
26
<field name='product_ids' nolabel='1' readonly='1'>
28
<field name='default_code'/>
30
<field name='uom_id'/>
34
<page string='Stock Moves'>
35
<field name='stock_move_ids' nolabel='1' readonly='1'/>
37
<page string='Invoice Lines'>
38
<field name='ail_ids' nolabel='1' readonly='1'>
41
<field name='account_id'/>
42
<field name='quantity'/>
43
<field name='currency_id'/>
44
<field name='price_unit'/>
45
<field name='price_subtotal'/>
49
<page string='Valuation Lines'>
50
<field name='pivl_ids' nolabel='1' readonly='1'>
52
<field name='product_id'/>
53
<field name='qty_init'/>
54
<field name='qty_purchase'/>
55
<field name='qty_sale'/>
56
<field name='qty_final'/>
57
<field name='uom_id'/>
58
<field name='average_cost'/>
59
<field name='valuation'/>
63
<page string='Accounting Entries'>
64
<field name='aml_ids' nolabel='1' readonly='1'/>
66
<page string='Other Info'>
69
<field name='move_id' readonly='1'/>
70
<field name='inventory_valuation_journal_id' readonly='1'
71
domain="[('type','=','general'),('company_id','=',company_id)]"/>
72
<field name='period_id' readonly='1'
73
domain="[('company_id','=',company_id)]"/>
76
<field name='company_id' required='1'/>
77
<field name='currency_id' readonly='1'/>
86
<record id="periodic_inventory_valuation_tree" model="ir.ui.view">
87
<field name="name">Inventory Valuation</field>
88
<field name="model">periodic.inventory.valuation</field>
89
<field name="arch" type="xml">
90
<tree string="Inventory Valuation" version="7.0">
96
<record id="company_form_periodic_valuation_view" model="ir.ui.view">
97
<field name="name">res.company.periodic.valuation</field>
98
<field name="model">res.company</field>
99
<field name="inherit_id" ref="base.view_company_form"/>
100
<field name="arch" type="xml">
101
<xpath expr="//page[@string='Configuration']" position="inside">
102
<group string="Inventory Valuation">
103
<field name="inventory_valuation_journal_id" required="1"
104
domain="[('type','=','general')]"/>
110
<record model="ir.actions.act_window" id="periodic_inventory_valuation_action">
111
<field name="name">Inventory Valuation</field>
112
<field name="res_model">periodic.inventory.valuation</field>
113
<field name="type">ir.actions.act_window</field>
114
<field name="view_type">form</field>
115
<field name="view_mode">tree,form</field>
116
<field name="help">Periodic Inventory Valuation Help</field>
120
id="inventory_valuation_main"
121
name="Inventory Valuation"
123
groups="group_periodicvaluation"
127
id="inventory_valuation"
128
name="Inventory Valuation"
129
parent="inventory_valuation_main"
131
groups="group_periodicvaluation"
135
id="periodic_inventory_valuation_menu"
136
name="Inventory Valuation"
137
parent="inventory_valuation"
138
action="periodic_inventory_valuation_action"
139
groups="group_periodicvaluation"
143
<!--groups="account_financial_report.group_afreport"
144
action="account_financial_report_action"