← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

I noticed it in V5

Sometimes I have the impression that it's more the sequence of loading
modules than the priority which is used to determin which form is to be
used

this is (was) specially true form o2m widgets where it was not possible
to specify tree and form view ids.

-- 
switching from tree to form always takes the lowest priority
https://bugs.launchpad.net/bugs/566318
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: Incomplete

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>