forked from OCA/purchase-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpurchase_merge_views.xml
58 lines (55 loc) · 2.33 KB
/
purchase_merge_views.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
51
52
53
54
55
56
57
58
<odoo>
<record id="purchase_merge_automatic_wizard_form" model="ir.ui.view">
<field name='name'>purchase.merge.automatic.wizard.form</field>
<field name='model'>purchase.merge.automatic.wizard</field>
<field name='arch' type='xml'>
<form string='Automatic Merge Wizard'>
<sheet>
<group col="1">
<p class="oe_grey">
Selected purchase will be merged together.
</p>
<group col="2">
<field
name="dst_purchase_id"
domain="[('id', 'in', purchase_ids or False)]"
/>
</group>
<field name="purchase_ids" nolabel="1" string="Purchase">
<tree>
<field name="name" />
<field name="date_order" />
<field name="date_planned" />
<field name="amount_total" />
<field name="state" />
<field name="invoice_status" />
</tree>
</field>
</group>
</sheet>
<footer>
<button
name='action_merge'
string='Merge Purchase'
class='oe_highlight'
type='object'
/>
<button
special="cancel"
string="Cancel"
type="object"
class="btn btn-default oe_inline"
/>
</footer>
</form>
</field>
</record>
<record id="action_purchase_merge" model="ir.actions.act_window">
<field name="name">Merge Selected Purchase</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">purchase.merge.automatic.wizard</field>
<field name="view_mode">form</field>
<field name="binding_model_id" ref="purchase.model_purchase_order" />
<field name="target">new</field>
</record>
</odoo>