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

Hello!

How i can call the action of invoice into my module in menuitem?

Thanks!

อวตาร
ละทิ้ง

Try to be more specific in your question so it is easier for us to answer!

Do you want to open an Invoice action from your modules menuitem?

ผู้เขียน

Waleed Mohsen gives me the right answer,you can check it!

thanks.

HI Karim, I gave you the way to do it by yourself so you can check it by yourself and the code is open so you can get it easily.

ผู้เขียน คำตอบที่ดีที่สุด

Thank you!


And how about the commandes and bon de livraison?

อวตาร
ละทิ้ง

Hi Karim, You can get the external id of the action for any menu you want by activate developer mode and click on the menu then from debug icon on the right side, choose Edit Action and you will see the the external ID:

https://ibb.co/P192pQK

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

Hi,

You will use the external ID of the required action and set it in your new menu. 

The below is a menu in your custom module to call Action of customer invoice. 

<menuitem id="menu_customer_invoice"
parent="id for parent menu"
          action="account.action_invoice_tree1"
sequence="50"/>

The below is a menu in your custom module to call Action of vendor Bills. 

<menuitem id="menu_vendor_bill"
parent="id for parent menu"
          action="account.action_invoice_tree2"
sequence="60"/>


Thanks


อวตาร
ละทิ้ง

Hello Bro,

If You don't mind whatsApp me with this number +9 6 7 7 1 6 5 7 1 6 3 6

Thanks

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17307
Error: Couldn't load module web แก้ไขแล้ว
3
พ.ย. 24
24908
How I get the current ID of a record ? แก้ไขแล้ว
1
เม.ย. 23
6062
2
ธ.ค. 22
6789
1
พ.ย. 22
3975