purchase_batch_invoicing_view.xml
1.6 KB
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
43
44
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="wizard_purchase_batch_invoicing_view" model="ir.ui.view">
<field name="name">Purchase Batch Invoicing</field>
<field name="model">purchase.batch_invoicing</field>
<field name="arch" type="xml">
<form>
<sheet>
<group attrs="{'invisible': [('purchase_order_ids', '=', False)]}">
<field name="purchase_order_ids"/>
<field name="grouping"/>
</group>
<div attrs="{'invisible': [('purchase_order_ids', '!=', False)]}">
<p>No ready-to-invoice purchase orders selected.</p>
</div>
</sheet>
<footer>
<button name="action_batch_invoice"
type="object"
string="Accept"
attrs="{'invisible': [('purchase_order_ids', '=', False)]}"
class="oe_highlight"/>
<button special="cancel"
string="Cancel"/>
</footer>
</form>
</field>
</record>
<act_window
id="wizard_purchase_batch_invoicing_action"
key2="client_action_multi"
name="Batch Invoice"
src_model="purchase.order"
res_model="purchase.batch_invoicing"
target="new"
multi="True"
view_mode="form"
view_type="form"/>
</odoo>