[IMP] hr_recruitment: job kanban view: updated gauge widget according to new parameters
authorThibault Delavallée <tde@openerp.com>
Tue, 11 Feb 2014 10:05:37 +0000 (11:05 +0100)
committerThibault Delavallée <tde@openerp.com>
Tue, 11 Feb 2014 10:05:37 +0000 (11:05 +0100)
bzr revid: tde@openerp.com-20140211100537-9yrae5pbvmdntelv

addons/hr_recruitment/hr_recruitment_view.xml

index b379eab..cc419c1 100644 (file)
                                             </a>
                                         </div>
                                         <div class="oe_job_justgage">
-                                            <field state="recruit" name="no_of_hired_employee" widget="gauge" style="width:160px; height: 120px;" options="{'action_change': 'action_set_no_of_recruitment', 'max_field': 'no_of_recruitment', 'label': 'Hired Employees', 'input_value_field': 'no_of_recruitment'}"> </field>
+                                            <field state="recruit" name="no_of_hired_employee" widget="gauge"
+                                                style="width:160px; height: 120px;"
+                                                options="{
+                                                    'max_field': 'no_of_recruitment',
+                                                    'label': 'Hired Employees',
+                                                    'on_click_action': 'action_set_no_of_recruitment',
+                                                    'on_click_label': 'employee(s) to recruit',
+                                                    'force_set': False,
+                                                    'gauge_value_field': 'no_of_recruitment',
+                                                }">
+                                                Hired Employees
+                                            </field>
                                         </div>
                                     </t>
                                     <t t-if="record.state.raw_value == 'open'">