mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-23 00:02:08 +02:00
Initial commit: OCA Payroll packages (5 packages)
This commit is contained in:
commit
d19274f581
407 changed files with 214057 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
# 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue