97 lines
5.0 KiB
XML
97 lines
5.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="project_project_inherit_form_view" model="ir.ui.view">
|
|
<field name="name">project.project.inherit.form.view</field>
|
|
<field name="model">project.project</field>
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('oe_title')]" position="after">
|
|
<group>
|
|
<h1>
|
|
<field name="sequence_name" readonly="1"/>
|
|
</h1>
|
|
</group>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='user_id']" position="after">
|
|
<field name="project_lead" widget="many2one_avatar_user"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='user_id']" position="replace">
|
|
<field name="user_id" widget="many2one_avatar_user"/>
|
|
</xpath>
|
|
<xpath expr="//page[@name='settings']" position="inside">
|
|
<group>
|
|
<group name="group_project_channel_managment" string="Project Channel" col="1"
|
|
class="row mt16 o_settings_container">
|
|
<div>
|
|
<setting class="col-lg-12" id="discuss_channel_settings"
|
|
help="Determine the channel in which we are sending notifications">
|
|
<field name="discuss_channel_id"/>
|
|
<button name="action_create_project_channel"
|
|
string="Create Project Channel"
|
|
type="object"
|
|
class="btn-primary"
|
|
invisible = "discuss_channel_id"/>
|
|
</setting>
|
|
<field name="default_projects_channel_id" invisible="1"/>
|
|
</div>
|
|
</group>
|
|
|
|
</group>
|
|
</xpath>
|
|
<!-- <xpath expr="//field[@name='label_tasks']" position="before">-->
|
|
<!-- <group string="Project Channel">-->
|
|
<!-- <field name="discuss_channel_id" widget="many2one"-->
|
|
<!-- context="{'default_parent_id': default_projects_channel_id}"/>-->
|
|
<!-- <button name="action_create_project_channel"-->
|
|
<!-- string="Create Project Channel"-->
|
|
<!-- type="object"-->
|
|
<!-- class="btn-primary"-->
|
|
<!-- attrs="{'invisible': [('discuss_channel_id', '!=', False)]}"/>-->
|
|
<!-- <field name="default_projects_channel_id" invisible="1"/>-->
|
|
<!-- </group>-->
|
|
<!-- </xpath>-->
|
|
|
|
<page name="settings" position="after">
|
|
<page string="Team">
|
|
<group>
|
|
<button name="add_users" type="object" string="Add/Update" class="btn-primary"/>
|
|
</group>
|
|
<group>
|
|
<field name="members_ids" widget="many2many_avatar_user" nolabel="1"
|
|
options="{'no_create': True, 'no_create_edit': True, 'no_open': True, 'no_quick_create': True}" readonly="1"/>
|
|
|
|
</group>
|
|
</page>
|
|
<page name="task_stages" string="Task Stages">
|
|
<field name="type_ids" context="{'project_id': id}" options="{'no_open': True}">
|
|
<list edit="0" no_open="True">
|
|
<field name="sequence"/>
|
|
<field name="name"/>
|
|
<field name="team_id"/>
|
|
<field name="approval_by"/>
|
|
<field name="fold"/>
|
|
<button name="create_or_update_data"
|
|
type="object"
|
|
string="Update"
|
|
class="btn-primary"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="project_invoice_form_inherit" model="ir.ui.view">
|
|
<field name="name">project.invoice.inherit.form.view</field>
|
|
<field name="model">project.project</field>
|
|
<field name="inherit_id" ref="hr_timesheet.project_invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='allocated_hours']" position="after">
|
|
<field name="estimated_hours" widget="timesheet_uom_no_toggle" invisible="not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
|
|
<field name="task_estimated_hours" widget="timesheet_uom_no_toggle" invisible="not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
|
|
<field name="actual_hours" widget="timesheet_uom_no_toggle" invisible="not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo> |