mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-20 02:02:00 +02:00
34 lines
995 B
Python
34 lines
995 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HrSalaryRule(models.Model):
|
|
_inherit = "hr.salary.rule"
|
|
|
|
company_id = fields.Many2one(
|
|
"res.company",
|
|
string="Company",
|
|
required=True,
|
|
default=lambda self: self.env.company,
|
|
)
|
|
analytic_account_id = fields.Many2one(
|
|
"account.analytic.account", "Analytic Account"
|
|
)
|
|
account_tax_id = fields.Many2one("account.tax", "Tax")
|
|
account_debit = fields.Many2one(
|
|
"account.account",
|
|
"Debit Account",
|
|
domain=[("deprecated", "=", False)],
|
|
company_dependent=True,
|
|
)
|
|
account_credit = fields.Many2one(
|
|
"account.account",
|
|
"Credit Account",
|
|
domain=[("deprecated", "=", False)],
|
|
company_dependent=True,
|
|
)
|
|
|
|
tax_base_id = fields.Many2one("hr.salary.rule", "Base")
|
|
tax_line_ids = fields.One2many("hr.salary.rule", "tax_base_id", string="Tax lines")
|