Skip to content
Snippets Groups Projects
  • Kinjal Mehta's avatar
    026be48c
    [FIX] purchase: "product_type" related field on po line · 026be48c
    Kinjal Mehta authored
    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
    026be48c
    History
    [FIX] purchase: "product_type" related field on po line
    Kinjal Mehta authored
    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