commit
708a0508a0
|
|
@ -371,7 +371,7 @@ class PurchaseRequestLine(models.Model):
|
|||
|
||||
account_id = fields.Many2one(related='request_id.department_id.analytic_account_id', copy=False)
|
||||
request_id = fields.Many2one(comodel_name='purchase.request', string='Request Ref.')
|
||||
product_id = fields.Many2one(comodel_name='product.product', string='Item')
|
||||
product_id = fields.Many2one(comodel_name='product.product', string='Item', domain="[('purchase_ok', '=', True) | ('asset_ok', '=', True)]")
|
||||
description = fields.Char("Description")
|
||||
qty = fields.Integer(string='Qty')
|
||||
uom_id = fields.Many2one('uom.uom',
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
<field name="line_ids" attrs="{'readonly':[('state' , '!=' , 'draft')]}">
|
||||
<tree editable="bottom">
|
||||
<field name="product_id"
|
||||
domain="[('purchase_ok', '=', True)]"
|
||||
domain="[('purchase_ok', '=', True) | ('asset_ok', '=', True)]"
|
||||
options="{'no_create' : True , 'no_edit' : True ,'no_open' : True}"
|
||||
optional="show"
|
||||
required="1"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue