Files
tryton/work.xml
T

78 lines
3.7 KiB
XML

<?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.ui.view" id="work_view_form">
<field name="model">project.work</field>
<field name="inherit" ref="project.work_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook/page[@id=&quot;timesheet_lines&quot;]"
position="after">
<page string="Plan" id="plan">
<label name="constraint_start_date"/>
<field name="constraint_start_date"/>
<label name="constraint_finish_date"/>
<field name="constraint_finish_date"/>
<label name="early_start_date"/>
<field name="early_start_date"/>
<label name="early_finish_date"/>
<field name="early_finish_date"/>
<label name="late_start_date"/>
<field name="late_start_date"/>
<label name="late_finish_date"/>
<field name="late_finish_date"/>
<label name="actual_start_date"/>
<field name="actual_start_date"/>
<label name="actual_finish_date"/>
<field name="actual_finish_date"/>
<label name="duration"/>
<field name="duration" widget="float_time" float_time="company_work_time"/>
<newline/>
<field name="predecessors" colspan="2"/>
<field name="successors" colspan="2"/>
</page>
<page string="Allocations" id="allocations"
states="{'invisible': Not(Equal(Eval('type'), 'task'))}" >
<field name="allocations" colspan="4"/>
</page>
<page string="Requests" id="requests">
<field name="requests"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
<record model="ir.action.wizard" id="wizard_leveling">
<field name="name">Tasks Leveling</field>
<field name="wiz_name">project_plan.work.leveling</field>
<field name="model">project.work</field>
</record>
<record model="ir.action.keyword" id="leveling_keyword">
<field name="keyword">form_action</field>
<field name="model">project.work,-1</field>
<field name="action" ref="wizard_leveling"/>
</record>
<record model="res.request.link" id="request_link_work">
<field name="name">Work</field>
<field name="model">project.work</field>
</record>
<record model="ir.translation" id="project_work_recursion_error">
<field name="name">project.work</field>
<field name="lang">en_US</field>
<field name="type">error</field>
<field name="src">recursion_error</field>
<field name="value">Recursion error: Project Work "%(rec_name)s" with parent "%(parent_rec_name)s" was configured as ancestor of itself.</field>
<field name="module">project_plan</field>
<field name="fuzzy" eval="False"/>
</record>
</data>
</tryton>