forked from OCA/stock-logistics-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stock_view.xml
42 lines (38 loc) · 1.92 KB
/
stock_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- stock.picking -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock_picking_invoice_link.stock.picking.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock_account.view_picking_inherit_form2"/>
<field name="arch" type="xml">
<field name="invoice_state" position="after">
<field name="invoice_id" string="Invoice" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}" context="{'form_view_ref': invoice_view_xmlid}"/>
<field name="invoice_view_xmlid" invisible="1"/>
</field>
</field>
</record>
<!-- stock.move -->
<record id="view_move_form" model="ir.ui.view">
<field name="name">stock_picking_invoice_link.stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock_account.view_move_form_inherit"/>
<field name="arch" type="xml">
<field name="invoice_state" position="after">
<field name="invoice_line_id" groups="account.group_account_invoice"/>
</field>
</field>
</record>
<record id="view_move_picking_form" model="ir.ui.view">
<field name="name">stock_picking_invoice_link.stock.move.picking.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock_account.view_move_picking_from_stockaccount_inherit"/>
<field name="arch" type="xml">
<field name="invoice_state" position="after">
<field name="invoice_line_id" groups="account.group_account_invoice"/>
</field>
</field>
</record>
</data>
</openerp>