-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
[IMP] website_snippet_country_dropdown: readonly mode #720
[IMP] website_snippet_country_dropdown: readonly mode #720
Conversation
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
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.
Looks Good! I think that you can remove all related with "this.$country_code"
I think it's still useful. As it is right now, 3 fields are submitted in the form: full text, country code alone, vat alone. It seems the easiest way to support any use case downstream. Besides, that could potentially break backwards compatibility quite badly. Maybe we could consider that when migrating, but I don't really see a big benefit TBH. 🤔 |
@yajo I can't found where 'js_country_code' is defined... |
- Remove some garbage code. - Add readonly mode. - Add demo data. - Improve tour. @Tecnativa TT17694
0833fd0
to
656fda7
Compare
Ooh yes, understood. Removed now. 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.
👍
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
This PR has the |
Congratulations, your PR was merged at 2c802f3. Thanks a lot for contributing to OCA. ❤️ |
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks. Fixed by inheriting from the correct view. Also benefits from OCA/website#720 by using readonly mode if that module is updated. @Tecnativa TT17694 [1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
@Tecnativa TT17694