Commit 7a25b71c authored by Agustín Maio's avatar Agustín Maio
Browse files

[ADD] Fields

parent 63695ea7
No preview for this file type
......@@ -6,22 +6,27 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-09 19:24+0000\n"
"PO-Revision-Date: 2021-04-09 16:27-0300\n"
"POT-Creation-Date: 2022-03-07 17:08+0000\n"
"PO-Revision-Date: 2022-03-07 14:11-0300\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: es_AR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es_AR\n"
"X-Generator: Poedit 2.4.2\n"
"X-Generator: Poedit 3.0.1\n"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_line_filter
msgid "Amount Type"
msgstr "Tipo de importe"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__analytic_account_id
msgid "Analytic Account"
msgstr "Centro de costo"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_form
msgid "Antique"
......@@ -62,6 +67,11 @@ msgstr "Código"
msgid "Companies"
msgstr "Compañías"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__contract_type_id
msgid "Contract Type"
msgstr "Categoría"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_line_filter
msgid "Contribution Register"
......@@ -69,12 +79,14 @@ msgstr "Registro de contribución"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__create_uid
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__create_uid
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__create_uid
msgid "Created by"
msgstr "Creado por"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__create_date
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__create_date
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__create_date
msgid "Created on"
msgstr "Creado el"
......@@ -84,8 +96,14 @@ msgstr "Creado el"
msgid "Date"
msgstr "Fecha"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__discount
msgid "Discount"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__display_name
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__display_name
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__display_name
msgid "Display Name"
msgstr "Nombre mostrado"
......@@ -111,6 +129,11 @@ msgstr "Contrato de empleado"
msgid "Employee Payslips Line"
msgstr "Informes de novedades y pre nómina"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_form
msgid "Employee data"
msgstr "Datos del Empleado"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_line_filter
msgid "Employees"
......@@ -131,6 +154,11 @@ msgstr "Agrupar por"
msgid "HR Payroll Base Config"
msgstr "RRHH Configuración Básica de Nóminas"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_payroll_structure_type
msgid "HR Payroll Structure type"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.actions.act_window,name:hr_payroll_base_config.action_view_hr_union_membership
msgid "HR Union Membership"
......@@ -138,24 +166,39 @@ msgstr "Sindicato"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__id
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__id
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__id
msgid "ID"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip_input__extra_concept_import_id
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip_worked_days__extra_concept_import_id
msgid "Import"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__job_id
msgid "Job"
msgstr "Cargo"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config____last_update
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type____last_update
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership____last_update
msgid "Last Modified on"
msgstr "Última modificación en"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__write_uid
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__write_uid
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__write_date
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__write_date
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__write_date
msgid "Last Updated on"
msgstr "Última actualización el"
......@@ -170,6 +213,23 @@ msgstr "Liquidación"
msgid "Maximum Mopre"
msgstr "Tope Mopre Máximo"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_employee
msgid "Medical Patient"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__membership_id
msgid "Membership"
msgstr "Unión Sindical"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__minimum_category_value
#, fuzzy
#| msgid "Minimum Mopre"
msgid "Minimum Category Value"
msgstr "Tope Mopre Mínimo"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_base_config__min_mopre
msgid "Minimum Mopre"
......@@ -181,6 +241,7 @@ msgid "Months"
msgstr "Meses"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure_type__name
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_union_membership__name
msgid "Name"
msgstr "Nombre"
......@@ -211,6 +272,13 @@ msgstr "Nómina"
msgid "Payslip Batches"
msgstr "Procesamientos de nóminas"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_payslip_input
#, fuzzy
#| msgid "Payslip Line"
msgid "Payslip Input"
msgstr "Línea de nómina"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_payslip_line
msgid "Payslip Line"
......@@ -221,6 +289,13 @@ msgstr "Línea de nómina"
msgid "Payslip Lines"
msgstr "Líneas de nómina"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_payslip_worked_days
#, fuzzy
#| msgid "Payslip Lines"
msgid "Payslip Worked Days"
msgstr "Líneas de nómina"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_run_form_inherit_compute_all
msgid "Period"
......@@ -274,6 +349,7 @@ msgid "Salary Rule Category"
msgstr "Categoría de regla salarial"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_payroll_structure
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_line_tree
msgid "Salary Structure"
msgstr "Estructura salarial"
......@@ -285,9 +361,24 @@ msgstr "Buscar líneas de nómina"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip_run__struct_id
msgid "Struct"
#, fuzzy
#| msgid "Struct"
msgid "Structure"
msgstr "Estructura"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payroll_structure__struct_type_id
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__struct_type
#, fuzzy
#| msgid "Salary Structure"
msgid "Structure type"
msgstr "Estructura salarial"
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.payroll_struture_type_field
msgid "Tipo de estructura"
msgstr ""
#. module: hr_payroll_base_config
#: model_terms:ir.ui.view,arch_db:hr_payroll_base_config.view_hr_payslip_form
msgid "Total Payment"
......@@ -314,6 +405,16 @@ msgstr "Sindicato"
msgid "Union membership"
msgstr "Unión sindical"
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_employee__last_contract_id
msgid "Vigent contract"
msgstr ""
#. module: hr_payroll_base_config
#: model:ir.model.fields,field_description:hr_payroll_base_config.field_hr_payslip__wage
msgid "Wage"
msgstr "Salario"
#. module: hr_payroll_base_config
#: model:ir.model,name:hr_payroll_base_config.model_hr_union_membership
msgid "hr.union.membership"
......
......@@ -4,6 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
###############################################################################
from email.policy import default
import logging
# from openerp.addons.decimal_precision import decimal_precision as dp
# from openerp.exceptions import except_orm
......@@ -260,6 +261,30 @@ class HRPayslip(models.Model):
_inherit = 'hr.payslip'
struct_type = fields.Many2one(string='Structure type', related='struct_id.struct_type_id', store=True)
analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account')
contract_type_id = fields.Many2one('hr.contract.type', string='Contract Type')
job_id = fields.Many2one('hr.job', string='Job')
membership_id = fields.Many2one('hr.union.membership', string='Membership')
wage = fields.Float(string='Wage')
@api.onchange('contract_id')
def _onchange_contract_id_hr(self):
self.wage = self.contract_id.wage
self.membership_id = self.contract_id.membership_id.id
self.job_id = self.contract_id.job_id.id
self.contract_type_id = self.contract_id.type_id.id
self.analytic_account_id = self.contract_id.analytic_account_id.id
@api.model
def create(self, vals):
res = super(HRPayslip, self).create(vals)
for record in res:
record.wage = record.contract_id.wage
record.membership_id = record.contract_id.membership_id.id
record.job_id = record.contract_id.job_id.id
record.contract_type_id = record.contract_id.type_id.id
record.analytic_account_id = record.contract_id.analytic_account_id.id
return res
def _compute_antique_december(self):
for payslip in self:
......
......@@ -38,6 +38,19 @@
<field name="line_ids" position="attributes">
<attribute name="invisible">True</attribute>
</field>
<xpath expr="//notebook/page[last()]" position="after">
<page string="Employee data">
<group>
<group>
<field name="analytic_account_id" readonly="1"/>
<field name="contract_type_id" readonly="1"/>
<field name="job_id" readonly="1"/>
<field name="membership_id" readonly="1"/>
<field name="wage" readonly="1"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment