diff options
| author | wan <wan@odoo.com> | 2019-01-09 15:31:20 +0000 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2019-01-30 08:55:32 +0000 |
| commit | 7e9009f93a76f5cf3694d17a41d272083e613f90 (patch) | |
| tree | a0767cd5d5e37c4a0e58e7d616d59b7f1ad1357a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 3ef3aeb640c90e2817878eaa11701aedbf6b6ecb (diff) | |
[IMP] base: choice of state/country easier in banks and partners
OPW 1891131
closes #27497
When creating a new bank account/partner address, the view displays the 'state 'field before the 'country_id' field, which naturally leads users to select the state before selecting the country.
But there was problem: in order to select a state, one had to first select a country, which was confusing.
Done:
- allow the user to select the state before the country (without restriction on country)
- remove the state from the form when the country changes, if the state (name) is not in the country
- automatically set the country when the state is set
- always display the country code in the name_get of res.country.state, to deal with the case where different countries have a state with the same name
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
