-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
[ADD][12.0] new module product_net_weight #894
[ADD][12.0] new module product_net_weight #894
Conversation
You probably mean "Gross Weight". So what we might need to add is the "Net Weight" instead. |
Thanks for your insight, @dreispt.
Yes ! sorry. I'll fix that.
No the https://github.com/odoo/odoo/blob/12.0/addons/product/models/product.py#L148 See :
in odoo or in oca modules ? (i don't use shipping weight) In V8, there was two fields
In Openupgrade, we consider that the new help welcome on that point ! |
2d8a66e
to
a2136aa
Compare
Hi @dreispt : I replaced "Brut Weight" per "Gross Weight". |
Hi @amoyaux. Could you give your point of view, regarding the
(I ping you because you're set as responsible of Logistics topic here (https://github.com/odoo/odoo/wiki/BugManagement) feel free to ping another guy if I'm wrong) Thanks. |
Gross weight (at least from delivery point of view) |
Well, if you say that the odoo Thanks @amoyaux for this quick response ! |
@legalsylvain Yes, that would match my experience.
For Odoo shipping to work correctly, I need the "weight" field to be set to 1250g, not 750g. Does this make sense? |
@dreispt : perfect ! thanks. |
@legalsylvain Just one question, if you want to manage packaging weight, why not putting it there as for one product, you can have different weights - but maybe is too keep it simple ? |
Hi @rousseldenis.
Hope I answered your question. |
Sometime ago, there was net weight field in Odoo core: https://github.com/odoo/odoo/blob/9e8f70e4849b0eeaca8b5cf51372ecfa23dc561b/addons/product/product.py#L546 (this is 8.0) |
4fb2d43
to
1a297dc
Compare
Hi all.
It's ready for review. Thanks. |
Thanks for this module. I prefer (not blocking) if this module only adds a net_weight field and do not any calculation about price.
Because I know, you don't want to change now, I hope, you agree to let these changes happen in v14. |
1a297dc
to
d11e8dc
Compare
Hi @hparfr. I removed Weight Price, as indeed in next version, it should be maybe in other module. (refactor with Could you review and approve this PR, and we can plan to work in the next oca days on that topic ? kind regards. |
Hello @sylvainc I was about to ask you the same as @hparfr . We have a customer selling air-conditionners who need this and price per Kg won't interrest them. I'm glad you removed the calculation. Now you have a trivial flake8 issue to fix (remove uselss api import) and then I promise to approve it. |
Hi @legalsylvain Should this https://github.com/OCA/OpenUpgrade/blob/9.0/addons/product/migrations/9.0.1.2/pre-migration.py#L133 be fixed? I already approved because is simple module and the travis error is just an import not used after fixed the PR should be green. |
- Add new net_weight field on product models; - Rename weight field with 'Gross Weight' string;
d11e8dc
to
762f4bc
Compare
hi @mbcosta. thanks for your review.
thanks. |
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 @legalsylvain for having clarified this weight mess!!
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 401b90c. Thanks a lot for contributing to OCA. ❤️ |
This module extends the functionality of stock module to support gross weight.Updated : See conversation belowThis module extends the functionality of stock module to support net weight. (container excluded)
It also compute the Weight Price (Sale Price / Net Weight) that is a mandatory information
in certain businesses.
Go to 'Inventory > Master Data > Product' and edit items.
Go to 'Inventory' tab, and fill the "Net Weight" value.
Note: The original weight field is renamed to "Gross Weight", to be more explicit.