I am writting a custom module which extends functionality to sale.order.line model, specifically, it will add a field.
Which dependence package should be included in __openerp__.py and how should I look for it in the source code?
Thanks,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am writting a custom module which extends functionality to sale.order.line model, specifically, it will add a field.
Which dependence package should be included in __openerp__.py and how should I look for it in the source code?
Thanks,
Basically you need to define the module where the sale.order.line model resides and that would be sale module. You need to add sale module as dependencies.
You need to add depends when Odoo modules which must be loaded before this one, either because this module uses features they create or because it alters resources they define.
When a module is installed, all of its dependencies are installed before it. Likewise dependencies are loaded before a module is loaded. For more manifest file
Which is the "right" way to reach the conclusion that sale.order.line model is in 'sale' module? Do you have to 'grep' for the class sale.order.line?
You need to aware of the module name by yourself when developing new modules. There is no way around. Also grep will not help much since the same model can be inherited multiple times.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
sty 24
|
1816 | ||
Module Install Error!
Rozwiązane
|
|
1
gru 22
|
6214 | |
|
1
maj 21
|
3954 | ||
Delete module from module list
Rozwiązane
|
|
2
cze 20
|
41696 | |
|
4
paź 19
|
9718 |