Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Trouble with updating account.invoice workflow

By
Leana
on 4/22/14, 4:13 PM 768 views

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 ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/22/14, 4:13 PM
Seen: 768 times
Last updated: 3/16/15, 8:10 AM