Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I just want to override completely the create method of pos_session class in my custom module.
But because the original create method use return super(), I don't manage it. My new create method always return and use the old one because of the super.
I don't want to use the original create method anymore.
Here is a part of my override code :
_inherit = 'pos.session'
def create(self, cr, uid, values, context=None):
res = super(pos_session, self).create(cr, uid, values, context=context)
Thanks to help
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/2/16, 8:17 PM|
|Seen: 800 times|
|Last updated: 2/2/16, 8:44 PM|