61 lines
3.9 KiB
XML
61 lines
3.9 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="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>
|
|
<field name="active" position="after">
|
|
<field name="analytic_account_id"
|
|
domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]"
|
|
on_change='on_change_account_id(analytic_account_id)'/>
|
|
</field>
|
|
<xpath expr='//div[@name="project"]' position='after'>
|
|
<field name="contract_state" widget="label_selection" attrs="{'invisible': ['|', ('partner_id', '=', False), ('analytic_account_id', '=', False)]}"
|
|
options="{'classes': {'template': 'default', 'draft': 'info', 'open': 'success', 'pending': 'warning', 'close': 'danger', 'cancelled': 'warning'}}" readonly="1"/>
|
|
</xpath>
|
|
<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_account_id' : analytic_account_id, 'default_is_timesheet':1}"
|
|
groups="base.group_user">
|
|
<tree editable="top" string="Timesheet Activities">
|
|
<field name="date"/>
|
|
<field name="user_id" required="1"/>
|
|
<field name="name"/>
|
|
<field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id, user_id, is_timesheet, context)" options="{'no_open': True, 'no_create': True}" groups="analytic.group_analytic_accounting"/>
|
|
<field name="unit_amount" string="Duration" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id, context)" widget="float_time"/>
|
|
<field name="to_invoice" invisible="1"/>
|
|
<field name="product_uom_id" invisible="1" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id, context)"/>
|
|
<field name="journal_id" invisible="1"/>
|
|
<field name="amount" invisible="1"/>
|
|
<field name="general_account_id" invisible="1"/>
|
|
<field name="product_id" invisible="1"/>
|
|
<field name="is_timesheet" invisible="1"/>
|
|
</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>
|