oca-purchase/odoo-bringout-oca-purchase-workflow-purchase_advance_payment/purchase_advance_payment/models/payment.py
Ernad Husremovic 7378b233e9 Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 18:00:40 +02:00

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)]},
)