[IMP] Misc improvements to kanban views
bzr revid: fme@openerp.com-20111205150706-qudlh5ie7fs56cl8
This commit is contained in:
parent
74b562cc9a
commit
a2486bf3c7
|
@ -131,7 +131,7 @@
|
|||
<field name="model">hr.employee</field>
|
||||
<field name="type">kanban</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="job_id">
|
||||
<kanban>
|
||||
<field name="color"/>
|
||||
<templates>
|
||||
<t t-name="employee_details">
|
||||
|
|
|
@ -181,6 +181,7 @@ class hr_applicant(crm.crm_case, osv.osv):
|
|||
'day_close': fields.function(_compute_day, string='Days to Close', \
|
||||
multi='day_close', type="float", store=True),
|
||||
'color': fields.integer('Color Index'),
|
||||
'user_email': fields.related('user_id', 'user_email', type='char', string='User Email', readonly=True),
|
||||
}
|
||||
|
||||
def _get_stage(self, cr, uid, context=None):
|
||||
|
|
|
@ -278,9 +278,9 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<!-- hr Applicant Kanban View -->
|
||||
<!-- hr Applicant Kanban View -->
|
||||
|
||||
<record model="ir.ui.view" id="hr_kanban_view_applicant">
|
||||
<record model="ir.ui.view" id="hr_kanban_view_applicant">
|
||||
<field name="name">Hr Applicants kanban</field>
|
||||
<field name="model">hr.applicant</field>
|
||||
<field name="type">kanban</field>
|
||||
|
@ -290,8 +290,8 @@
|
|||
<field name="state"/>
|
||||
<field name="priority"/>
|
||||
<field name="survey"/>
|
||||
<field name="email_from"/>
|
||||
<field name="user_id"/>
|
||||
<field name="user_email"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<t t-if="record.priority.raw_value == 1" t-set="border">oe_kanban_color_red</t>
|
||||
|
@ -302,7 +302,7 @@
|
|||
<td align="left" valign="middle" class="oe_kanban_title">
|
||||
<field name="partner_name"/>
|
||||
</td>
|
||||
<td valign="top" width="22"><img t-att-src="kanban_gravatar(record.email_from.value, 22)" class="oe_kanban_gravatar" t-att-title="record.user_id.value"/></td>
|
||||
<td valign="top" width="22"><img t-att-src="kanban_gravatar(record.user_email.value, 22)" class="oe_kanban_gravatar" t-att-title="record.user_id.value"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger oe_kanban_color_border">
|
||||
|
@ -324,6 +324,7 @@
|
|||
<div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
|
||||
<div class="oe_kanban_left">
|
||||
<a string="Edit" icon="gtk-edit" type="edit"/>
|
||||
<a string="Delete" icon="gtk-close" type="delete"/>
|
||||
<a string="Change Color" icon="color-picker" type="color" name="color"/>
|
||||
<a string="Send New Email" name="%(mail.action_email_compose_message_wizard)d" icon="terp-mail-message-new" type="action"/>
|
||||
<a string="Add Internal Note" name="%(crm.action_crm_add_note)d" context="{'model': 'crm.lead' }" icon="terp-document-new" type="action"/>
|
||||
|
@ -331,8 +332,10 @@
|
|||
<a t-if="record.survey.raw_value" name="action_print_survey" type="object" string="Print Interview" icon="gtk-print" />
|
||||
</div>
|
||||
<div class="oe_kanban_right">
|
||||
<a name="case_open" string="Open" states="pending,draft" type="object" icon="kanban-apply" />
|
||||
<a name="case_pending" string="Pending" states="draft,open" type="object" icon="kanban-pause" />
|
||||
<a name="case_cancel" string="Refuse" states="draft,open,pending" type="object" icon="kanban-stop"/>
|
||||
<a name="case_open" string="In Progress" states="draft,pending" type="object" icon="kanban-apply"/>
|
||||
<a name="%(action_hr_recruitment_hired_employee)d" string="Hire" states="open,pending" type="action" icon="terp-partner"/>
|
||||
<a name="case_pending" string="Pending" states="open" type="object" icon="kanban-pause"/>
|
||||
</div>
|
||||
<br class="oe_kanban_clear"/>
|
||||
</div>
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Product Kanban View -->
|
||||
<record model="ir.ui.view" id="product_kanban_view">
|
||||
<field name="name">Product Kanban</field>
|
||||
|
|
|
@ -125,13 +125,13 @@
|
|||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.ui.view" id="product.product_kanban_view">
|
||||
<field name="name">Product Kanban</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="type">kanban</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="type">
|
||||
<kanban>
|
||||
<field name="color"/>
|
||||
<field name="type"/>
|
||||
<field name="product_image"/>
|
||||
|
|
Loading…
Reference in New Issue