Skip to content

Commit

Permalink
[MIG] account_invoice_base_invoicing_mode: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BertVGroenendael authored and rven committed May 23, 2022
1 parent 13992e9 commit 528b90f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion account_invoice_base_invoicing_mode/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice Base Invoicing Mode",
"version": "14.0.1.1.0",
"version": "15.0.1.0.0",
"summary": "Base module for handling multiple invoicing mode",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
Expand Down
32 changes: 15 additions & 17 deletions account_invoice_base_invoicing_mode/data/queue_job_data.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- Queue Job Channel -->
<record id="invoice_validation" model="queue.job.channel">
<field name="name">invoice_validation</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>
<!-- Queue Job Channel -->
<record id="invoice_validation" model="queue.job.channel">
<field name="name">invoice_validation</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<!-- Queue Job Function -->
<record id="job_function_validate_invoice" model="queue.job.function">
<field name="model_id" ref="account.model_account_move" />
<field name="method">_validate_invoice</field>
<field name="channel_id" ref="invoice_validation" />
<field
name="related_action"
eval='{"func_name": "related_action_open_invoice"}'
/>
</record>
</data>
<!-- Queue Job Function -->
<record id="job_function_validate_invoice" model="queue.job.function">
<field name="model_id" ref="account.model_account_move" />
<field name="method">_validate_invoice</field>
<field name="channel_id" ref="invoice_validation" />
<field
name="related_action"
eval='{"func_name": "related_action_open_invoice"}'
/>
</record>
</odoo>
1 change: 0 additions & 1 deletion account_invoice_base_invoicing_mode/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ResPartner(models.Model):

invoicing_mode = fields.Selection([("standard", "Standard")], default="standard")
one_invoice_per_order = fields.Boolean(
"One invoice per order",
default=False,
help="Do not group sale order into one invoice.",
)
Expand Down

0 comments on commit 528b90f

Please sign in to comment.