mirror of
https://github.com/bringout/oca-purchase.git
synced 2026-04-22 04:02:09 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
370 B
Python
16 lines
370 B
Python
# Copyright (C) 2021 ForgeFlow S.L.
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountPayment(models.Model):
|
|
|
|
_inherit = "account.payment"
|
|
|
|
purchase_id = fields.Many2one(
|
|
"purchase.order",
|
|
"Purchase",
|
|
readonly=True,
|
|
states={"draft": [("readonly", False)]},
|
|
)
|