[jira] [Commented] (OFBIZ-5389) Error adding newly created virtual product to purchase order

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5389) Error adding newly created virtual product to purchase order

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-5389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814881#comment-13814881 ]

Christian Carlow commented on OFBIZ-5389:
-----------------------------------------

I generalized the description of this issue to describe all virtual products not being able to be added to the order after creation.

I've discovered that after updating a virtual product, it is able to be added to the purchase order because of the loadType2ProductInProductDimension eca action:
    <eca service="updateProduct" event="global-commit-post-run">
        <action service="loadType2ProductInProductDimension" mode="async"/>
    </eca>

Something contained in that logic updates the product cache so that it is found as a virtual product and handled accordingly.  What ever updates the product cache should run for the createProduct event as well:
    <eca service="createProduct" event="global-commit-post-run">
        <action service="loadType1ProductInProductDimension" mode="async"/>
    </eca>

If the product cache updated when products are created then this and this related issue patch would probably be irrelevant:
OFBIZ-5386


> Error adding newly created virtual product to purchase order
> ------------------------------------------------------------
>
>                 Key: OFBIZ-5389
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5389
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk
>            Reporter: Christian Carlow
>         Attachments: ProductServices.java.diff
>
>
> A "Problems getting the product entity" error occurs when adding a newly created "Variant Tree Generation" virtual product is added to a purchase order.  
> The feature selections are not rendered because the variant products list is created from cache in which the newly created product hasn't yet been added.
> Cache searches seem somewhat ubiquitous throughout the purchase orders.  Does anyone know if this was intentional for some reason which would require the user to clear cache before the new products register for use?



--
This message was sent by Atlassian JIRA
(v6.1#6144)