Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Trying to extend pos_order with a function create, but failing to create order id

By
Matej
on 4/2/16, 10:06 AM 275 views

Hello guys I've extended pos_order. And made my own version of create.

The original create calls 

return super(pos_order, self).create(cr, uid, values, context=context) which returns order id.

How could i call this exact function from my own module? If i call return super(....) it will call the original pos_order.create which has some undesired logic


best regards

Matej

0
Matej
On 4/20/16, 2:20 AM

http://stackoverflow.com/questions/36315689/odoo-8-method-resolution-order#comment60329596_36316491

has the answer

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/2/16, 10:06 AM
Seen: 275 times
Last updated: 4/20/16, 2:20 AM