chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# -*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class HrPayslipInput(models.Model):
_name = 'hr.payslip.input'
_description = 'Payslip Input'
_order = 'payslip_id, sequence'
name = fields.Char(string="Description")
payslip_id = fields.Many2one('hr.payslip', string='Pay Slip', required=True, ondelete='cascade', index=True)
employee_id = fields.Many2one('hr.employee', related='payslip_id.employee_id')
date_from = fields.Date(related='payslip_id.date_from')
sequence = fields.Integer(required=True, index=True, default=10)
input_type_id = fields.Many2one('hr.payslip.input.type', string='Type', required=True, domain="[('id', 'in', _allowed_input_type_ids)]")
_allowed_input_type_ids = fields.Many2many('hr.payslip.input.type', related='payslip_id.struct_id.input_line_type_ids')
code = fields.Char(related='input_type_id.code', required=True, help="The code that can be used in the salary rules")
amount = fields.Float(
string="Amount",
digits='Payroll Rate',
help="It is used in computation. E.g. a rule for salesmen having 1%% commission of basic salary per product can defined in expression like: result = inputs['SALEURO'].amount * version.wage * 0.01.")
version_id = fields.Many2one(
related='payslip_id.version_id', string='Employee Record', required=True,
help="The version this input should be applied to")