← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Changed in: openobject-server
       Status: Incomplete => Triaged

-- 
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>