diff options
| author | Gaurav Panchal <gan@openerp.com> | 2014-08-20 10:48:06 +0530 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2015-05-08 11:20:54 +0200 |
| commit | 3fe06da63409d8015f739b6f601e976862370d33 (patch) | |
| tree | 8fe0146e113e222293694c4532f0285b90a87a00 /addons/project_issue_sheet/project_issue_sheet_view.xml | |
| parent | 42316d5aa58eb0528e44896cabb30ab4b3738e4a (diff) | |
[IMP] project,project_issue,sale: display the current contract state on some various objects like issues or tasks.
Implements a dynamic widget for selection fields to display this state with color codes.
Diffstat (limited to 'addons/project_issue_sheet/project_issue_sheet_view.xml')
| -rw-r--r-- | addons/project_issue_sheet/project_issue_sheet_view.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml index 7d2eddb6361..eb8f1d978bc 100644 --- a/addons/project_issue_sheet/project_issue_sheet_view.xml +++ b/addons/project_issue_sheet/project_issue_sheet_view.xml @@ -17,6 +17,10 @@ domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]" on_change='on_change_account_id(analytic_account_id)'/> </field> + <xpath expr='//div[@name="project"]' position='after'> + <field name="contract_state" widget="label_selection" attrs="{'invisible': ['|', ('partner_id', '=', False), ('analytic_account_id', '=', False)]}" + options="{'classes': {'template': 'default', 'draft': 'info', 'open': 'success', 'pending': 'warning', 'close': 'danger', 'cancelled': 'warning'}}" readonly="1"/> + </xpath> <xpath expr="//notebook/page[@name='extra_info']" position="before"> <page string="Timesheets"> <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : uid, 'default_account_id' : analytic_account_id, 'default_is_timesheet':1}" |
