Files
odoo_source/addons/project_issue_sheet/project_issue_sheet_view.xml
T
Tanguy Charlier 16bf40f7c4 [IMP] hr_timesheet: Timesheet entries are now related to projects
- Hide account_id field and add a required project_id field on timesheet entries
- Remove is_timesheet field: as project_id is only required for timesheet entries and not for other analytic lines, it can be used to determine wether a line is a timeheet entry or not.
- Remove project_timesheet module as all its functionalities are moved to hr_timesheet
- Replace timesheets on contract option on products by timesheets on project
- Small fixes and improvements in timesheets and projects views and groups
2016-02-18 01:25:55 +01:00

46 lines
2.3 KiB
XML

<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="project_issue_form_view">
<field name="name">Project Issue Tracker Form</field>
<field name="model">project.issue</field>
<field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
<field name="inherit_id" ref="project_issue.project_issue_form_view" />
<field name="arch" type="xml">
<field name="task_id" position="after">
<field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}" class="oe_inline"/>
</field>
<field name="project_id" position="attributes">
<attribute name="on_change">on_change_project(project_id)</attribute>
</field>
<xpath expr="//notebook/page[@name='extra_info']" position="before">
<page string="Timesheets">
<field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : uid, 'default_project_id': project_id}"
groups="base.group_user">
<tree editable="top" string="Timesheet Activities">
<field name="date"/>
<field name="user_id" required="1"/>
<field name="name"/>
<field name="project_id" invisible="1" required="1"/>
<field name="unit_amount" string="Duration" widget="float_time"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
<record id="project_issue_tree_view_inherited" model="ir.ui.view">
<field name="name">Project Issue Tracker Tree Inherited</field>
<field name="model">project.issue</field>
<field name="inherit_id" ref="project_issue.project_issue_tree_view" />
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="progress" widget="progressbar" invisible="context.get('set_visible',False)"/>
</field>
</field>
</record>
</data>
</openerp>