Skip to Content
Menu
This question has been flagged
5 Replies
3152 Views

Hello,

I have 2 questions, about two connected modules in ODOO.

1- How to choose which module depend on other (i.e : in depands=['base',....)

2- Which module i should install first to avoid problems and bugs ... etc


Thank you.

Avatar
Discard

Actually it will generate error , as it depends each other.

Author

Which kind of erreor ?

zak, first you just install it, then you will get some idea, what will happen etc

Thank you Nilmar,

But if also module A access to some XML records of "B" or inherit models of "B" ? what i should do in this case?

Best Answer

Hi Zakaria,
1) You can choose your dependency modules based on your custom module's inheritance/access records. If you have two modules say "A" and "B". Then you need to give  depends=['A']   w  in your manifest of "B" when ..
+ B is accessing some xml records of "A".
+ B is  pooling models that constructed by "A".
+ B is inheriting models that constructed by "A".

2) In this case, you can directly install "B" because you gave "A" in your dependency list. So "A" will install first when you press "B"'s install button. However, I prefer you to install "A" first.   

Note: Don't give depends=['A'] in B's manifest, and depends=['B'] in A's manifest. It will raise depends looping error. 

Avatar
Discard