blob: 62c8cdc5f86114565ff6d3fd476064c6afd481af (
plain)
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
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">stock.move.form.inherit</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside" >
<button name="action_get_account_moves" icon="fa-usd" class="oe_stat_button" string="Accounting Entries" type="object" groups="account.group_account_readonly"/>
</xpath>
</field>
</record>
<record id="view_inventory_form_inherit" model="ir.ui.view">
<field name="name">stock.inventory.form.inherit</field>
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='company_id']" position="before">
<field name="accounting_date" attrs="{'readonly':[('state','=', 'done')]}"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
<field name="has_account_moves" invisible="1"/>
<button name="action_get_account_moves" type="object"
string="Accounting Entries" icon="fa-usd" class="oe_stat_button"
attrs="{'invisible': [('has_account_moves', '=', False)]}"/>
</xpath>
</field>
</record>
<record id="view_inventory_tree" model="ir.ui.view">
<field name="name">stock.inventory.tree.inherit.stock.account</field>
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='date']" position="after">
<field name="accounting_date" optional="hide"/>
</xpath>
</field>
</record>
<record id="view_location_form_inherit" model="ir.ui.view">
<field name="name">stock.location.form.inherit</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='additional_info']" position="after">
<group string="Accounting Information" attrs="{'invisible':[('usage','not in',('inventory','production'))]}">
<field name="valuation_in_account_id" options="{'no_create': True}"/>
<field name="valuation_out_account_id" options="{'no_create': True}"/>
</group>
</xpath>
</field>
</record>
<record id="view_stock_return_picking_form_inherit_stock_account" model="ir.ui.view">
<field name="name">stock.return.picking.stock.account.form</field>
<field name="inherit_id" ref="stock.view_stock_return_picking_form"/>
<field name="model">stock.return.picking</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_return_moves']/tree" position="inside">
<field name="to_refund" groups="base.group_no_one"/>
</xpath>
</field>
</record>
</data>
</odoo>
|