所以我写了一些来自互联网资源的代码。[参考odoo.com]
<record model="ir.actions.act_window" id="act_my_courses_tree">
<field name="name">Tasks in Queue Tree</field>
<field name="res_model">atm.surverys.management</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('responsible_id','=','uid')]</field>
</record>
<record model="ir.ui.view" id="board_tasksinque_form">
<field name="name">Tasks in Queue Form</field>
<field name="model">board.board</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Tasks in Queue">
<hpaned>
<child1>
<action string="Tasks in Queue" name="%(act_my_courses_tree)d"
colspan="2" />
</child1>
</hpaned>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="my_board">
<field name="name">Tasks in Queue</field>
<field name="res_model">board.board</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="usage">menu</field>
<field name="view_id" ref="board_tasksinque_form" />
</record>
在另一个模型中,我创建了一个树,我想在板视图中将它放在这里?任何想法
谢谢,Chandu
答案 0 :(得分:0)
删除为uid指定的引号。 uid保存当前登录用户的值。
<field name="domain">[('responsible_id','=',uid)]</field>