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

In the account_invoice_view.xml file, the button validate is associated to invoice_open, but I can not find this method on account_invoice.py,

By doing this I want to know how the movement on account.move object is generated. any suggestions ?

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

invoice_open is a signal to invoice workflow, see code in account_invoice_workflow.xml. Workflow call methods:

action_date_assign()
action_move_create()
action_number()
invoice_validate()

at this moment

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Yes, so there is three kinds of button, object, action, and workflow. The default one is Workflow isn't it ?  Thanks.

อวตาร
ละทิ้ง