purchase stock

This commit is contained in:
ivan deng
2019-01-04 01:54:56 +08:00
parent 9bcf4a9cc0
commit 2f0ba8e4d3
14 changed files with 223 additions and 0 deletions

View 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,
)