31 lines
1015 B
XML
31 lines
1015 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013-2015 Akretion (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
|
|
<record id="view_picking_inherit_form2" model="ir.ui.view">
|
|
<field name="name">stock_invoice_try_again.view_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">
|
|
<button string="Create Invoice" position="after">
|
|
<button name="revert_to_tobeinvoiced"
|
|
string="Revert to To be Invoiced"
|
|
type="object"
|
|
confirm="Are you sure you want to revert the 'Invoice Control' to 'To be Invoiced' ?"
|
|
attrs="{'invisible': [('invoice_state', '!=', 'invoiced')]}"
|
|
groups="account.group_account_invoice" />
|
|
</button>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
</data>
|
|
</openerp>
|