[Vtigercrm-developers] [VT 6.1] SalesOrders Workflow allows condition based on Product Line Item but does not Trigger

Marco Roello marco.roello at gmail.com
Tue Jul 8 21:19:32 GMT 2014


HI,

I'm re-posting this message, and trying to describe better this problem.

I'm trying to create a workflow of this type:

When a sales person creates a new SalesOrder (with multiple line items),
and the order has a Service Line Item of category Installation, I need to
create a new Todo for a technical person.

I've tried to add the salesorder workflow (Planned Every Times the Records
is Saved or when the Record is modified), added the condition When Service
Category is installation, and added the task Create Entity of type Todo.

The problem is that the workflow doesn't trigger.

Changing the condition using a SalesOrder field
(vtiger_sales_order_entity), the workflow triggers.

Changing the condition based on another SalesOrder related module (e.g.
email of Organization is xxxx at xxx.com
<http://lists.vtigercrm.com/cgi-bin/mailman/listinfo/vtigercrm-developers>),
the workflow triggers.

Exploring the code, seems that LineItems are not loaded in the Workflow Entity

The result is a different behaviour from what the user can do in the
frontend and how the workflow really works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140708/0cc47a1c/attachment-0001.html>


More information about the vtigercrm-developers mailing list