-
-
Notifications
You must be signed in to change notification settings - Fork 693
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
[9.0][website_snippet_country_dropdown] Migrate. #230
[9.0][website_snippet_country_dropdown] Migrate. #230
Conversation
…try dropdown flags.
- The `js_country_dropdown` class is added automatically by the template. - Add `extra_class` variable to highest div element. You can set it to `has-error` for example. - Add `default_value` variable to autopopulate the inputs. - `default_country` is smarter now.
… default. With this patch, when the currently logged-in user has a country in its profile, it will be chosen by default for the flag.
273ef84
to
bb368ae
Compare
Tested, please open runbot and check what happens with website, it says "could not execute commnad 'sass' |
Most probably because Sass is not installed in runbot. @pedrobaeza Can you help here please? |
Go to runbot -> Open - Error: "could not execute commnad 'sass' |
* ``no_country_placeholder``. | ||
|
||
You can view an example in | ||
https://github.com/OCA/e-commerce/tree/8.0/website_sale_checkout_country_vat. |
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 should change this to a relative reference (only mention website_sale_checkout_country_vat in OCA/e-commerce)
Sorry, I can't install binary files on runbot servers. Only Python libraries. You should contact @gurneyalex for that task. |
@yajo @rafaelbn @pedrobaeza I just installed ruby-sass on runbot (and forced a rebuild of the PR). |
@gurneyalex, it seems that there's still missing a binary called bootstrap-sass. |
@gurneyalex This is what we do to have all sass dependencies installed:
|
It seems to work. |
👍 |
Hi @yajo , I tried to add snippet but is in red all the time. Could you try to check it please. See screenshots: |
Please keep in mind that you can never drag a field to a controller-dependant form. If the controller is not ready to accept such field, it could either do not do what you expect it to do, or simply blow up. Because of that, Odoo seems to even forbid dragging the snippet into a |
👍 |
Module migrated to v9.
😨 Snippets framework have changed a lot in v9!
@Tecnativa