relational custom fields incompatible with server update: AttributeError: 'NoneType' object has no attribute '_table'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
High
|
Unassigned |
Bug Description
On server 5.0 (rev: 1902), create a new database with minimal profile, install addons product and delivery.
Add a custom m2o field 'x_test' on product.product pointing to delivery.carrier .
Restart the server with --update=product and you'll get this kind of stacktrace:
[2009-12-07 18:13:09,168] INFO:init:module product: creating or updating database tables
Traceback (most recent call last):
File "./bin/
pooler.
File "/home/
addons.
File "/home/
r = load_module_
File "/home/
init_
File "/home/
result = obj._auto_init(cr, {'module': module_name})
File "/home/
ref = self.pool.
AttributeError: 'NoneType' object has no attribute '_table'
As far as I understand, the 'x_test' custom field is loaded with the rest of the product.product fields before the delivery addon is actually loaded, making it point to a currently unknown 'delivery.carrier' object known in the stacktrace as 'NoneType'.
Related branches
summary: |
- Custom fields obstructing updates + relational custom fields incompatible with server update: + AttributeError: 'NoneType' object has no attribute '_table' |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Hello I confirm the bug; this is a critical one for the Magento connector, see this bug: /bugs.launchpad .net/magentoerp connect/ +bug/484843
https:/
And we also guess this would cause bugs especially in Odoo where customization is achieved rather by adding custom fields than writing your own modules.
So fix in 5.0.7 would be cool. meanwhile we understand if that should wait.