-
-
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_price_to_weight (from 12.0) #1146
Open
legalsylvain
wants to merge
34
commits into
OCA:16.0
Choose a base branch
from
grap:16.0-mig-pos_price_to_weight
base: 16.0
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* [ADD] module pos_price_to_weight * [FIX] jslint / pylint / flake8 issues
OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] Update pos_price_to_weight.pot
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/
Currently translated at 21.1% (4 of 19 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/
Currently translated at 100.0% (20 of 20 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/
Currently translated at 100.0% (21 of 21 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/ca/
Currently translated at 100.0% (21 of 21 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/it/
Currently translated at 100.0% (21 of 21 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/it/
Currently translated at 100.0% (21 of 21 strings) Translation: pos-12.0/pos-12.0-pos_price_to_weight Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_price_to_weight/it/
/ocabot migration pos_price_to_weight |
legalsylvain
force-pushed
the
16.0-mig-pos_price_to_weight
branch
from
January 27, 2024 15:03
69d0dbe
to
07a6316
Compare
[REM] Remove useless 'Price To Weight Field' on the pos.config. (sale price is lst_price). [REF] Adapt js code to new PoS framework. [REF] Move barcode.rule 'data' into 'demo'
legalsylvain
force-pushed
the
16.0-mig-pos_price_to_weight
branch
from
January 29, 2024 14:54
07a6316
to
de6b91d
Compare
quentinDupont
approved these changes
Jan 31, 2024
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.
functional review, works fine ✔️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This module extends Odoo Point Of Sale features, to allow to scan barcode
with price and to compute according quantity.
In Odoo by default, there are three types of barcode rules for products.
type=product
). Scanning a product will add a unit of this product to the current order.type=price
). A price is extracted from the barcode, and a new line with the given price and a quantity = 1 is added to the current order.type=weight
). A weight is extracted from the barcode, and a new line with the given weight, and a computed price (quantity * Unit price) is added to the current order.This module add a new option:
type=price_to_weight
). A price is extracted from the barcode, and a new line with the given price, and a computed quantity (Price / Unit Price) is added to the current order.This module is usefull in shops with products scaled, to manage correctly stock quantities.
Samples
Given a product with a unit price of 1,50€ / kg
The barcode is 0212345{NNNDD}x where:
On the product we so set '0212345000007' in the barcode field.
if the scanned barcode is 0212345002650:
Configure