Comment 144 for bug 1160365

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

@ Fabien

I just updated my odony branch and here is the scenario I tested :

Create Customers with :
Camptocamp
    Joël
Akretion
    Raphaël

Create a SO for Joël, confirm it and generate the invoice.
Group invoices by partner -> CamptoCamp : 1 invoice

Go to Joël and change his company to Akretion.
Group invoice by partner -> Akretion: 1 invoice

You will tell me that this is normal to you, because your customer is Joël not C2C, right ? You want to handle B2C, but this scenario is B2B and you can't handle it with your solution.

So, now your turn, download rvalyi's branch and test this scenario, assuming that:
- if C2C is the customer, I don't change the partner_id field on the SO and the invoice will remain for C2C after Joël's transfer.
- IfJoël is the customer, you change the partner_id back to Joël on the SO and the invoice will always belong to Joël.