Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
10467 มุมมอง

Hello everyone ,

i created 2 module test1 and test2 , each one is installed individually , the problem is that in order to install test2 i should install test1 first , my question is : is there any possibility to gether the two module in one ??? ( or in another module directory test3 ...)

Please i doo neaaad heeelp

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Do you know you can make one module DEPEND on the other?

If you install test1 and test2 is not installed, it will be installed first.

See the tags you can use in __openerp__.py at https://doc.openerp.com/6.0/developer/2_4_module_development/module_descriptor/

อวตาร
ละทิ้ง
ผู้เขียน

AHhh okey thank you a looot , So i can create a new module test3 and Add : "depends" : ["test1", "test2"], ... Is that it ?

Yes, or in the __openerp__.py file for module test1, use "depends" : ["test2"] - then you don't need a third module.

ผู้เขียน

Oki , thank you :)

ผู้เขียน

when i tried this , i got the following error : Error

You try to install module 'test1' that depends on module 'test2'. But the latter module is not available in your system.

Then check that module test2 is available in the addons path - OpenERP can't find it.

ผู้เขียน

actually the module test2 is in the addons directory ... Do i have to make anyother changes a part from the depends on the Depands in __openerp__.py??

คำตอบที่ดีที่สุด

Hi,

Make 'Update Module List' first then try to install it.

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Yes you can. You can add the code of the one in the other. and then you have just to Custom the view définition

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
6
ก.ย. 24
52988
after insaling -how to get modules แก้ไขแล้ว
2
ก.ย. 23
2096
2
มิ.ย. 20
20589
Created module , new moduel แก้ไขแล้ว
5
เม.ย. 19
6077
1
เม.ย. 16
4286