Comment 99 for bug 1160365

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

@Fabien:
So... 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>)
--> THIS IS JUST THE PROBLEM. An Invoice, belongs ALWAYS to C2C FR because your fiscal legal entity is C2C FR. Additionally you will send the invoice to Joêl or you could send to several other accountant contacts if you need, or even you could sent to general "info@" because it's the main email for company and additionally to contacts that you want to send. You are giving priority to communications instead of giving priority to legal requirement. Communications can be built as final customer decides. Even if you assume there is only one financial contact this assumtion can be wrong from final customer side but he can NEVER deny that invoice has to be behind the name of legal fiscal entity as is written by low in most countries I know.

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
--> This is not exactly like that because if you have got 2 fields on documents you will always count sum(partner_id). You will always have correct number if you set correctly the domain depending on where you are launching the query. I don't see problem on that.

Please think about this aproach. Most important think here is that an ERP should not give priority to secondary functionality but always to principal one. On this case accounting is the principal because is set by law. Other functionalities are customizable and not so critical so they can be even avoided.
Thank you very much.
Ana

Fabien