This commit is contained in:
mohammed-alkhazrji 2025-11-09 11:46:36 +03:00
parent f3b785bf37
commit 49093d9694
2 changed files with 2 additions and 2 deletions

View File

@ -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', domain="[('purchase_ok', '=', True) | ('asset_ok', '=', True)]")
product_id = fields.Many2one(comodel_name='product.product', string='Item')
description = fields.Char("Description")
qty = fields.Integer(string='Qty')
uom_id = fields.Many2one('uom.uom',

View File

@ -95,7 +95,7 @@
<field name="line_ids" attrs="{'readonly':[('state' , '!=' , 'draft')]}">
<tree editable="bottom">
<field name="product_id"
domain="[('purchase_ok', '=', True) | ('asset_ok', '=', True)]"
domain="['|', ('purchase_ok', '=', True), ('asset_ok', '=', True)]"
options="{'no_create' : True , 'no_edit' : True ,'no_open' : True}"
optional="show"
required="1"/>