Files
odoo-usability/sale_force_invoice_status/sale_view.xml
2018-02-02 18:27:22 +01:00

27 lines
985 B
XML

<?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>