-
-
Notifications
You must be signed in to change notification settings - Fork 634
[17.0][ADD] Add pos_partner_birthdate_warning module #1338
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
[17.0][ADD] Add pos_partner_birthdate_warning module #1338
Conversation
096d74b
to
dd800da
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.
Why don't you simply load res_partner.age field that is already computed in partner_contact_birthdate instead of recompute it ? Is it because it's not stored ?
@cvinh @vehi-invitu They failed in some cases like the one below. Customer:
Issue: If the session is closed on 21-Mar-2025 or later, the age should update to 18y on 20-Mar-2025. Conclusion: res_partner.age does not correctly handle cases where the session is not closed daily, leading to outdated age calculations on the POS screen |
@parvezqureshi can you please rebase (as runboat is stuck) |
dd800da
to
a4d8c27
Compare
Rebased |
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.
Thanks for the PR.
Here's are steps that do not work as expected (warning is bypassed) :
- the partner does not have a birthdate
- we edit the partner and add the birthdate.
- we save the partner and it's immediatly selected in the pos order without the warning
I just realize that this module should be renamed to pos_customer_age_warning ... or pos_customer_birthdate_age_warning... pos_customer_birthdate_warning is meant to warn if it's the customer's birthday ... WDYT ? @legalsylvain |
a4d8c27
to
53c00b9
Compare
This can help perfs when there are templates with a lot of variants. Also this adds a "confirm" button that can be a practical alternative to the variant selection.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-14.0/pos-14.0-pos_product_template Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_product_template/
Signed-off-by: Luis Malta <[email protected]>
Currently translated at 100.0% (9 of 9 strings) Translation: pos-14.0/pos-14.0-pos_product_template Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_product_template/it/
Currently translated at 100.0% (9 of 9 strings) Translation: pos-14.0/pos-14.0-pos_product_template Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_product_template/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-17.0/pos-17.0-pos_product_template Translate-URL: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_product_template/
Co-authored-by: Iván Todorovich <[email protected]>
Currently translated at 37.5% (3 of 8 strings) Translation: pos-14.0/pos-14.0-pos_margin Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_margin/it/
Currently translated at 37.5% (3 of 8 strings) Translation: pos-14.0/pos-14.0-pos_margin Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_margin/it/
Currently translated at 100.0% (8 of 8 strings) Translation: pos-16.0/pos-16.0-pos_margin Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_margin/it/
Currently translated at 100.0% (3 of 3 strings) Translation: pos-17.0/pos-17.0-pos_partner_vat_valid Translate-URL: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_partner_vat_valid/it/
53c00b9
to
6d05ca7
Compare
supersede #1382 |
No description provided.