Skip to content

Commit

Permalink
[MIG] account_menu_invoice_refund: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoBM committed Dec 24, 2022
1 parent 77e1226 commit 856b449
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion account_menu_invoice_refund/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Account Menu - Invoice & Refund",
"version": "13.0.1.0.0",
"version": "16.0.1.0.0",
"summary": "New invoice menu that combine invoices and refunds",
"category": "Accounting & Finance",
"author": "Ecosoft, " "Odoo Community Association (OCA)",
Expand Down
14 changes: 8 additions & 6 deletions account_menu_invoice_refund/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<record id="action_invoice_out_tree" model="ir.actions.act_window">
<field name="name">Invoices / Credit Notes</field>
<field name="res_model">account.move</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">tree,kanban,form</field>
<field eval="False" name="view_id" />
<field name="domain">[('type', 'in', ('out_invoice', 'out_refund'))]</field>
<field name="context">{'type':'out_invoice', 'journal_type': 'sale'}</field>
<field
name="domain"
>[('move_type', 'in', ('out_invoice', 'out_refund'))]</field>
<field name="context">{'default_move_type':'out_invoice'}</field>
<field name="search_view_id" ref="account.view_account_invoice_filter" />
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Expand Down Expand Up @@ -41,10 +43,10 @@
<record id="action_invoice_in_tree" model="ir.actions.act_window">
<field name="name">Bills / Refunds</field>
<field name="res_model">account.move</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">tree,kanban,form</field>
<field eval="False" name="view_id" />
<field name="domain">[('type', 'in', ('in_invoice', 'in_refund'))]</field>
<field name="context">{'type':'in_invoice', 'journal_type': 'purchase'}</field>
<field name="domain">[('move_type', 'in', ('in_invoice', 'in_refund'))]</field>
<field name="context">{'default_move_type':'in_invoice'}</field>
<field name="search_view_id" ref="account.view_account_invoice_filter" />
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Expand Down

0 comments on commit 856b449

Please sign in to comment.