-
-
Notifications
You must be signed in to change notification settings - Fork 582
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] mig pos_product_mergeable_line #1145
base: 16.0
Are you sure you want to change the base?
Conversation
Co-authored-by: Iván Todorovich <ivan.todorovich@gmail.com>
Currently translated at 100.0% (3 of 3 strings) Translation: pos-12.0/pos-12.0-pos_product_mergeable_line Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_product_mergeable_line/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_product_mergeable_line Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_product_mergeable_line/
/ocabot migration pos_product_mergeable_line |
dbd1320
to
22a7c3c
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.
Otherwise functional review ✔️
const PosProductMergeableLineOrderline = (OriginalOrderline) => | ||
class extends OriginalOrderline { | ||
can_be_merged_with(orderline) { | ||
console.log("=================="); |
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.
you can remove console log :)
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.
indeed ! Thanks !
Note : I thought that console.logs were forbidden and that the CI would be red, but that's not the case.
22a7c3c
to
5da12f0
Compare
Quite trivial migration of module pos_product_mergeable_line from 12.0 to 16.0
Description
This module extends the Odoo Point of Sale to prevent to merge lines if product
is configured.
By default, new line can be merged with a previous one if the informations are the same. (same product, same restaurant note, etc...) and if the UoM Category allow it.
The new module add a boolean field 'Mergeable Line' (default True).
If unchecked, the product will never be merged into another line.
That's important in some context, as in the management of returnable products, where we want to have a record of all movements.
Configure
Go to "Point of Sale > Product" and edit a product
Uncheck the checkbox "Mergeable line"