Inconsistency between partner company and invoice company

Bug #724174 reported by Albert Cervera i Areny - http://www.NaN-tic.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Incomplete
Low
OpenERP's Framework R&D

Bug Description

OpenERP v6:

Given the following scenario: after database creation create two new companies (A and B) which have the initial company as parent.

Create a customer and assign it to company A.

If user is in group multi-user, she will be able to create an invoice selecting company B, but in the list of partners she will also be able to select the new partner even if it was assigned to company A. IMHO OpenERP should filter and ensure the partner is compatible with the company of the invoice.

Tags: nan
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

There is one issue which i need to confirm in this bug.
When we added multi-company group to the related user then we need to allow those user to select all the related company partners which are consider in multi company group access which is not happen now.

Hope this will help you.

Thanks.

affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Albert Cervera i Areny,

I created two companies A & B assigned OpenERP S.A as parent to both of them.
then created a partner "Naresh" assigned company A, then created a user "nch" assigned company B with multi-company group then I logged in as nch and create new customer invoice in this invoice I can only see the company B and in customer list view I cannot see the customer "Naresh".

which seems correct !

Correct me if I am missing something !

Thanks !

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

testing the above configuration setting I found a bug which is much more related to this. the bug is like this: I created a third company "C(parent of this is OpenERP SA)" and the assinged this along with B , OpenERP SA companies to user "nch" . then logged in as "nch" opened user preferences I can see all 3 companies which is quite correct then I tried to jump from "B" --> "C" . then OK and reopened the form strange I still have the same company that was previously assigned i.e "B". surely there is some rules prohibiting the change of company for a user.

Thanks !

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

my last comment was already available on launchpad and got it fixed too
https://bugs.launchpad.net/openobject-server/+bug/764745

for the other part I think the current working is correct.

i

Changed in openobject-server:
status: Confirmed → Incomplete
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

To elaborate further on Naresh's comment, the behavior described in this bug report does not strike me as inconsistent.
Albert, please correct us if we are missing something in your original bug description.

Here is the rationale:
OpenERP by default allows sharing partners with ancestor and child companies, because for most small companies this is a sensible default, which avoids a lot of Partner duplication.
Because OpenERP allows to share them, it means that you can of course use them in company-specific documents, such as invoices. There would be no sense in allowing to share them if you couldn't do that.
If this behavior is not desired, the default record rule (ir.rule) for Partners should be changed to only allow seeing company-local Partners, for example (as part of the recommended assessment of record rules when integrating a multi-company OpenERP system).

If you agree, please close the bug as Invalid, otherwise do not hesitate to make it New again and provide additional details.

Thanks!

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.