-
-
Notifications
You must be signed in to change notification settings - Fork 692
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] account_invoice_base_invoicing_mode: Migration to 15.0 #1061
[MIG] account_invoice_base_invoicing_mode: Migration to 15.0 #1061
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, maybe worth to consider renaming as suggested in roadmap
/ocabot migration account_invoice_base_invoicing_mode |
Administrative commit should be squash see https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0 |
…one_invoice_per_order' to res.partner's _commercial_fields()
b24d036
to
528b90f
Compare
* account_invoice_base_invoicing_mode -> partner_invoicing_mode | ||
* account_invoice_mode_monthly -> partner_invoicing_mode_monthly | ||
* account_invoice_mode_at_shipping -> partner_invoicing_mode_at_shipping | ||
|
||
It would be great to do it, during the version 15.0 migration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to rename addon?
class SaleOrder(models.Model): | ||
_inherit = "sale.order" | ||
|
||
invoicing_mode = fields.Selection(related="partner_invoice_id.invoicing_mode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this field probably should be computed to consider the state of sale.order
if we have one invoicing_mode, sold stuff confirm pay deliver, and then change mode on partner then mode on sale order also will change
thou this is a theoretical assumption, it could be that method implemented to avoid these issue
CI is red, could you check please? 🙏🏻 |
Closing in favour of #1243. I now based the 16.0 migration of the module on that PR. I hope that's alright! |
No description provided.