Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
5
account_invoice_refund_reason/models/__init__.py
Normal file
5
account_invoice_refund_reason/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from . import account_move_refund_reason
|
||||
from . import account_move
|
||||
10
account_invoice_refund_reason/models/account_move.py
Normal file
10
account_invoice_refund_reason/models/account_move.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
reason_id = fields.Many2one("account.move.refund.reason", string="Refund Reason")
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountMoveRefundReason(models.Model):
|
||||
_name = "account.move.refund.reason"
|
||||
_description = "Account Move Refund Reason"
|
||||
|
||||
name = fields.Char(required=True, translate=True)
|
||||
active = fields.Boolean(default=True)
|
||||
description = fields.Char()
|
||||
Reference in New Issue
Block a user