States not populated after installing Address Book addon

Bug #1100966 reported by Matt Burgess
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

When trying to implement the workaround for bug 1100211, I hit the following:

1) Reproduction recipe:

a) On a newly created OpenERP database, install the 'Address Book' module
b) Go to Settings -> Companies, click on 'Your Company', then 'Edit'
c) Choose a 'Country' from the drop down box
d) Try to select a 'State' from the drop down box

2) Result Observed

I don't see any States available in the list

3) Result expected

I'd expect to see a list of states appropriate for the country selected in step c) above

4) Platform

Fedora-18, Firefox-18.0

5) OpenERP version

OpenERP 7.0-20130117-134423

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Matt Burgess,

I have checked your issue with latest trunk as well as with 7.0 , And I think you might be misunderstood something. And I have clarify it in my above video. So, Would you check it again and also provide us more information about your report.

Thanks & waiting for your answer..!!!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Matt Burgess (matthew-linuxfromscratch) wrote :

Your video appears to show exactly the problem I described. You shouldn't have to manually add states; they should be provided automatically.

The bit I was missing is that the state list is populated via the addons/l18n_<cc>/res.country.state.csv file. That requires the correct l18n_<cc> addon to have been installed. However, those in turn require the accounting module to have been installed (or will install it through its dependencies).

So, what I'm trying to achieve here is to ultimately get the correct company name in the chart of accounts (as mentioned before, this is bug 1100211) in as few steps as possible. The ideal steps would be:

1) Install a blank OpenERP database
2) Install the accounting module, and select the correct accounting package (l10n module)
3) Change the company name and address.

As that doesn't work (the 'Your Company' name is hard-coded in the chart of accounts), I thought I could work around it by installing the Address Book module first, changing the company name and address, then installing the accounting module. That doesn't work either, as I can't select the correct state for the address, as the l10n_uk module hasn't been installed yet.

The only workaround I can see now is:

1) Install a blank OpenERP database
2) Install the Address Book module
3) Change the Company's name (but not its address; no states are available)
4) Install the Accounting and Finance module, selecting the appropriate 'l10n' module
5) Go back to the Company details screen and change its address (which is now possible as the l10n module will have populated the states).

Not sure what to do with this bug now, as it only really occurs because of bug 1100211; once that's fixed, then this will pretty much disappear by itself. Ideally, the states should be loadable without having to install the account module, but it's such a corner case I'm not sure it's worth addressing (I doubt you have any customers using OpenERP without the account module installed!).

Feel free to close if you want to.

Thanks,

Matt.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Matt Burgess,

We are not able to provide all states name because we don't have states data based on countries. So I would like to suggest community to provide states data as per their countries which will better for us. Better if community provide a merge proposal by their country. So our OpenERP core team can check and easily merge it .

So don't think to continue to on this bug report and I am going to close it, If you or any community can contribute then you can provide the MP on this.

Thank you..

Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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