Odoo Aide

0

0
1 Réponse
1
Rajkumar Inde
24/06/2014 06:12

Hi,

Try below code in your customized module

In view.xml

<button name="action_cancel_yes" string="YES" type="object" class="oe_highlight"/>

<button name="action_cancel_no" string="NO" type="object" class="oe_highlight"/>

In python

def action_cancel_yes(self, cr, uid, ids, context=None):

       return True

def action_cancel_no(self, cr, uid, ids, context=None):

      raise osv.except_osv(_('Alert !!'), _('Your sale order is  NOT Cancel'))

 

Poser une question
Writer
Étiquettes
Keep Informed
1 Abonné(e)s
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now