Code review comment for lp://qastaging/~openerp-dev/openobject-server/7.0-opw-591308-jam

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

As Willem Hulshof remarked on the bug thread, it is not possible to create a database anymore with rev. 4933 merged in your setup. The database creation breaks at assigning the main company to the main partner.

In fact, in an existing database you cannot create a new partner without a company, then edit the user and assign a company to it. It will lead to the same error, "You can not change the company as the partner/user has mutiple user linked with different companies.".

Seems easy to fix by checking if the partner is associated with any users at all in line 15 or 16.

review: Needs Fixing

« Back to merge proposal