Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object method call seems to have trouble reloading relations #32

Closed
jgrandguillaume opened this issue Mar 8, 2010 · 1 comment
Closed

Comments

@jgrandguillaume
Copy link

Hi,

I think there is a problem on calling objects methods. See commit 97 in OERPScenario, file "sale_order.rb", line 126.

Seems related to a quite complex workflow :( !

From a created SaleOrder (with one line, and manual shipping and invoice) in @saleorder do

@saleorder.wkf_action('order_confirm')
@saleorder.wkf_action('manual_invoice')
@Invoice=@saleorder.invoice_ids[0]
@invoice.wkf_action('invoice_open')
@invoice.wkf_action('invoice_cancel')
AccountInvoice.action_cancel_draft([@invoice.id])
puts @saleorder.state

=> At this point, the SO has a 'invoice_except' state into the DB, but a 'confirmed' state for Ooor...

Even doing that:

@saleorder=SaleOrderLine.find(@saleorder.id)
puts @saleorder.state

At least, if too complicated to fix the whole things, is it possible to avoid that by "finding" again the needed object ?

Thanks in advance,

Regards,

Joël

@jgrandguillaume
Copy link
Author

Ok, this is an invalid bug. Sorry for the inconvenient.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant