Merge lp:~openerp-dev/openobject-addons/trunk-addons_issue12_hr-cha into lp:openobject-addons

Proposed by Ajay Chauhan(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-addons_issue12_hr-cha
Merge into: lp:openobject-addons
Diff against target: 117 lines (+43/-9)
6 files modified
hr/hr_view.xml (+12/-7)
hr_expense/security/ir.model.access.csv (+1/-0)
hr_holidays/hr_holidays_view.xml (+26/-0)
hr_recruitment/hr_recruitment_view.xml (+1/-1)
hr_timesheet_invoice/hr_timesheet_invoice.py (+2/-0)
hr_timesheet_sheet/wizard/hr_timesheet_current.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-addons_issue12_hr-cha
Reviewer Review Type Date Requested Status
Purnendu Singh (OpenERP) (community) Approve
Review via email: mp+126669@code.launchpad.net

Description of the change

Hello,

   I have made changes to solve the issues of addons12.

Thanks,
Ajay Chauhan

To post a comment you must log in.
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

Seems Ok

Thanks,
Purnendu Singh

review: Approve
7552. By Ajay Chauhan(OpenERP)

[IMP] hr, hr_recruitment: made changes in form view

7553. By Ajay Chauhan(OpenERP)

[MERGE] merge with lp:openobject-addons

7554. By Ajay Chauhan(OpenERP)

[MERGE] merge with lp:openobject-addons

7555. By Ajay Chauhan(OpenERP)

[MERGE] merge with lp:openobject-addons

7556. By Ajay Chauhan(OpenERP)

[MERGE] merge with lp:openobject-addons

Unmerged revisions

7556. By Ajay Chauhan(OpenERP)

[MERGE] merge with lp:openobject-addons

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hr/hr_view.xml'
--- hr/hr_view.xml 2012-10-09 15:00:45 +0000
+++ hr/hr_view.xml 2012-10-11 05:22:21 +0000
@@ -334,13 +334,18 @@
334 <field name="state" widget="statusbar" statusbar_visible="recruit,open"/>334 <field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
335 </header>335 </header>
336 <sheet>336 <sheet>
337 <label for="name" class="oe_edit_only"/>337 <div class="oe_title">
338 <h1>338 <label for="name" class="oe_edit_only"/>
339 <field name="name" class="oe_inline"/>339 <h1><field name="name" class="oe_inline"/></h1>
340 <label class="oe_inline" string="(" attrs="{'invisible': [('department_id', '=', False)]}"/>340 </div>
341 <field name="department_id" class="oe_inline"/>341 <div name="Department">
342 <label class="oe_inline" string=")" attrs="{'invisible': [('department_id', '=', False)]}"/>342 <label for="department_id" class="oe_edit_only"/>
343 </h1>343 <h1>
344 <label class="oe_inline" string="(" attrs="{'invisible': [('department_id', '=', False)]}"/>
345 <field name="department_id" class="oe_inline"/>
346 <label class="oe_inline" string=")" attrs="{'invisible': [('department_id', '=', False)]}"/>
347 </h1>
348 </div>
344 <group>349 <group>
345 <group>350 <group>
346 <field name="no_of_employee" groups="base.group_user"/>351 <field name="no_of_employee" groups="base.group_user"/>
347352
=== modified file 'hr_expense/security/ir.model.access.csv'
--- hr_expense/security/ir.model.access.csv 2012-09-20 08:56:09 +0000
+++ hr_expense/security/ir.model.access.csv 2012-10-11 05:22:21 +0000
@@ -9,6 +9,7 @@
9access_product_uom_hr_expense_user,product.uom.hr.expense.user,product.model_product_uom,base.group_hr_user,1,1,1,19access_product_uom_hr_expense_user,product.uom.hr.expense.user,product.model_product_uom,base.group_hr_user,1,1,1,1
10access_product_price_type_user,product.price.type.user,product.model_product_price_type,base.group_hr_user,1,1,1,110access_product_price_type_user,product.price.type.user,product.model_product_price_type,base.group_hr_user,1,1,1,1
11access_account_journal_user,account.journal.user,account.model_account_journal,base.group_hr_user,1,1,1,111access_account_journal_user,account.journal.user,account.model_account_journal,base.group_hr_user,1,1,1,1
12access_account_journal_employee,account.journal.employee,account.model_account_journal,base.group_user,1,1,1,1
12access_account_invoice_user,account.invoice.user,account.model_account_invoice,base.group_hr_user,1,1,1,113access_account_invoice_user,account.invoice.user,account.model_account_invoice,base.group_hr_user,1,1,1,1
13access_account_invoice_line_user,account.invoice.line.user,account.model_account_invoice_line,base.group_hr_user,1,1,1,114access_account_invoice_line_user,account.invoice.line.user,account.model_account_invoice_line,base.group_hr_user,1,1,1,1
14access_account_analytic_journal_user,account.ianalytic.journal.user,account.model_account_analytic_journal,base.group_hr_user,1,1,1,115access_account_analytic_journal_user,account.ianalytic.journal.user,account.model_account_analytic_journal,base.group_hr_user,1,1,1,1
1516
=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml 2012-10-04 16:10:09 +0000
+++ hr_holidays/hr_holidays_view.xml 2012-10-11 05:22:21 +0000
@@ -353,6 +353,32 @@
353353
354 <menuitem name="My Allocation Requests" parent="menu_open_ask_holidays" id="menu_open_allocation_holidays" action="open_allocation_holidays"/>354 <menuitem name="My Allocation Requests" parent="menu_open_ask_holidays" id="menu_open_allocation_holidays" action="open_allocation_holidays"/>
355355
356 <record model="ir.actions.act_window" id="request_approve_allocation">
357 <field name="name">Allocation Requests Approve</field>
358 <field name="res_model">hr.holidays</field>
359 <field name="view_type">form</field>
360 <field name="context">{'default_type': 'add', 'search_default_approve':1}</field>
361 <field name="domain">[('type','=','add')]</field>
362 <field name="view_id" ref="allocation_leave_new"/>
363 <field name="search_view_id" ref="view_hr_holidays_filter"/>
364 </record>
365
366 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_tree">
367 <field name="sequence" eval="1"/>
368 <field name="view_mode">tree</field>
369 <field name="view_id" ref="view_holiday_allocation_tree"/>
370 <field name="act_window_id" ref="request_approve_allocation"/>
371 </record>
372
373 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_form">
374 <field name="sequence" eval="2"/>
375 <field name="view_mode">form</field>
376 <field name="view_id" ref="allocation_leave_new"/>
377 <field name="act_window_id" ref="request_approve_allocation"/>
378 </record>
379
380 <menuitem name="Allocation Requests to Approve" parent="menu_open_ask_holidays" id="menu_request_approve_allocation" action="request_approve_allocation" groups="base.group_hr_manager"/>
381
356 <record model="ir.actions.act_window" id="open_company_allocation">382 <record model="ir.actions.act_window" id="open_company_allocation">
357 <field name="name">Leaves Summary</field>383 <field name="name">Leaves Summary</field>
358 <field name="res_model">hr.holidays</field>384 <field name="res_model">hr.holidays</field>
359385
=== modified file 'hr_recruitment/hr_recruitment_view.xml'
--- hr_recruitment/hr_recruitment_view.xml 2012-10-08 10:00:32 +0000
+++ hr_recruitment/hr_recruitment_view.xml 2012-10-11 05:22:21 +0000
@@ -342,7 +342,7 @@
342 attrs="{'invisible':[('survey_id','=',False)]}"/>342 attrs="{'invisible':[('survey_id','=',False)]}"/>
343 </div>343 </div>
344 </field>344 </field>
345 <xpath expr="/form/sheet/h1" version="7.0" position="after">345 <xpath expr="//div[@name='Department']" version="7.0" position="after">
346 <div colspan="4" attrs="{'invisible': [('alias_domain', '=', False)]}">346 <div colspan="4" attrs="{'invisible': [('alias_domain', '=', False)]}">
347 <field name="alias_id" invisible="1" required="0"/>347 <field name="alias_id" invisible="1" required="0"/>
348 <label for="alias_name" class="oe_edit_only"/>348 <label for="alias_name" class="oe_edit_only"/>
349349
=== modified file 'hr_timesheet_invoice/hr_timesheet_invoice.py'
--- hr_timesheet_invoice/hr_timesheet_invoice.py 2012-10-02 20:40:23 +0000
+++ hr_timesheet_invoice/hr_timesheet_invoice.py 2012-10-11 05:22:21 +0000
@@ -135,6 +135,8 @@
135 def _default_general_account(self, cr, uid, context=None):135 def _default_general_account(self, cr, uid, context=None):
136 proxy = self.pool.get('hr.employee')136 proxy = self.pool.get('hr.employee')
137 record_ids = proxy.search(cr, uid, [('user_id', '=', uid)], context=context)137 record_ids = proxy.search(cr, uid, [('user_id', '=', uid)], context=context)
138 if not record_ids:
139 raise osv.except_osv(_('Error!'), _('Please create an employee and associate it with this user.'))
138 employee = proxy.browse(cr, uid, record_ids[0], context=context)140 employee = proxy.browse(cr, uid, record_ids[0], context=context)
139 if employee.product_id and employee.product_id.property_account_income:141 if employee.product_id and employee.product_id.property_account_income:
140 return employee.product_id.property_account_income.id142 return employee.product_id.property_account_income.id
141143
=== modified file 'hr_timesheet_sheet/wizard/hr_timesheet_current.py'
--- hr_timesheet_sheet/wizard/hr_timesheet_current.py 2012-10-02 15:15:20 +0000
+++ hr_timesheet_sheet/wizard/hr_timesheet_current.py 2012-10-11 05:22:21 +0000
@@ -35,7 +35,7 @@
3535
36 user_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)], context=context)36 user_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)], context=context)
37 if not len(user_ids):37 if not len(user_ids):
38 raise osv.except_osv(_('Error!'), _('Please define employee for your user!'))38 raise osv.except_osv(_('Error!'), _('Please create an employee and associate it with this user.'))
39 ids = ts.search(cr, uid, [('user_id','=',uid),('state','=','draft'),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)39 ids = ts.search(cr, uid, [('user_id','=',uid),('state','=','draft'),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)
4040
41 if len(ids) > 1:41 if len(ids) > 1:

Subscribers

People subscribed via source and target branches

to all changes: