Odoo Ajuda

0

1
2 Respostas
0
Lucas Huber Suíça
18/09/15 07:42

This worked for me:

<record id="act_exchange_transaction_line_new" model="ir.actions.act_window">
    <field name="name">Transaction Line Message new </field> 
    <field name="view_id" ref="view_transaction_line_info_form"/> 
    <field name="res_model">exchange.transaction.line</field> 
    <field name="view_type">form</field> 
    <field name="view_mode">form</field>             
    field name="target">new</field> 
</record>

 

<field name="act_window_id"> did not work. 
But does anybody know how to integrate <field name="view_id" ref="view_transaction_line_info_form"/> into a function?

'view_id': 'view_transaction_line_info_form',

The line above does not work!

0
Anuradha Índia
07/09/13 08:40
Solved the  issue by using   ir.actions.act_window.view
Changed code as 
 <record model="ir.ui.view" id="calldata_form_view">
   <field name="name">calldata1.form</field>
   <field name="model">calldata1</field>
   <field name="priority" eval="2"/>
   <field name="type">form</field>
   <field name="arch" type="xml">
   <form string="calldata">
          <field name="caller" string="Caller"/>
  </form>
 </field>
 </record>
 <record model="ir.actions.act_window" id="action_calldata_form">
   <field name="name">Calldetails</field>
   <field name="res_model">calldata1</field>
   <field name="view_type">form</field>
   <field name="view_mode">form,itree,graph,calendar</field>
 </record>
<record id="calldata_form_action_tree_view" model="ir.actions.act_window.view">
    <field eval="1" name="sequence"/>
    <field name="view_mode">tree</field>
    <field name="view_id" ref="calldata_tree_view"/>
    <field name="act_window_id" ref="action_calldata_form"/>
  </record>
  <record id="calldata_form_action_form_view" model="ir.actions.act_window.view">
    <field eval="2" name="sequence"/>
    <field name="view_mode">form</field>
    <field name="view_id" ref="calldata_form_view"/>
    <field name="act_window_id" ref="action_calldata_form"/>
  </record>
  <record model="ir.ui.view" id="calldata_form_view_popup">
   <field name="name">calldata1.form</field>
   <field name="model">calldata1</field>
   <field name="type">form</field>
   <field name="priority" eval="1"/>
   <field name="arch" type="xml">
   <form string="calldata">
        <field name="caller" string="Caller"/>
  </form>
   </field>
  </record>
 <record model="ir.actions.act_window" id="action_calldata_popup_form">
    <field name="name">Calldetails</field>
    <field name="res_model">calldata1</field>
    <field name="view_type">form</field>
    <field name="view_mode">form</field>
    <field name="view_id" ref="calldata_form_view_popup"/>
  </record>

and removed view_id from return
Faça uma Pergunta
Writer
Marcadores
Keep Informed
1 seguidor (es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now