← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 566318] Re: switching from tree to form always takes the lowest priority

 

Hello,

As far as the 'ir.actions.act_window.view' is concerned, they work
correctly with relevant act_window on both the versions.

Proper priority is considered for action-bound list and form view here.

But, for O2M, either internal view has to be specified or the highest
priority view will taken into consideration.

Let me know if something has been misunderstood.

I would like to set the bug 'wont fix' for stable as its not at all a
blocking point, but keeping it as a 'wishlist' for future releases.

Thanks for reporting!

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/566318

Title:
  switching from tree to form always takes the lowest priority

Status in OpenObject Server:
  Triaged

Bug description:
  IMHO if such a code  is given the form with the id chricar_stock_care_act1_view1 and the view chricar_stock_care_form (priority=50) has to be taken
currently the standard stock picking form is used (priority 16)

    <record model="ir.actions.act_window" id="chricar_stock_care_act1">
      <field name="name">Stock Care</field>
      <field name="res_model">stock.picking</field>
      <field name="view_type">form</field>
      <field name="view_mode">tree,form</field>
      <field name="view_id" ref="chricar_stock_care_list"/>
      <field name="domain">[('type','=','production')]</field>
    </record>
    <record model="ir.actions.act_window.view" id="chricar_stock_care_act1_view2">
      <field name="sequence" eval="1"/>
      <field name="view_mode">tree</field>
      <field name="view_id" ref="chricar_stock_care_list"/>
      <field name="act_window_id" ref="chricar_stock_care_act1"/>
    </record>
    <record model="ir.actions.act_window.view" id="chricar_stock_care_act1_view1">
      <field name="sequence" eval="2"/>
      <field name="view_mode">form</field>
      <field name="view_id" ref="chricar_stock_care_form"/>
      <field name="act_window_id" ref="chricar_stock_care_act1"/>
    </record>