Such as:
<button name="order_confirm" states="draft" string="Confirm Order" icon="gtk-apply"/>
I can't find a method named 'order_confirm' in its .py.
I'm curious how this button use its method......
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Such as:
<button name="order_confirm" states="draft" string="Confirm Order" icon="gtk-apply"/>
I can't find a method named 'order_confirm' in its .py.
I'm curious how this button use its method......
Buttons can have 3 different types specified by the attribute type:
workflow: The current workflow is triggered with the signal which is specified by the name attribute. This is the default behaviour.object: The name attribute specifies the method of the object which will be executed.action: The name attribute specifies the ID of the action (act_window, server, ..) which will be executed.Since the type is not defined in your example, the button is of type workflow and triggers the sale.order workflow. The signal order_confirm is defined in file sale/sale_workflow.xml:
Thank u so so much~~
Hi Andreas, Then means than it's not possible to do progress a workflow when the next step achieve by a button isn't workflow type? Typically with the differents states of the "stock.picking" model. When my picking is "available" and I want to set state at "done" the button is "VALIDATE" (methode : do_new_transfer). So with the API and the exec_workflow isn't possible to achieve that?
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
Is there any object list/manual/method?
แก้ไขแล้ว
|
|
1
มี.ค. 15
|
6267 | |
|
|
0
ส.ค. 25
|
566 | ||
|
|
1
พ.ย. 24
|
1840 | ||
|
|
1
มี.ค. 21
|
5240 | ||
|
|
2
ก.ค. 17
|
5952 |