-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
[16.0][IMP] partner_invoicing_mode: Allow better inheritance + use correctly grouping option #1515
[16.0][IMP] partner_invoicing_mode: Allow better inheritance + use correctly grouping option #1515
Conversation
@rousseldenis this módulo is already merged! https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode 😄 |
Maaaaah, this is an improvement... So, please reopen it |
Hahaha! Sorry! After-holidays stuf!! @StefanRijnhart , please could you review this improvements? Thank you ! And sorry for the noise! 🙏🏼 |
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.
I usualy don't like more dependencies , but I leave the review to @TDu and @StefanRijnhart .
@@ -8,9 +8,11 @@ | |||
"website": "https://github.com/OCA/account-invoicing", | |||
"license": "AGPL-3", | |||
"category": "Accounting & Finance", | |||
"depends": ["account", "queue_job", "sale"], | |||
"depends": ["account", "base_partition", "queue_job", "sale"], |
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.
So the main big change is using a new dependency. We are not using in this moment this module. I didn't know about it
https://github.com/OCA/server-tools/tree/16.0/base_partition
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.
It's not a big one. Technical one.
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.
I agree, code reuse is always good.
@rousseldenis in case this PR is merged with new dependencies, then a new PR is needed to https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode_monthly Is it? Runbots don't looks like building 🟠 |
It's not a failed build (not red) It happens from time to time, relaunching the build is sufficient in most cases. |
IMHO @OCA/accounting-maintainers automatic generation of invoices should deserves its own repository |
I agree, this module prepare to automate but don't automate. We use this one and the others, month, week, etc to classify not to automate This module just add the periodicity to invoicing, monthly, weekley and so no like terms (due date) or methods (how the pay)
That's why I don't like to depend in Let's see what @TDu and @StefanRijnhart says 😄
Thank you @rousseldenis ! |
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 see:
test1-16-IMP-partner_invoicing_mode-1515.mp4
e2b68da
to
c4aff6e
Compare
I don't understand the 'why'... This is a helper module that implement a partition on recordsets in order to split them on criteria. To avoid writing too much code, that one is very useful in many modules. It does not introduces database nor models changes. So not harmful at all. So, don't block for that. |
@TDu I have two questions on this as it seems to have not been integrated in OCA module:
Thanks for your answers |
I have answered the first one (not used). I will implement the second one here too. So, we'll be able to set the grouping option on sale order individually (e.g.: grouping is set on partner but he wants to have a separate invoice for a particular sale order). |
8246e47
to
36fc3e1
Compare
b81c01c
to
9854381
Compare
@jbaudoux Done |
In order to be able to benefits from standard grouping function, override it and add missing keys.
f777748
to
86b9060
Compare
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.
All goods for me.
Would be nice to merge this one as there are many PR depending on it
@OCA/accounting-maintainers |
hi @sbidoul, @pedrobaeza can you merge this PR please ? |
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.
Code review LGTM
This PR has the |
@OCA/accounting-maintainers |
/ocabot merge major |
What a great day to merge this nice PR. Let's do it! |
I'm afraid merges are stalled by OCA/oca-addons-repo-template#250 too. |
@StefanRijnhart your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1515-by-StefanRijnhart-bump-major. 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. |
/ocabot merge major |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 7643aa4. Thanks a lot for contributing to OCA. ❤️ |
Improvements:
UPDATE: