Comment 77 for bug 1160365

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 1160365] Re: [7.0] incorrect handling of contact/companies for invoicing and related purposes

On 04/10/2013 02:17 PM, Fabien (Open ERP) wrote:
> On 04/10/2013 01:02 PM, Guewen Baconnier @ Camptocamp wrote:
>> Do you think normal to split the history within the hierarchy?
>> Do you call that an usability improvement?
>
> Yes. It's ok. Both approaches are ok, but when we balances pros and
> cons, the one we chose seems the best.
>
> On a hierarchy:
>
> Camptocamp Group
> Camptocamp France
> Luc Maurer
>
> If you click "Claims" on Luc Maurer (or search Luc Maurer in claims) you
> get all claims from Luc Maurer, but not the claims from other employees
> of C2C.
>
> If you click "Claims" on Camptocamp France, you get all claims of the
> company and all it's employees.
>
> That looks like a normal behaviour for me.
>

That sounds ok to me... but
1. The link does not use a child_of actually, but if that's your
intention, ok
2. When you click on the *link* Claims because it uses a domain with a
child_of. But what for the *one2many fields*, are you going to replace
them all by a fields.function using a child_of instead of a = ?
Example: the one2many displaying the claims in the history tab of
Camptocamp Group won't display the claims from other employees while the
link will. If you need to create a link with a 'child_of' because you
can't rely on the one2many fields, that's a pity.

>
> It's the same for B2C, one contact with 2 or three addresses:
>
> Joël
> Joël, Switzerland
> Joël, France
>
> If I search delivery orders for "Joël, France", I get only those sent to
> Joël France, which looks like what the user expect. If I search for
> "Joël", I get everything linked to Joël (France+Switzerland), which is
> also what the user expect, especially because the search dialog is quite
> clear, it will propose 3 values:
> Joël
> Joël (Switzerland)
> Joël (France)
>
> It looks normal to me that if I select "Joël (Switzerland)", I fon't get
> the delivery orders to "Joël (France)".
>

Ok, in theory that's sound ok (didn't check if it works really like
that). But that right for the delivery orders, not the claims for
instance. And again, your case gently ignore the truth: yes, the search
can be customized to search on child_of, as per the the links. But the
one2many linked with the partner_id of the delivery won't be able to
display the correct information.

>
> PS: Note that we have to check that child_of is used everywhere, rather
> than '='. I am note sure it's clean everywhere.
>
>

--
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/