diff options
| author | Kinjal Mehta <kme@odoo.com> | 2018-03-22 20:18:24 +0530 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2018-04-16 16:00:46 +0200 |
| commit | 026be48ccbbb15daefda070697b135f089f49564 (patch) | |
| tree | 565b1b0042917be1b172d1c09236e3381dd7172e /addons/base_import | |
| parent | cc583a4ab22903a5058dc8d0c7c0e428ad7caa62 (diff) | |
[FIX] purchase: "product_type" related field on po line
Issue:
Currently, since "product_type" is not set readonly, it is triggering write() of product.product
model when saving a PO having PO line with product_id. And it is failing by throwing access error
for users belonging to purchase "User" group users due to the fact that write() is permissible to
purchase "Manager" group users only.
Solution:
Made the "product_type" related field readonly since it is used in purchase order views domain
with lone purpose to set "received_qty" field non-editable when order line product is of type
stockable/consumable.
task id 1818787
Diffstat (limited to 'addons/base_import')
0 files changed, 0 insertions, 0 deletions
