54 lines
2.4 KiB
XML
54 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2017-2022 Akretion France (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="sale_confirm_form" model="ir.ui.view">
|
|
<field name="name">sale.confirm.form</field>
|
|
<field name="model">sale.confirm</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Confirm Order">
|
|
<div><p>At this stage, you have received the Purchase Order from the customer and you are about to convert the related quotation to an order.</p></div>
|
|
<div class="alert alert-warning" role="alert" attrs="{'invisible': [('sale_warn', '!=', 'warning')]}">
|
|
<field name="sale_warn_msg"/>
|
|
</div>
|
|
<div class="alert alert-danger" role="alert" attrs="{'invisible': [('sale_warn', '!=', 'block')]}">
|
|
<field name="sale_warn_msg"/>
|
|
</div>
|
|
<group name="main" attrs="{'invisible': [('sale_warn', '=', 'block')]}">
|
|
<field name="sale_id" invisible="1"/>
|
|
<field name="sale_warn" invisible="1"/>
|
|
<field name="client_order_ref"/>
|
|
<field name="partner_invoice_id"
|
|
context="{'default_type': 'invoice', 'show_address': 1}"
|
|
options="{'always_reload': True}"
|
|
groups="account.group_delivery_invoice_address"/>
|
|
<field name="partner_shipping_id"
|
|
context="{'default_type': 'delivery', 'show_address': 1}"
|
|
options="{'always_reload': True}"
|
|
groups="account.group_delivery_invoice_address"/>
|
|
<field name="commitment_date"/>
|
|
<field name="payment_term_id"/>
|
|
</group>
|
|
<footer>
|
|
<button type="object" name="confirm"
|
|
string="Confirm Sale" class="btn-primary" attrs="{'invisible': [('sale_warn', '=', 'block')]}"/>
|
|
<button special="cancel" string="Annuler" class="btn-default"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sale_confirm_action" model="ir.actions.act_window">
|
|
<field name="name">Confirm Order</field>
|
|
<field name="res_model">sale.confirm</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
</odoo>
|