[IMP] hr_payroll: convert the wizard of hr_payroll_year_salary into osv_memory

bzr revid: sbh@tinyerp.com-20100630125412-7gqx7s7x5wxegcc2
This commit is contained in:
sbh (Open ERP) 2010-06-30 18:24:12 +05:30
parent 0f5d7b52da
commit 6b8ca34ca4
7 changed files with 50 additions and 5 deletions

View File

@ -52,6 +52,7 @@
'hr_payroll_data.xml',
'wizard/hr_payroll_create_analytic.xml',
'wizard/hr_payroll_employees_detail.xml',
'wizard/hr_payroll_year_salary.xml',
'hr_payroll_wizard.xml'
],
'demo_xml': [

View File

@ -64,7 +64,7 @@ class year_salary_report(rml_parse.rml_parse):
periods = []
tol_mnths=['Total',0,0,0,0,0,0,0,0,0,0,0,0]
emp = pooler.get_pool(self.cr.dbname).get('hr.employee')
emp_ids = form['employee_ids'][0][2]
emp_ids = form['employee_ids']
empll = emp.browse(self.cr,self.uid, emp_ids)
fiscalyear_obj = pooler.get_pool(self.cr.dbname).get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear_id'])
period_ids_l = fiscalyear_obj.period_ids

View File

@ -1,3 +1,3 @@
import hr_payroll_employees_detail
import wizard_employees_detail
import hr_payroll_create_analytic
import hr_payroll_year_salary

View File

@ -27,7 +27,7 @@
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem id="menu_hr_payroll_reporting" parent="hr.menu_hr_reporting" name="Payroll"/>
<!-- <menuitem id="menu_wizard_payroll_analysis"
action="action_view_hr_payroll_create"
parent="payroll_configure"

View File

@ -14,7 +14,7 @@
<newline/>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
<button name="print_report" string="Print Report"
type="object" icon="gtk-print" />
</group>
</form>
@ -29,7 +29,7 @@
<field name="target">new</field>
</record>
<menuitem id="action_hr_payroll_employees_detail1"
<menuitem id="action_hr_payroll_employees_detail"
icon="STOCK_PRINT"
action="action_hr_payroll_employees_detail"
parent="menu_hr_payroll_reporting"

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_hr_payroll_employees_detail" model="ir.ui.view">
<field name="name">Salary Register</field>
<field name="model">hr.payroll.year.salary</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Year Salary">
<group col="4" colspan="4" width="600">
<field name="fiscalyear_id" select="1" colspan="2"/>
<newline/>
<field name="employee_ids" colspan="2"/>
<newline/>
<separator string="Salary Deposit Date Option?" colspan="2"/>
<newline/>
<field name="salary_on"/>
<newline/>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
type="object" icon="gtk-print" />
</group>
</form>
</field>
</record>
<record id="action_hr_payroll_employees_detail" model="ir.actions.act_window">
<field name="name">Salary Register</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">hr.payroll.year.salary</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem id="menu_wizard_print_year_salary1"
icon="STOCK_PRINT"
action="action_hr_payroll_employees_detail"
parent="menu_hr_payroll_reporting"
name="Salary Register"
/>
</data>
</openerp>