forked from OCA/account-closing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_cutoff_view.xml
54 lines (47 loc) · 2.18 KB
/
account_cutoff_view.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<!-- Form view -->
<record id="account_cutoff_form" model="ir.ui.view">
<field name="name">account.cutoff.picking.form</field>
<field name="model">account.cutoff</field>
<field name="inherit_id" ref="account_cutoff_base.account_cutoff_form"/>
<field name="arch" type="xml">
<button name="back2draft" position="after">
<button class="oe_highlight" name="get_lines_from_picking" string="Re-Generate Lines from Picking" type="object" states="draft" invisible="'accrued' not in context.get('type', '-')"/>
</button>
</field>
</record>
<!-- Form view for lines -->
<record id="account_cutoff_line_form" model="ir.ui.view">
<field name="name">account.cutoff.line.picking.form</field>
<field name="model">account.cutoff.line</field>
<field name="inherit_id" ref="account_cutoff_base.account_cutoff_line_form"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="stock_move_id" invisible="'accrued' not in context.get('type', '-')"/>
<field name="product_id" invisible="'accrued' not in context.get('type', '-')" />
<field name="picking_id" invisible="'accrued' not in context.get('type', '-')"/>
<field name="picking_date_done" invisible="'accrued' not in context.get('type', '-')"/>
</field>
</field>
</record>
<!-- Tree view for lines -->
<record id="account_cutoff_line_tree" model="ir.ui.view">
<field name="name">account.cutoff.line.picking.tree</field>
<field name="model">account.cutoff.line</field>
<field name="inherit_id" ref="account_cutoff_base.account_cutoff_line_tree"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="stock_move_id" invisible="'accrued' not in context.get('type', '-')"/>
<field name="picking_date_done" invisible="'accrued' not in context.get('type', '-')"/>
</field>
</field>
</record>
</data>
</openerp>