Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
29
account_receipt_journal/models/account_chart_template.py
Normal file
29
account_receipt_journal/models/account_chart_template.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user