add purchase_price_review_status

This commit is contained in:
Luis 2026-04-02 12:43:36 +02:00
parent d9a0eeb878
commit f586c99df9
10 changed files with 260 additions and 0 deletions

View file

@ -0,0 +1,2 @@
from . import purchase_order
from . import stock_picking

View file

@ -0,0 +1,11 @@
from odoo import fields, models
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
prices_reviewed = fields.Boolean(
string="Purchase Prices Reviewed",
default=False,
help="Indicates whether purchase prices were reviewed against the receipt.",
)

View file

@ -0,0 +1,12 @@
from odoo import fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
purchase_prices_reviewed = fields.Boolean(
related="purchase_id.prices_reviewed",
string="Purchase Prices Reviewed",
readonly=True,
store=False,
)