Add module sale_force_invoice_status
This commit is contained in:
26
sale_force_invoice_status/sale_view.xml
Normal file
26
sale_force_invoice_status/sale_view.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
© 2018 Akretion (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_order_form" model="ir.ui.view">
|
||||
<field name="name">sale_force_invoice_status.sale.order.form</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<button name="action_cancel" type="object" position="before">
|
||||
<button name="force_invoice_status_to_invoiced"
|
||||
type="object" string="Force to Invoiced"
|
||||
confirm="Are you sure you want to force this order to Invoiced ?"
|
||||
attrs="{'invisible': ['|', ('state', 'not in', ('sale', 'done')), ('invoice_status', '!=', 'to invoice')]}"
|
||||
groups="sales_team.group_sale_manager"/>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user