Files
Odoo-18.0-20251222/account_receipt_journal/models/account_chart_template.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

30 lines
923 B
Python

# Copyright 2025 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import models
from odoo.addons.account.models.chart_template import template
class AccountChartTemplate(models.AbstractModel):
_inherit = "account.chart.template"
@template(model="account.journal")
def _get_account_receipt_journal(self, template_code):
return {
"sale_receipts": {
"name": self.env._("Sale Receipts Journal"),
"code": self.env._("S-REC"),
"type": "sale",
"sequence": 99,
"receipts": True,
},
"purchase_receipts": {
"name": self.env._("Purchase Receipts Journal"),
"code": self.env._("P-REC"),
"type": "purchase",
"sequence": 99,
"receipts": True,
},
}