[Erp5-users] 2nd issue with the MRP Scenario
Brice Leroy
bleroy at fulham.com
Wed Aug 5 20:27:12 CEST 2009
Ok, I think I found the issue, The rule default_production_order_rule
did exist in fact but was in draft state. After validating it
( http://192.168.1.144/erp5/portal_rules/default_production_order_rule/Rule_view) , I went to the portal activity and invoke the blocked rules... it expands in many other new activities and ends up with no more activity in queue !!! I feel like a million bucks :) This state change should be added to your tutorial.
On Wed, 2009-08-05 at 11:15 -0700, Brice Leroy wrote:
> After reading the logs (I should maybe started with that...) I
> discover that something was missing:
>
> 2009-08-05T11:13:41 WARNING ActivityTool Could not call method
> updateAppliedRule on object ('', 'erp5', 'production_order_module',
> '1'). Activity created at:
> None
> Traceback (most recent call last):
> File "/var/lib/erp5/Products/CMFActivity/ActivityTool.py", line 294,
> in __call__
> result = method(*self.args, **self.kw)
> File "/var/lib/erp5/Products/ERP5/Document/Order.py", line 150, in
> updateAppliedRule
> rule_reference=rule_reference, **kw)
> File "/var/lib/erp5/Products/ERP5/Document/Delivery.py", line 683,
> in updateAppliedRule
> return updateAppliedRule(*args, **kw)
> File "/var/lib/erp5/Products/ERP5Type/UnrestrictedMethod.py", line
> 97, in __call__
> return self._m(*args, **kw)
> File "/var/lib/erp5/Products/ERP5/Document/Delivery.py", line 709,
> in _updateAppliedRule
> raise NotFound('No such rule as %r is found' % (rule_reference,))
> NotFound: No such rule as 'default_production_order_rule' is found
>
> Is there any guide on how to create this object ?
>
> On Wed, 2009-08-05 at 10:49 -0700, Brice Leroy wrote:
> > Hello,
> > I'm following your tutorial for MRP and I got stuck at the same action
> > for the second time - I reinstall my erp5 site 2 times to make sure it
> > wasn't my mistake - but when I set my Production Order status to
> > "Ordered", an activity stays in the queue forever:
> >
> >
> > Uid: "649 (dict)"
> > Object: "/erp5/production_order_module/1"
> > Method Id: "updateAppliedRule"
> > - Activity Kw: "'tag':
> > '/erp5/production_order_module/1_firstUpdateAppliedRule'"
> > - Arguments: ""
> > - Named Parameters: "'rule_reference': 'default_production_order_rule',
> > 'activate_kw': {'priority': 3,
> > 'tag':'/erp5/production_order_module/1_firstUpdateAppliedRule'}"
> > - Processing Node: "-2"
> > Priority Processing: "6"
> > Call traceback: ""
> >
> > Do you have any idea why this rule is not working ? Is there any new
> > necessary field not indicated on the wiki ?
> >
> --
> Brice Leroy | IT Department | Fulham Co. Inc.
>
> 12705 S. Van Ness Ave.
> Hawthorne, CA 90250
>
> phone: (323) 779 2980 x1208
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-users
--
Brice Leroy | IT Department | Fulham Co. Inc.
12705 S. Van Ness Ave.
Hawthorne, CA 90250
phone: (323) 779 2980 x1208
More information about the Erp5-users
mailing list