Odoo Help

0
1 Answer
1
anonymous 2183
5/25/14, 11:03 PM

import time

......

def workorder_approved(self, cr, uid, ids):

        approvedDate = current_date = time.strftime("%x")
        self.write(cr, uid, ids, {'state' : 'approved', 'WO_APPROVE_DATE' : approvedDate})
        return True

Ask a Question
Writer
Keep Informed
1 follower(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