← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674277] Re: [6.0rc1] m2o, o2m and inherited views

 

Converted to a question, as this is basically a misunderstanding of the
OpenERP API

** Changed in: openobject-server
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/openobject-server/+question/133737

-- 
[6.0rc1] m2o, o2m and inherited views
https://bugs.launchpad.net/bugs/674277
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Invalid

Bug description:
Inherited views are not displayed in many2one or one2many widgets. Instead they construct a default view. Also, domains have no effect. Consequently useability is compromised.

I attach a module which has two models: inheritance_bug_category inherits from res.partner.category.
  If you run this you will see the tree view has columns 'Complete Name' 'Child Categories' and 'Some Number'. If you switch to the form view you will see that the one2many widget is only showing one column 'Category Name'. Search on 'Parent Category' and you see the same view. Both these views should be the same as the tree view with three columns.

The second model is inheritance_bug_demo. Run this and search on 'Bug Category'. Once again you see the single column default view, not the three column view as specified in the xml.

The category_view specifies a domain of [('child_ids','=',[])] in order to show only the leaves of the category tree but this has no effect. It does work if you put the domain in the action, but the action is not invoked in the o2m or m2o widgets.

You can override fields_view_get() to force the right view to be used, but it shouldn't be necessary.





References