تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3729 أدوات العرض

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 ?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 24
10120
2
يوليو 17
5419
0
سبتمبر 17
3825
1
أبريل 16
5156
0
أغسطس 15
4043