Comment 97 for bug 1160365

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote : Re: [Bug 1160365] Re: [7.0] incorrect handling of contact/companies for invoicing and related purposes

On 10/04/13 21:21, Maxime Chambreuil (http://www.savoirfairelinux.com)
wrote:
> @ Fabien
>
> The problem is not in the UI, it is in the data model.
>
> If you connect a third-party application to report on or export the
> number of records by company, if the record is for Joël, you will get 0
> record for C2C FR. Expected result : 1 record.

No, I think the record belongs to Joël, not C2C FR and certainly not to
both. In other words: an invoice to "Joël, C2C" is not the same than an
invoice to "C2C". (e.g. you send the invoice to <email address hidden>, not
<email address hidden>)

If you make the record belong to both, you will have others problems
like count(one2many) that will return twice the real number of records

Fabien