← Back to team overview

openerp-india team mailing list archive

[Bug 1100966] Re: States not populated after installing Address Book addon

 

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.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1100966

Title:
  States not populated after installing Address Book addon

Status in OpenERP Addons (modules):
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1100966/+subscriptions


References