Skip to content

Commit efe9bff

Browse files
Merge pull request #230 from GlodoUK/19.0-mig-purchase_to_invoice_menu
[MIG] purchase_invoice_menu: Migration to 19.0
2 parents 8c53e72 + bef3656 commit efe9bff

5 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
------------------------
2+
purchase_to_invoice_menu
3+
------------------------
4+
5+
Adds a ``Orders To Invoice`` menu to Purchase, much like the Sales menu.
6+
7+
It is highly recommended to pair this with the OCA module ``purchase_open_qty``

purchase_to_invoice_menu/__init__.py

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "purchase_to_invoice_menu",
3+
"summary": "Adds a 'Orders To Invoice' menu to the Purchase menu",
4+
"version": "19.0.1.0.0",
5+
"author": "Glo Networks",
6+
"website": "https://github.com/GlodoUK/odoo-addons",
7+
"depends": ["purchase"],
8+
"data": ["views/purchase_views.xml"],
9+
"license": "AGPL-3",
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<odoo>
2+
<record id="action_purchases_to_invoice" model="ir.actions.act_window">
3+
<field name="name">Purchase Orders To Invoice</field>
4+
<field name="res_model">purchase.order</field>
5+
<field name="view_mode">list,kanban,form,pivot,graph,calendar,activity</field>
6+
<field
7+
name="view_ids"
8+
eval="[(5, 0, 0),
9+
(0, 0, {'view_mode': 'list', 'view_id': ref('purchase.purchase_order_view_tree')}),
10+
(0, 0, {'view_mode': 'kanban', 'view_id': ref('purchase.purchase_order_view_kanban_without_dashboard')}),
11+
]"
12+
/>
13+
<field name="domain">[('state','=', 'purchase')]</field>
14+
<field name="context">{'search_default_not_invoiced': 1}</field>
15+
<field name="search_view_id" ref="purchase.purchase_order_view_search" />
16+
</record>
17+
18+
<menuitem
19+
id="menu_purchase_invoicing"
20+
name="Orders To Invoice"
21+
action="action_purchases_to_invoice"
22+
parent="purchase.menu_purchase_root"
23+
sequence="3"
24+
/>
25+
</odoo>

0 commit comments

Comments
 (0)