Files
jikimo_sf/jikimo_workorder_exception_notify/tests/common.py
2024-10-15 15:14:16 +08:00

18 lines
592 B
Python

# -*- 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 TestJikimoWorkorderExceptionNotifyCommon(TransactionCase):
def setUp(self):
super(TestJikimoWorkorderExceptionNotifyCommon, self).setUp()
# 获取最后一个工单
self.workorder = self.env['mrp.workorder'].search([], order='id desc', limit=1)