Renaming custom m2m fields is not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
To reproduce the issue follow the given steps :
1). Create a object x_product.material with one char field
2). Create a m2m field x_material_id in product.product object with object reference to x_product.material and save it.
3). Edit the m2m x_material_id column name
It raise the following error.
[2011-09-14 15:30:11,
, in query ALTER TABLE "product_product" RENAME COLUMN "x_material_id" TO "x_dsdfsd_id"
[2011-09-14 15:30:11,
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return super(ir_
File "/home/
result += self._columns[
File "/home/
obj.write(cr, user, [act[1]], act[2], context=context)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: column "x_material_id" does not exist
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | New → Confirmed |
looking at the bug description and traceback and following what is described on the bug this does not seems to be reproduced on latest trunk. I can easily add a custom field. I attach images to show the m2m on product added.
please reopen if you still find a problem.
Thanks,