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] account_invoice_base_invoicing_mode: Migration to 15.0 #1061

Conversation

rven
Copy link
Contributor

@rven rven commented Dec 14, 2021

No description provided.

TDu and others added 7 commits December 14, 2021 11:27
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.
Copy link
Contributor

@ajaniszewska-dev ajaniszewska-dev left a 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

@HaraldPanten
Copy link

/ocabot migration account_invoice_base_invoicing_mode

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Mar 18, 2022
@TDu
Copy link
Member

TDu commented May 20, 2022

Administrative commit should be squash see https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0

@rven rven force-pushed the 15.0-mig-account_invoice_base_invoicing_mode branch from b24d036 to 528b90f Compare May 23, 2022 06:07
Comment on lines +3 to +7
* 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.
Copy link
Member

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")
Copy link
Member

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

@ivantodorovich
Copy link
Contributor

CI is red, could you check please? 🙏🏻

@TDu
Copy link
Member

TDu commented Sep 26, 2022

@rven Thank you for this, I took over with this one PR #1243

@StefanRijnhart
Copy link
Member

Closing in favour of #1243. I now based the 16.0 migration of the module on that PR. I hope that's alright!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.