Odoo Help

anonymous 2183
On 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

About This Community

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

Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 5/25/14, 10:38 PM
Seen: 2028 times
Last updated: 3/16/15, 8:10 AM