[IMP] [REV] crm, addons: still stage/state tweaking
- crm: Mark Won / Lost buttons are back - crm: now using the new 'fold_field' option to fold some stages on the fold field of stages. Back to saas-1 bebavhior. - project, project_issue: task and issue also use the fold_field option. - project: fixed 'X Tasks' display on the project vignette: now always displaying 'X Tasks at plural form to simplify the view. bzr revid: tde@openerp.com-20131127095300-9onzlt5pl9u82zt6
This commit is contained in:
parent
354afeb8b5
commit
a8beece158
|
@ -99,6 +99,7 @@
|
||||||
help="Convert to Opportunity" class="oe_highlight"/>
|
help="Convert to Opportunity" class="oe_highlight"/>
|
||||||
<field name="stage_id" widget="statusbar" clickable="True"
|
<field name="stage_id" widget="statusbar" clickable="True"
|
||||||
domain="['&', '|', ('case_default', '=', True), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"
|
domain="['&', '|', ('case_default', '=', True), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"
|
||||||
|
options="{'fold_field': 'fold'}"
|
||||||
on_change="onchange_stage_id(stage_id)"/>
|
on_change="onchange_stage_id(stage_id)"/>
|
||||||
</header>
|
</header>
|
||||||
<sheet>
|
<sheet>
|
||||||
|
@ -379,13 +380,10 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Opportunities" version="7.0">
|
<form string="Opportunities" version="7.0">
|
||||||
<header>
|
<header>
|
||||||
<!-- :deprecated: this button will be removed from the view with OpenERP v8 -->
|
<button name="case_mark_won" string="Mark Won" type="object" class="oe_highlight"/>
|
||||||
<button name="case_mark_won" string="Mark Won" type="object" class="oe_highlight"
|
<button name="case_mark_lost" string="Mark Lost" type="object" class="oe_highlight"/>
|
||||||
invisible="True"/>
|
|
||||||
<!-- :deprecated: this button will be removed from the view with OpenERP v8 -->
|
|
||||||
<button name="case_mark_lost" string="Mark Lost" type="object" class="oe_highlight"
|
|
||||||
invisible="True"/>
|
|
||||||
<field name="stage_id" widget="statusbar" clickable="True"
|
<field name="stage_id" widget="statusbar" clickable="True"
|
||||||
|
options="{'fold_field': 'fold'}"
|
||||||
domain="['&', ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"/>
|
domain="['&', ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"/>
|
||||||
</header>
|
</header>
|
||||||
<sheet>
|
<sheet>
|
||||||
|
|
|
@ -260,9 +260,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="oe_kanban_project_list">
|
<div class="oe_kanban_project_list">
|
||||||
<a t-if="record.use_tasks.raw_value" name="%(act_project_project_2_project_task_all)d" type="action" style="margin-right: 10px">
|
<a t-if="record.use_tasks.raw_value" name="%(act_project_project_2_project_task_all)d" type="action" style="margin-right: 10px">
|
||||||
<t t-raw="record.task_ids.raw_value.length"/>
|
<t t-raw="record.task_ids.raw_value.length"/> Tasks
|
||||||
<span t-if="record.task_ids.raw_value.length == 1">Task</span>
|
|
||||||
<span t-if="record.task_ids.raw_value.length > 1">Tasks</span>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="oe_kanban_project_list">
|
<div class="oe_kanban_project_list">
|
||||||
|
@ -370,7 +368,8 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Project" version="7.0">
|
<form string="Project" version="7.0">
|
||||||
<header>
|
<header>
|
||||||
<field name="stage_id" widget="statusbar" clickable="True"/>
|
<field name="stage_id" widget="statusbar" clickable="True"
|
||||||
|
options="{'fold_field': 'fold'}"/>
|
||||||
</header>
|
</header>
|
||||||
<sheet string="Task">
|
<sheet string="Task">
|
||||||
<h1>
|
<h1>
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Issue" version="7.0">
|
<form string="Issue" version="7.0">
|
||||||
<header>
|
<header>
|
||||||
<field name="stage_id" widget="statusbar" clickable="True"/>
|
<field name="stage_id" widget="statusbar" clickable="True"
|
||||||
|
options="{'fold_field': 'fold'}"/>
|
||||||
</header>
|
</header>
|
||||||
<sheet string="Issue">
|
<sheet string="Issue">
|
||||||
<label for="name" class="oe_edit_only"/>
|
<label for="name" class="oe_edit_only"/>
|
||||||
|
|
Loading…
Reference in New Issue