Empty states dropdown when creating a bank account (until the following "country" field is filled)

Bug #917167 reported by Dave Burkholder
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Wishlist
OpenERP's Framework R&D

Bug Description

When you go to Setup your Bank Accounts, the "State" dropdown field only shows "Create and Edit". No states are listed in the dropdown box. You have to manually create a new state.

However, when you EDIT and existing Bank Account, then the "State" dropdown field works as expected and the dropdown list populates.

Related branches

Revision history for this message
Dave Burkholder (akxws32zf-dave-j0p9h616h) wrote :

Should mention that I'm running OpenERP 6.1 RC on Kubuntu 11.10

Amit Parik (amit-parik)
affects: openobject-client-web → openerp-web
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Dave Burkholder ,

I have checked this issue with trunk.
State field only display when you selecting
a country.

I have attached a video for your more reference.

Thank you!

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Dave Burkholder (akxws32zf-dave-j0p9h616h) wrote :

That's not the problem I was having. I'm attaching a screenshot of the steps that reproduce the bug with Bank Accounts. To summarize the Screenshot steps.

1. Create New Bank Account - States dropdown field does not populate. You must "Create and Edit".
2. Save Bank Account with the state you just created manually
3. Edit Bank Account - States dropdown populates as expected.

Revision history for this message
Dave Burkholder (akxws32zf-dave-j0p9h616h) wrote :

Gah, somebody had posted a video about an invoice problem; that post is now deleted. That's the post I was referring to when I said "That's not the problem I was having".

Yes, Jignesh, thanks for your comment. I have now discovered that when creating a new Bank Account, if I select the Country FIRST, the States dropdown populates correctly.

Still a bug, I think, but at least it explains why Edit Bank Account worked, but not Create Bank Account

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

I'm moving this bug to the server/framework project, as this relationship is set up there: the "states" list is conditional on the current country in order to provide the correct list of states within the country (not necessarily the US, although all states shipping with OpenERP are US states, e.g. Australia also has prominent states). The client behaves as it is told, and the framework tells it to behave in this way

I'm also marking this bug as wishlist, while it technically behaves correctly the usability is debatable and it would probably be nice to find some sort of solution to it. Maybe hiding the "states" field if a country with no states is selected (although this means states would *have* to be created separately when needed).

affects: openerp-web → openobject-server
Changed in openobject-server:
importance: Undecided → Wishlist
status: Incomplete → Triaged
summary: - Setup your Bank Accounts page doesn't show states dropdown
+ Empty states dropdown when creating a bank account (until the following
+ "country" field is filled)
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The difference with the Bank Account form is its vertical layout, as opposed to most other places where an address is entered (address book, customers list, companies list etc.), where the horizontal layout makes it more natural to put the state field on the right of the country fields. The latter makes it more logical for users to enter the country first, hence "unlocking/populating" the states field.

Despite the vertical layout, I've switched the order of the fields to show country first on the Bank Account form too, even if that does not feel very natural, it's better than making people think there's a bug.

The change has landed in trunk at revision 4047 (rev-id: <email address hidden>)

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
status: Triaged → Fix Released
milestone: none → 6.1
Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

This is not a bug in the webclient. Maybe a usability issue in the addons.

I guess that if the State field is placed after the Country field, this will be more intuitive. Or a @readonly on states when country is not filled in.

I'll transfer to the addons team so they can decide if they change something or not.

Regards.

Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Hum... I should refresh bug pages before commenting

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.