[OpenObject6] Synchronize Referential Settings violates not-null contsraint

Bug #623423 reported by Zack Powers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Fix Released
High
Unassigned

Bug Description

The column "company_id" now enforces a not null constraint on column.
To reproduce, use the following repositories:
bzr branch lp:openobject-server
bzr branch lp:openobject-addons
bar branch lp:openobject-addons/extra-5.0

Revision history for this message
Zack Powers (zpowers) wrote :
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Wow crap!
This is because OpenERP S.A. just made it a required field. Previously we were asking the user to fill the shop.company_id field when trying to import orders (the shop company will then be copied into the sale order).

Now we have to do it differently.
May be we could associate the company related to the current user by default when creating the shop (there is no company concept inside Magento). The user could always change it afterwards.
In this case, we would need to clean up the shop.company_id check we recently introduced at order importation.
We should also take care to code it in a way that remain compatible with OpenERP v5 (no shop.company_id field).

Thanks for the report. You would help us by trying to create such a patch eventually.

Changed in magentoerpconnect:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Zack Powers (zpowers) wrote :

Here is a patch for getting company_id from the current user, still needs a condition for if company_id does not exsit for OpenERP 5.

Revision history for this message
Zack Powers (zpowers) wrote :

Cleaned up a print statement left in the last patch.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Guys, it has been fixed a while ago already.

Changed in magentoerpconnect:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.