[6.0] SERVER : Can not add a osv.memory field from the Openerp interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP's Framework R&D |
Bug Description
Hi I may found a bug (maybe it's an unimplemented feature on osv.memory)
Scenario
Open the menu Administration=
Open an object with the in memory model (In our case we will open the object delivery.
Add a new field (name it x_my_field)
Check the view name name in the tab view (Delivery Costs)
Open this view menu 'Administration
Add the field in the xml
<form string="Create Deliveries">
+ <field name="x_my_field"/>
Now try to open the in memory object
in our case :
-create a new sale order
- click on add delivery cost
Openerp will raise an error
Can't find field 'x_my_field' in the following view parts composing the view of object model 'delivery.
* Delivery Costs
This bug occure only with osv.memory object and it's work perfectly for the osv.osv object
Best Regards
Related branches
- OpenERP buildbot (community): Approve
-
Diff: 62 lines (+40/-1)2 files modifiedbin/addons/base/ir/ir_model.py (+7/-1)
bin/osv/orm.py (+33/-0)
summary: |
- [6.0] Server can not add a osv.memory field from the openerp interface + [6.0] SERVER : Can not add a osv.memory field from the Openerp interface |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
On Tuesday 08 March 2011, you wrote:
> ** Summary changed:
>
> - [6.0] Server can not add a osv.memory field from the openerp interface
> + [6.0] SERVER : Can not add a osv.memory field from the Openerp interface
I confirm the issue:
at orm.py:class orm_memory, there is no _auto_init() at all for them. Means,
the _columns of an osv_memory object are never changed through the database.
Moreover, creating a manual field (like 'x_foobar') and changing any of its
properties will result in an exception, since my "monster" patch would be
trying to treat it as a regular orm model.
Would flag this as a "low priority" issue, because I can't see how an
osv_memory object could be extended to do anything useful through the openerp
interface (without, that is, writting any python code at all).
Still, agree that it is a missing feature.