forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice_merge_view.xml
50 lines (50 loc) · 2.15 KB
/
invoice_merge_view.xml
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
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_invoice_merge" model="ir.ui.view">
<field name="name">Merger Partner Invoice</field>
<field name="model">invoice.merge</field>
<field name="arch" type="xml">
<form string="Merge Partner Invoice">
<group>
<separator
string="Are you sure you want to merge these invoices?"
colspan="4"
/>
<p>
Please note that:<br /><br />
Invoices will only be merged if:<br />
* Invoices are in state 'draft'.<br />
* Invoices belong to the same partner.<br />
* Invoices have the same company, partner, address,
currency, journal, salesman, account and type.<br /><br />
Lines will only be merged if:<br />
* Invoice lines are exactly the same except for the
product, quantity and unit.<br />
</p>
</group>
<group name="options">
<field name="keep_references" />
<field name="date_invoice" />
</group>
<footer>
<button
name="merge_invoices"
string="Merge Invoices"
type="object"
class="oe_highlight"
/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_view_invoice_merge" model="ir.actions.act_window">
<field name="name">Merge Partner Invoice</field>
<field name="res_model">invoice.merge</field>
<field name="binding_model_id" ref="model_account_move" />
<field name="binding_view_types">list</field>
<field name="target">new</field>
<field name="view_id" ref="view_invoice_merge" />
</record>
</odoo>