-
-
Notifications
You must be signed in to change notification settings - Fork 619
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][MIG] pos_partner_firstname: Migration to 17.0 #1126
Conversation
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/ca/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/it/
…es_order from POS frontend Otherwise they would get access error on ir.config_parameter Steps: - Create a user POS manager without administration rights - Using that user, open POS frontend
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/ca/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/es/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/fr_CH/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/fr_CH/
Currently translated at 100.0% (4 of 4 strings) Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/fr_CH/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname/
Currently translated at 100.0% (8 of 8 strings) Translation: pos-16.0/pos-16.0-pos_partner_firstname Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_partner_firstname/fr/
Yes I checked it, but at the end I made it in my own way using their comments, as the approach was much better 😄 |
Hum thanks @etobella , |
Also, I removed a connection to the server that was unnecessary 😄 |
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.
If we want to add a new partner with only firstname or lastname (not both)
We have an error
TypeError: this.showPopup is not a function
at PartnerDetailsEdit.saveChanges
46ba113
to
f25d6df
Compare
It works now. Thanks for the review! |
Actually, it has no sense to require both on PoS but only one on backend, I will keep the logic of backend. One option would be to keep the same logic using a configuration parameter on backend and frontend. WDYT? |
f25d6df
to
a46a35e
Compare
I agree. BTW in v16, firstname AND lastname are mandatory... @robyf70 do you know if it was a requirement for anyone ? |
This module was done to give the possibility to create a contact as person from the PoS as well |
return this.popup.add(ErrorPopup, { | ||
title: _t("Missing information"), | ||
body: _t("Customer firstname or lastname are required"), | ||
}); |
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.
It should be 'Customer firstname or lastname is required'
Thanks @robyf70 we noticed that firstname AND lastname were mandatory in previous versions. The idea is to follow partner_firstname logical which allows partner with firstname OR lastname |
Refactoring to OWL 2.0 Disabling an extra connection to server
a46a35e
to
3ba9a89
Compare
Well, adding the constrain might seem a good idea, but we must remember that some countries do not have lastname, so it makes sense to not make it required |
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 test ok
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 712663c. Thanks a lot for contributing to OCA. ❤️ |
Refactoring to adapt to OWL 2.0
Changes applied to avoid an extra connection to server