Add relate from work to timesheet lines
As the timesheet work has been replaced in changeset e678093e00ab, there is no more quick access to the timesheet line from the project. issue6276 review33101002
This commit is contained in:
1 parent
4ceef4d23c
commit
d23b2f174e
2 files changed
+21
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.action.act_window" id="act_timesheet_line_form_work">
|
||||
<field name="name">Timesheet Lines</field>
|
||||
<field name="res_model">timesheet.line</field>
|
||||
<field name="domain"
|
||||
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('work.origin.id', '=', Eval('active_id'), 'project.work'), ('work.origin.id', 'in', Eval('active_ids'), 'project.work'))]"
|
||||
pyson="1"/>
|
||||
</record>
|
||||
<record model="ir.action.keyword"
|
||||
id="act_timesheet_line_form_work_keyword1">
|
||||
<field name="keyword">form_relate</field>
|
||||
<field name="model">project.work,-1</field>
|
||||
<field name="action" ref="act_timesheet_line_form_work"/>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -8,3 +8,4 @@ depends:
|
||||
xml:
|
||||
project.xml
|
||||
work.xml
|
||||
timesheet.xml
|
||||
Reference in new issue
Block a user