OptionalProductsModal have this function willstart , i need to add some things to it
when i use include and call the function it also calls the base function willstart , but i want it to only call my function written in custom file , But also want super statement because the parent super of original method needs to be called (for Dialog and mixins )
Any workaround to only bypass one level of super ???? or to override the whole thing !!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
1926
Views
Hi,
Try like below code
/** @odoo-module */
import { OptionalProductsModal } from "@sale_product_configurator/js/product_configurator_modal";
OptionalProductsModal.prototype.willStart = function (){
// Your code
return this._super.apply(this, arguments)
}
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Aug 23
|
2439 | ||
Override JS mail
Solved
|
|
3
Jul 21
|
4797 | |
|
1
Aug 19
|
2677 | ||
|
2
May 19
|
4845 | ||
|
2
Apr 19
|
2995 |
Any Ideas on this ??