c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24684
[Bug 768197] Re: Improving multi-company currency management
Hello,
Let me explain a little bit the rationale behind the design in 6.0.
As you said, the list of currencies is usually not something that changes from company to company. However, in order to still allow it, they can be assigned to a specific company. We could have done it on the rates instead, with the consequence that only the rates would be able to vary from company to company, with the list of currencies totally global (Note: that option is still open for the future, but we cannot change that in 6.0, as it implies a change of model).
In addition to this, there is no default rule for filtering the
currencies per company, in order to have the system behave by default as
if they really were global.
So... if you want to have different currencies/rates per company, you
normally need 2 steps:
1. Create a dedicated rule for filtering, as you suggested, such as:
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] (if child companies need to share with parent)
or
['|',('company_id','=',False),('company_id','=',user.company_id.id)] (if each company needs their own)
2. Remove the company that is assigned on the currencies you want to
share globally, and make sure to duplicate the other ones according to
the rule you selected in 1.
If that doesn't work, what kind of error do you get?
@Stephane: the code you're quoting from the on_change() on invoice is only present to help the user select an appropriate currency in case you have decided to have them per-company. This probably leads to some confusion due to the fact by default the currencies belong to the initial main company.
To improve usability we could perhaps change the default currencies so they have no company set at all, making them properly 'global' in all ways. I guess this would avoid strange behaviors when changing an invoice's company.
What are your thoughts, for 6.0 and trunk? For trunk, ideas could also
be submitted on feedback.openerp.com to see what people think.
** Changed in: openobject-addons
Importance: Undecided => Wishlist
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/768197
Title:
Improving multi-company currency management
Status in OpenERP Modules (addons):
Confirmed
Bug description:
in supplier invoices it is possible to select a currency which belongs
to another company.
missing rule
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
References