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

I have updated my workflow (add a new object "saved").

here's the problem :

I must be able to cancel a "Saved" invoice. and since the button "invoice_cancel" already exists (code python ready and works : Indeed, a draft invoice can be cancelled), I just duplicate this button, made it from saved to cancel, and update the xml code to be able to click on cancel button in the "saved" state :

 <button name="invoice_cancel" states="draft,proforma2,saved" string="Cancel Invoice"  groups="base.group_no_one"/>

With the old states [draft for ex], the canceling can be done. With my new state "saved", I can't cancel the invoice. any clues ?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to change state on button click แก้ไขแล้ว
2
มี.ค. 24
10174
2
ก.ค. 17
5449
0
ก.ย. 17
3867
1
เม.ย. 16
5200
0
ส.ค. 15
4073