# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, Command from odoo.tests.common import TransactionCase, HttpCase, tagged, Form import json import time import base64 from lxml import etree @tagged('post_install', '-at_install') class TestJikimoWorkorderExceptionNotifyCommonNotify(TransactionCase): def setUp(self): super(TestJikimoWorkorderExceptionNotifyCommonNotify, self).setUp() # 获取最后一个工单 self.workorder = self.env['mrp.workorder'].search([], order='id desc', limit=1)