You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

129 lines
7.0 KiB

<openerp>
<data>
<record id="ir_cron_scheduler_demo_action" model="ir.cron">
<field name="name">Demo scheduler</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'project.task'" name="model"/>
<field eval="'process_demo_scheduler_queue'" name="function"/>
</record>
<record id="view_project_inherit" model="ir.ui.view">
<field name="name">Project Inherit</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='project_id']" position="after">
<field name="progress1" widget="progressbar"/>
<field name="deadline_color" invisible="True"/>
</xpath>
<xpath expr="//tree[1]" position="attributes">
<attribute name="colors">red:deadline_color=='red';green:deadline_color=='green'</attribute>
</xpath>
<xpath expr="//field[@name='deadline_color']" position="attributes">
<attribute name="attrs">{'invisible': [('deadline_color', '!=', 'XYZ')]}</attribute>
</xpath>
</field>
</record>
<record id="view_project_inherit1" model="ir.ui.view">
<field name="name">Project Inherit1</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<!-- <xpath expr="/form/notebook/page/field[@name='date_last_stage_update']" position="after">
<field name="deadline_color"/>
</xpath>-->
<!--from -->
<xpath expr="//form" position="replace">
<form string="Project">
<header>
<field name="stage_id" widget="statusbar" clickable="True"
options="{'fold_field': 'fold'}"/>
</header>
<sheet string="Task">
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object" groups="base.group_user"
class="oe_stat_button" icon="fa-archive">
<field name="get_user" invisible="True"/>
<field name="active" widget="boolean_button"
options='{"terminology": "archive"}'/>
</button>
</div>
<field name="kanban_state" class="oe_inline" widget="kanban_state_selection" groups="project.group_project_manager"/>
<div class="oe_title">
<h1 class="o_row">
<field name="priority" widget="priority"/>
<field name="name" placeholder="Task Title..." attrs="{'readonly':[('get_user','!=',True)]}"/>
</h1>
</div>
<group>
<group>
<field name="project_id" domain="[('state','not in', ('close', 'cancelled'))]"
on_change="onchange_project(project_id)"
attrs="{'readonly':[('get_user','!=',True)]}" context="{'default_use_tasks':1}"/>
<field name="user_id" attrs="{'readonly':[('get_user','!=',True)]}"
options='{"no_open": True}'
context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'project.group_project_user']}"/>
<field name="task_time" widget="float_time" attrs="{'readonly':[('get_user','!=',True)]}"/>
<field name="planned_hours" widget="float_time"
groups="project.group_time_work_estimation_tasks"
on_change="onchange_planned(planned_hours)"/>
<field name="legend_blocked" invisible="1"/>
<field name="legend_normal" invisible="1"/>
<field name="legend_done" invisible="1"/>
</group>
<group>
<field name="date_deadline_ex" attrs="{'readonly':[('get_user','!=',True)]}"/>
<field name="tag_ids" widget="many2many_tags" attrs="{'readonly':[('get_user','!=',True)]}"/>
<field name="progress1" widget="progressbar"/>
</group>
</group>
<notebook>
<page name="description_page" string="Description">
<field name="description" type="html"/>
<div class="oe_clear"/>
</page>
<page string="Extra Info">
<group col="4">
<group col="2">
<field name="sequence" groups="base.group_no_one"/>
<field name="partner_id"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
<field name="displayed_image_id" groups="base.group_no_one"/>
</group>
<group col="2">
<field name="date_assign" groups="base.group_no_one"/>
<field name="date_last_stage_update" groups="base.group_no_one"/>
</group>
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</xpath>
</field>
</record>
<record id="view_project_inherit2" model="ir.ui.view">
<field name="name">Project Inherit2</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="arch" type="xml">
<xpath expr="//t[@t-name='kanban-box']" position="attributes">
<attribute name="attrs">{'invisible':[('kanban_state','=','blocked')]}</attribute>
</xpath>
</field>
</record>
</data>
</openerp>