From fe19f45393bd7084914be71e017d2971c8f02f6c Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Fri, 16 Mar 2018 16:40:45 +0100 Subject: [PATCH] [IMP] hr_payroll: translate hr.salary.rule(.category) Closes #21469 --- addons/hr_payroll/i18n/hr_payroll.pot | 80 ++++++++++++++++++++-- addons/hr_payroll/models/hr_salary_rule.py | 4 +- 2 files changed, 78 insertions(+), 6 deletions(-) diff --git a/addons/hr_payroll/i18n/hr_payroll.pot b/addons/hr_payroll/i18n/hr_payroll.pot index 1bf6fcca06a..3cc581d0c34 100644 --- a/addons/hr_payroll/i18n/hr_payroll.pot +++ b/addons/hr_payroll/i18n/hr_payroll.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-11-30 13:11+0000\n" -"PO-Revision-Date: 2017-11-30 13:11+0000\n" +"POT-Creation-Date: 2018-03-16 15:45+0000\n" +"PO-Revision-Date: 2018-03-16 15:45+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -151,6 +151,11 @@ msgstr "" msgid "All Children Rules" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule.category,name:hr_payroll.ALW +msgid "Allowance" +msgstr "" + #. module: hr_payroll #: selection:hr.payslip.line,condition_select:0 #: selection:hr.salary.rule,condition_select:0 @@ -190,6 +195,16 @@ msgstr "" msgid "Applied this rule for calculation if condition is true. You can specify condition like basic > 1000." msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule.category,name:hr_payroll.BASIC +msgid "Basic" +msgstr "" + +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_rule_basic +msgid "Basic Salary" +msgstr "" + #. module: hr_payroll #: model:ir.model.fields,field_description:hr_payroll.field_res_config_settings_module_l10n_be_hr_payroll msgid "Belgium Payroll" @@ -307,6 +322,7 @@ msgid "Company" msgstr "" #. module: hr_payroll +#: model:hr.salary.rule.category,name:hr_payroll.COMP #: model:ir.ui.view,arch_db:hr_payroll.hr_salary_rule_form msgid "Company Contribution" msgstr "" @@ -382,6 +398,16 @@ msgstr "" msgid "Contribution Registers" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_convanceallowance1 +msgid "Conveyance Allowance" +msgstr "" + +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_ca_gravie +msgid "Conveyance Allowance For Gravie" +msgstr "" + #. module: hr_payroll #: model:ir.model.fields,field_description:hr_payroll.field_hr_contract_advantage_template_create_uid #: model:ir.model.fields,field_description:hr_payroll.field_hr_contribution_register_create_uid @@ -436,6 +462,11 @@ msgstr "" msgid "Date To" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule.category,name:hr_payroll.DED +msgid "Deduction" +msgstr "" + #. module: hr_payroll #: model:ir.model.fields,field_description:hr_payroll.field_hr_contract_advantage_template_default_value msgid "Default value for this advantage" @@ -626,6 +657,17 @@ msgstr "" msgid "Generate payslips for all selected employees" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_sales_commission +msgid "Get 1% of sales" +msgstr "" + +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_rule_taxable +#: model:hr.salary.rule.category,name:hr_payroll.GROSS +msgid "Gross" +msgstr "" + #. module: hr_payroll #: model:ir.ui.view,arch_db:hr_payroll.view_hr_payslip_filter #: model:ir.ui.view,arch_db:hr_payroll.view_hr_payslip_line_filter @@ -633,6 +675,11 @@ msgstr "" msgid "Group By" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_houserentallowance1 +msgid "House Rent Allowance" +msgstr "" + #. module: hr_payroll #: model:ir.model.fields,field_description:hr_payroll.field_hr_contract_advantage_template_id #: model:ir.model.fields,field_description:hr_payroll.field_hr_contribution_register_id @@ -790,6 +837,11 @@ msgstr "" msgid "Maximum Range" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_meal_voucher +msgid "Meal Voucher" +msgstr "" + #. module: hr_payroll #: model:ir.model.fields,field_description:hr_payroll.field_hr_payslip_line_condition_range_min #: model:ir.model.fields,field_description:hr_payroll.field_hr_salary_rule_condition_range_min @@ -821,7 +873,17 @@ msgid "Name" msgstr "" #. module: hr_payroll -#: code:addons/hr_payroll/models/hr_payslip.py:197 +#: model:hr.salary.rule.category,name:hr_payroll.NET +msgid "Net" +msgstr "" + +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_rule_net +msgid "Net Salary" +msgstr "" + +#. module: hr_payroll +#: code:addons/hr_payroll/models/hr_payslip.py:199 #, python-format msgid "Normal Working Days paid at 100%" msgstr "" @@ -953,8 +1015,8 @@ msgid "Payslip 'Date From' must be before 'Date To'." msgstr "" #. module: hr_payroll -#: model:ir.model.fields,field_description:hr_payroll.field_hr_payslip_payslip_run_id #: model:ir.model,name:hr_payroll.model_hr_payslip_run +#: model:ir.model.fields,field_description:hr_payroll.field_hr_payslip_payslip_run_id #: model:ir.ui.view,arch_db:hr_payroll.hr_payslip_run_filter msgid "Payslip Batches" msgstr "" @@ -1062,6 +1124,16 @@ msgstr "" msgid "Print" msgstr "" +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_professionaltax1 +msgid "Professional Tax" +msgstr "" + +#. module: hr_payroll +#: model:hr.salary.rule,name:hr_payroll.hr_salary_rule_providentfund1 +msgid "Provident Fund" +msgstr "" + #. module: hr_payroll #: selection:hr.payslip.line,amount_select:0 #: selection:hr.salary.rule,amount_select:0 diff --git a/addons/hr_payroll/models/hr_salary_rule.py b/addons/hr_payroll/models/hr_salary_rule.py index 5d6c49a0bf7..af9d6c342a5 100644 --- a/addons/hr_payroll/models/hr_salary_rule.py +++ b/addons/hr_payroll/models/hr_salary_rule.py @@ -76,7 +76,7 @@ class HrSalaryRuleCategory(models.Model): _name = 'hr.salary.rule.category' _description = 'Salary Rule Category' - name = fields.Char(required=True) + name = fields.Char(required=True, translate=True) code = fields.Char(required=True) parent_id = fields.Many2one('hr.salary.rule.category', string='Parent', help="Linking a salary category to its parent is used only for the reporting purpose.") @@ -89,7 +89,7 @@ class HrSalaryRuleCategory(models.Model): class HrSalaryRule(models.Model): _name = 'hr.salary.rule' - name = fields.Char(required=True) + name = fields.Char(required=True, translate=True) code = fields.Char(required=True, help="The code of salary rules can be used as reference in computation of other rules. " "In that case, it is case sensitive.")