Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] partner_invoicing_mode, partner_invoicing_mode_at_shipping, partner_invoicing_mode_monthly: Migration to 16.0 #1295

Merged
merged 49 commits into from
Apr 21, 2023

Conversation

StefanRijnhart
Copy link
Member

@StefanRijnhart StefanRijnhart commented Nov 30, 2022

From unmerged PRs #1243, #1245 and #1247, in which the modules were renamed from account_invoice_base_invoicing_mode, account_invoicing_mode_at_shipping and account_invoice_base_invoicing_mode_monthly respectively.

Standard migration, with increased coverage in all modules.

TDu and others added 28 commits November 30, 2022 17:21
Add three modules helping on automatically invoicing customers.

The base module `account_invoice_base_invoicing_mode` does not actually
do anything but adds a selection field on partner to allow assigning an
invoicing mode to a customer. And a checkbox to choose regrouping
invoices.

The two other modules add specific invoicing mode.

The module `account_invoice_mode_monthly` creates monthly invoices for
customer on a specific day (configuration is in Accounting Settings)

The module `account_invoice_mode_at_shipping` creates invoices on the
shipping of the goods.

Those modules use queue_job to generate and validate invoices.
Add few changes from reviews.
Use sudo to post the invoice.
Split invoice creation on invoice partner settings that decides if sales order
atre being grouped in invoice or not.
The previous implementation would crash.
…one_invoice_per_order' to res.partner's _commercial_fields()
Add three modules helping on automatically invoicing customers.

The base module `account_invoice_base_invoicing_mode` does not actually
do anything but adds a selection field on partner to allow assigning an
invoicing mode to a customer. And a checkbox to choose regrouping
invoices.

The two other modules add specific invoicing mode.

The module `account_invoice_mode_monthly` creates monthly invoices for
customer on a specific day (configuration is in Accounting Settings)

The module `account_invoice_mode_at_shipping` creates invoices on the
shipping of the goods.

Those modules use queue_job to generate and validate invoices.
If we group several sales in the same procurement group, we'll invoice
only one sale order. Tracing back to the sales through the stock moves
ensure we invoice all of them.
Add few changes from reviews.
Use sudo to post the invoice.
Split invoice creation on invoice partner settings that decides if sales order
atre being grouped in invoice or not.
The previous implementation would crash.
Filter out sales order that have nothing to invoice.
To avoid an exception at invoice createion.
Add explicit message if nothing is invoiced
@StefanRijnhart StefanRijnhart force-pushed the 16.0-mig-partner_invoicing_mode branch 2 times, most recently from 8f34450 to 081c661 Compare November 30, 2022 20:13
@StefanRijnhart StefanRijnhart marked this pull request as ready for review November 30, 2022 20:27
@StefanRijnhart StefanRijnhart force-pushed the 16.0-mig-partner_invoicing_mode branch from 081c661 to 0b70968 Compare November 30, 2022 20:28
@rafaelbn
Copy link
Member

rafaelbn commented Dec 9, 2022

Hello @StefanRijnhart , Should be different PR per module? I guess is inteded to make a single PR 😄

/ocabot migration partner_invoicing_mode

/ocabot migration partner_invoicing_mode_at_shipping

/ocabot migration partner_invoicing_mode_monthly

@StefanRijnhart
Copy link
Member Author

@rafaelbn I think having a single PR is better than three PRs that depend on each other, having to juggle temporary git locations as test requirements. As you can see, I grouped the migration commits per module for easy review.

@rafaelbn rafaelbn requested a review from TDu December 13, 2022 17:27
@houssine78
Copy link

@pedrobaeza a last one here :) thanks again !

@rafaelbn
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1295-by-rafaelbn-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cf30c74 into OCA:16.0 Apr 21, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 578c809. Thanks a lot for contributing to OCA. ❤️

odooNextev pushed a commit to odooNextev/account-invoicing that referenced this pull request Sep 29, 2023
Signed-off-by pedrobaeza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.