In my custom module, I'm rewriting the create_from_ui method of pos.order class.
I would want to reuse the same variables already defined in the original create_from_ui method.
Here is my code in my custom module :
def create_from_ui(self, cr, uid, orders, context=None):
_logger.error("create_from_ui NEW BEGIN")
res = super(pos_order, self).create_from_ui(cr, uid, orders, context=context)
#I want to use SOME VARIABLES OF THE ORIGINAL create_from_ui METHOD HERE...
_logger.error("create_from_ui END BEGIN")
Do you know how to manage it?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/9/16, 12:10 PM|
|Seen: 419 times|
|Last updated: 2/9/16, 9:35 PM|