-
-
Notifications
You must be signed in to change notification settings - Fork 698
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][16.0] partner_invoicing_mode_weekly (rename account_invoice_mode_weekly) #1514
base: 16.0
Are you sure you want to change the base?
[MIG][16.0] partner_invoicing_mode_weekly (rename account_invoice_mode_weekly) #1514
Conversation
Currently translated at 100.0% (25 of 25 strings) Translation: account-invoicing-14.0/account-invoicing-14.0-account_invoice_mode_weekly Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_invoice_mode_weekly/nl/
Currently translated at 64.0% (16 of 25 strings) Translation: account-invoicing-14.0/account-invoicing-14.0-account_invoice_mode_weekly Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_invoice_mode_weekly/es/
As stock module was introduced in dependencies just for tests purpose, remove it and deliver products like if sale module is installed.
@StefanRijnhart IMHO, stock dependency should be removed in monthly module too (see second commit). |
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.
Nice one!
/ocabot migration account_invoice_mode_weekly |
"""Returns the sale order fields used to group them into jobs.""" | ||
return ["partner_invoice_id", "payment_term_id"] | ||
|
||
def _generate_invoices_by_partner(self, saleorder_ids, invoicing_mode="weekly"): |
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.
@StefanRijnhart @jcoux After having read this, it's impossible to have several modes on the same instance as:
- This is should be implemented in base module
- This is always overridden without super in each specific module...
I'll try to fix that
Hi, I see in the history that was changed, but it does not exist in v16, i think it should be: I also see that the function return self.generate_invoices(
companies,
invoicing_mode="weekly",
last_execution_field="invoicing_mode_weekly_last_execution",
) But |
I response myself: It seems we ned this other PR: #1515 in order to test this one, so function i think is a nice refactor, but what about montlhy module that is already in 16.0 branch? It seems we need another PR if this one is merged |
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.
/ocabot merge patch
This PR looks fantastic, let's merge it! |
@rafaelbn your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1514-by-rafaelbn-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
@rousseldenis it looks like a dependency is missing 🔴
|
@rafaelbn This one is normal. It's a warning to say we need to merge the dependency PR before this one. :-) |
OK @rousseldenis ! I see! I miss it because I knew that one was migrated some time ago! https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode So I closed your PR, could you change this one using the actual migrated? 😄 Thank you! |
Already done... |
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.
Tested, I'm unable to make this works, is it possible to test this module in runboat? See:
MIG-16-partner_invoicing_mode_weekly-1514.mp4
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@rousseldenis Is it possible to merge this one as it's validated? |
@rousseldenis I think test dependency can be removed. |
Migrated to 16.0
Remove dependency on stock (as introduced just for tests...)
Added dependency on : [16.0][IMP] partner_invoicing_mode: Allow better inheritance + use correctly grouping option #1515
Dependency on : [16.0][IMP] partner_invoicing_mode: Allow better inheritance + use correctly grouping option #1515