I want to write tests on v8 modules, but dont seem to find a way to use new api. In all examples I see that cr, uid is still used etc. Is it possible to write tests with new api. If so how (any references etc)?
Hello Andrius Laukavičius,
Yes, you can write tests using all new api stuff.
from openerp.tests import common
res_partner = self.env['res.partner']
test_partner1 = res_partner.create(
Hope this will help.
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
|Asked: 9/22/14, 3:51 AM|
|Seen: 874 times|
|Last updated: 3/16/15, 8:10 AM|