工单异常处理

This commit is contained in:
胡尧
2024-10-15 15:14:16 +08:00
parent e2bd36ca16
commit ce5cb17e31
24 changed files with 403 additions and 36 deletions

View File

@@ -0,0 +1,18 @@
# -*- 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)