-
Notifications
You must be signed in to change notification settings - Fork 41
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
12.0 rename beesdoo pos reporting #468
Conversation
Codecov Report
@@ Coverage Diff @@
## 12.0 #468 +/- ##
==========================================
+ Coverage 61.83% 61.93% +0.09%
==========================================
Files 167 168 +1
Lines 5348 5356 +8
Branches 937 937
==========================================
+ Hits 3307 3317 +10
+ Misses 1902 1901 -1
+ Partials 139 138 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looks good but could it be moved to the oca directly?
@robinkeunen according to https://user-images.githubusercontent.com/17589077/149927982-58f1b329-9d15-48d3-b331-77741f7c2e87.png it should be moved to cie-pos, plans have changed ? |
My point of view has changed now yes. Maybe @legalsylvain could tell us whether he thinks The description.rst :
|
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.
Hi.
Thanks for the ping. I think that the module pos_order_count_store
has its place under OCA umbrella. (generic and add features), as far as the "update" question is OK.
I think that if yes, you should add a pre-init-hook script to compute by SQL the stored field.
Otherwise, installing this module on existing databases (the GRAP one, for instance) will take hours for sure.
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
pos_order_count = fields.Integer(store=True) |
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 fear that if we make an update all, the update of point_of_sale module drop the column, and then, the update of the pos_order_count_store module recompute it. Am I wrong ?
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 remember that I developed one time a module store = True -> store =False, and that was problematic.
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.
Thank you for your reply
I fear that if we make an update all, the update of point_of_sale module drop the column, and then, the update of the pos_order_count_store module recompute it. Am I wrong ?
It's not what I observe, when updating point_of_sale (and then pos_order_count_store), the field was never recomputed.
Noted for the SQL Query in pre-init hook, I'll do that !
|
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.
Thx for the pre-init hook 👍 Can you rebase, squash and move the module to oca/pos ?
/ocabot rebase |
Congratulations, PR rebased to 12.0. |
9f47909
to
df4a05c
Compare
df4a05c
to
5d27263
Compare
a3dd1de
to
2ba1a55
Compare
/ocabot rebase |
@robinkeunen LGTM, should be merged for next MEP, so that pos_counter_store is installed |
2ba1a55
to
683a451
Compare
@robinkeunen can you approve the PR ? |
@victor-champonnois Sucessfully tested on coopeco-test : number of pos orders for one partner seems right (smart button on profile + pos order dynamic table view + filter on all orders for that partner. |
Description
fix #346
related PR
Odoo task (if applicable)
Checklist before approval