← Back to team overview

openerp-community team mailing list archive

Re: IMPORTANT: OpenERP v7 and company contacts management

 

Hello Gustavo and Raphael,



I just spent some time looking at this – clearly there is something I don’t
understand.  I have posted my experience at
https://bugs.launchpad.net/openobject-addons/+bug/1155679



I get the right partner_id associated with the sale and invoice and no
accounting problems.    What am I missing?


Can I impose on you to outline a reproducible case that I can follow?  We
have many customers on OPW and could have each of them log the same bug if
I could understand it and reproduce it.


Ray.



*From:* openerp-community-bounces+rcarnes=
ursainfosystems.com@xxxxxxxxxxxxxxxxxxx [mailto:
openerp-community-bounces+rcarnes=ursainfosystems.com@xxxxxxxxxxxxxxxxxxx] *On
Behalf Of *Gustavo Adrian Marino
*Sent:* Tuesday, March 26, 2013 11:35 AM
*To:* Raphael Valyi
*Cc:* openerp-community
*Subject:* Re: [Openerp-community] IMPORTANT: OpenERP v7 and company
contacts management



Raphael:

I totally agree with your position. The position of OpenERP will lead us to
uncountable problems without any benefit.



Let me add that there are many countries that do not allow a contact as
reference of a commercial document. In all cases a legal entity is required
(a company or a documented person, someone with a legal ID). In that sense,
a contact is not a party. It is no secondary issue, it is in fact the main
an only difference between partners and contacts!



I strongly believe the proposal of Olivier is no more than whishfull
thinking. He is underestimating the consequences of the faulty proposed
strategy and trying to hide the foresable problems just not to accept that
OpenERP should fix the problem in the current version. It is clear that
this is more a dogmatic issue than an attempt to look for the best for the
comunity.



I totally agree with you in the fact that the faulty process in testing
before v7.0 release and the lack of discusing about philosophy of
res.partner's changes early enough is probably the root of the problem.
Nevertheless, now it is time to solve the issue, even if we have to change
some rules in order not to damage the commercial success of OpenERP.



It is not a minor issue. That's the way rules evolve, when you change them
once you realize they are no longer valid!



I encourage you not to abandon your effort to convince OpenERP which is the
right thing to do.



My 2 cents.

Gustavo Marino



2013/3/26 Raphael Valyi <rvalyi@xxxxxxxxx>

Hello community,



I think this threads totally deserves your attention:

https://bugs.launchpad.net/openobject-addons/+bug/1160365



Basically in OpenERP v7, business documents such as invoices can now have
their partner_id field pointing to a company contact res.partner record
while in previous versions of OpenERP it had to point to company partner or
to a physical person partner. Note that this is note about debating moving
the res.partner.address into the same res.partner table which I find a good
move that is making us closer to the Party industry standard pattern. This
is more about how we are allowed to use these records in OpenERP v7.



I claim the current codebase doesn't handle the case where partner_id is a
company contact and many bug are related to that (many not reported one by
one yet). This has just been partially acknowledged by OpenERP SA in the
bug tracker, but IMHO the problem is deeper than what is acknowledged (I
explained why in the tracker).



Basically there are two ways of fixing this:



A)

making everything required to have contacts suddenly a be "first class
business documents citizen". Me and several people claim that this
"everything required" actually involves many many things that may take
years to get right again if you accept to look deeply at the issue and that
it's not reasonable to go this way withing the v7 "stable" release.

But this is this way that OpenERP SA planed to go and is apparently still
planing to go...



B)

there would be an other way that would be adding contact_id fields on
business documents (sale/purchase orders, invoices...) and putting an
on_change to set the existing partner_id field with the same id in case of
a physical person or the related parent company in case of a company
contact. That would preserve the existing partner_id semantic within the
core and community codebase which took nearly a decade to consolidate the
way it was on 6.1, avoid taking useless risks, allow fine grained by
contact analysis while not breaking the by company reporting.

I think this is about a 50 lines patch at most. No risk taken... Why on
earth try to go with A)?



So I suggest experts carefully read this thread and give their thoughts
when they understand the problem:

https://bugs.launchpad.net/openobject-addons/+bug/1160365



Thank you for your attention. Meanwhile, if you are using v7, it works
quite well for B2C and can work for B2B provided you don't put company
contacts in partner_id fields of business documents if you are interested
in accounting, fiscal or financial correctness.



In my opinion, the problem isn't that much the 50 lines of patch of
solution B) that everyone could put in place right now, the problem is
instead the hundreds of lines of code I forsee if we keep trying to do A)
that may lead to slower and more complex code with no functional benefit
IMHO and making people not applying the B) patch facing regressions
possibly for years.

So let's say that's diverging way of fixing the problem, quite diverging
ways and we need this to keep working as contact management is an important
feature that was supposed to work in the core.



Please comment on the bug tracker (not here) if you want to comment the
proposed solutions.





Best regards.



-- 

Raphaël Valyi

Founder and consultant

http://twitter.com/rvalyi <http://twitter.com/#!/rvalyi>

+55 21 2516 2954

www.akretion.com








_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp





-- 

Gustavo Adrian Marino

Mobile: +54 911 5498 2515

Email: gamarino@xxxxxxxxx

Skype: gustavo.adrian.marino

Follow ups

References