[IMP] project_issue_sheet: improved view
[odoo/odoo.git] / addons / project_issue_sheet / project_issue_sheet_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4         <record model="ir.ui.view" id="project_issue_form_view">
5             <field name="name">Project Issue Tracker Form</field>
6             <field name="model">project.issue</field>
7             <field name="inherit_id" ref="project_issue.project_issue_form_view" />
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10                 <notebook colspan="4">
11                     <page string="Worklogs">
12                         <field name="analytic_account_id" invisible="1"/>
13                         <field name="timesheet_ids" colspan="4" nolabel="1" default_get="{'account_id':project_id}" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}">
14                             <tree editable="top" string="Timesheet">
15                                 <field name="name"/>
16                                 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" widget="float_time"/>
17                                 <field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/>
18                                 <field name="date"/>
19                                 <field name="user_id"/>
20                                 <field invisible="1" name="journal_id"/>
21                                 <field invisible="1" name="product_id"/>
22                                 <field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
23                                 <field invisible="1" name="amount"/>
24                                 <field invisible="1" name="general_account_id"/>
25                             </tree>
26                         </field>
27                     </page>
28                 </notebook>
29             </field>
30         </record>
31     </data>
32 </openerp>