mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
purchase stock
This commit is contained in:
16
app_purchase_stock_available/models/purchase.py
Normal file
16
app_purchase_stock_available/models/purchase.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
class PurchaseOrderLine(models.Model):
|
||||
_inherit = 'purchase.order.line'
|
||||
|
||||
virtual_available = fields.Float(
|
||||
related='product_id.virtual_available',
|
||||
readonly=True,
|
||||
)
|
||||
qty_available = fields.Float(
|
||||
related='product_id.qty_available',
|
||||
readonly=True,
|
||||
)
|
||||
Reference in New Issue
Block a user