Jacek Medrzycki
2007-10-18 09:37:19 UTC
Hi.
When I call an ERP5 object, I get the html representing the rendered
view of the object. The code is similar to the following:
obj = portal.restrictedTraverse(object_path)
html_repr = obj()
and here html_repr contains html code.
It works for almost all Portal Types, except for Payment Transaction, in
which case html_repr is like following:
http://localhost/erp5/accounting_module/9/view?portal_status_message=Accounting%20Transaction%20Line%20added.&selection_index:int=0&selection_name=
This looks like a kind of redirect. The "portal_status_message" part
sugggests that Transaction Line was created and, indeed, it was! But
why? Shouldn't a object_view action be called when an object is called?
Why the Transaction Line is beeing created? No object_view action
creates Transaction Line, as I see. How can I render programatically the
Payment Transaction?
TIA
Jacek
When I call an ERP5 object, I get the html representing the rendered
view of the object. The code is similar to the following:
obj = portal.restrictedTraverse(object_path)
html_repr = obj()
and here html_repr contains html code.
It works for almost all Portal Types, except for Payment Transaction, in
which case html_repr is like following:
http://localhost/erp5/accounting_module/9/view?portal_status_message=Accounting%20Transaction%20Line%20added.&selection_index:int=0&selection_name=
This looks like a kind of redirect. The "portal_status_message" part
sugggests that Transaction Line was created and, indeed, it was! But
why? Shouldn't a object_view action be called when an object is called?
Why the Transaction Line is beeing created? No object_view action
creates Transaction Line, as I see. How can I render programatically the
Payment Transaction?
TIA
Jacek