Discussion:
[Erp5-dev] Problem with expanding AR after upgrade
Łukasz Nowak
2007-06-12 11:26:15 UTC
Permalink
Hello,

I'm trying to upgrade to HEAD revision of Nexedi sources.

After successful upgrade of all products, installation of
erp5_mysql_innodb_catalog, upgrade of erp5_core and erp5_xhtml_style I
run script:
for applied_rule in [q.getObject() for q in
context.portal_simulation.searchFolder(limit=9999999999,portal_type='Applied Rule')]:
print '%s sent to activities'%(applied_rule.getRelativeUrl(),)
applied_rule.activate().expand(force=1)
return printed

To reexpand all applied rules. Such script run cleanly on old version,
but after upgrade I've got on some ARs such problem:

Failed Processing Activity

Document: /erp5/portal_simulation/90
Method: expand
Exception: exceptions.NotImplementedError Can not create a compensation
movement for portal_simulation/90/1/1/1

Well. I tried to upgrade erp5_base, erp5_trade, erp5_pdm and then
erp5_accounting but I'm still not able to reexpand rules. I'm trying to
investigate the problem, but at first glance (before upgrade of
erp5_accounting) portal_rules/default_invoice_transaction_rule looks
same - predicates are in unchanged order, they are still related to same
simulations, et ce tera.

I read email from Romain[1] but I think I shall not change anything,
before be sure, that system after upgrade is stable? Am I right?

Did something with Invoice Transaction Rule changed in core, what makes
some of mine SMs unexpandable? My knowledge about Rules is still to low
to be more precise.

Thanks for any tips,
Luke

[1]http://thread.gmane.org/gmane.comp.python.zope.erp5.general/699/focus=700
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
Łukasz Nowak
2007-06-21 10:17:54 UTC
Permalink
Hello,

On 2007-06-12, 13:26:15
Post by Łukasz Nowak
Hello,
I'm trying to upgrade to HEAD revision of Nexedi sources.
(...)

Well. Is it possible that upgrade will made my system unusable? That
how may I workaround this problem? Shall I freeze all old simulations,
cancel documents and reenter new one with old data? Deleting
simulations and re-expanding them is acceptable?

I'd like to got any, *any*, tip - that situation really stops me from
upgrading our system (and also from contributing to some erp5_*
business templates).

Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
Romain Courteaud
2007-07-09 12:53:19 UTC
Permalink
Post by Łukasz Nowak
Hello,
Hello Luke,
Post by Łukasz Nowak
I'm trying to upgrade to HEAD revision of Nexedi sources.
After successful upgrade of all products, installation of
erp5_mysql_innodb_catalog, upgrade of erp5_core and erp5_xhtml_style I
for applied_rule in [q.getObject() for q in
print '%s sent to activities'%(applied_rule.getRelativeUrl(),)
applied_rule.activate().expand(force=1)
return printed
To reexpand all applied rules. Such script run cleanly on old version,
Failed Processing Activity
Document: /erp5/portal_simulation/90
Method: expand
Exception: exceptions.NotImplementedError Can not create a compensation
movement for portal_simulation/90/1/1/1
Did something with Invoice Transaction Rule changed in core, what makes
some of mine SMs unexpandable? My knowledge about Rules is still to low
to be more precise.
Can you precise which ERP5 revision you're currently using.
Same for the bt5 (trade and accounting).

In order to understand your problem, one good starting point is to read
this:
http://erp5.org/Discussion/SimulationRules

Can you send the Base_viewDict form for some objects:
portal_simulation/90/1/1/1
portal_simulation/90/1/
Invoice Line related to portal_simulation/90/1/1/1
All Simulation movement in portal_simulation/90/1/1

As usual, the first step to fix this is to add an unit test.

Regards,
Romain

Loading...