代码规范整理,产品页面模型和胚料的模型类型字段做显示

This commit is contained in:
jinling.yang
2023-02-09 15:26:08 +08:00
parent 11065139d3
commit a812c603ea
13 changed files with 14 additions and 28 deletions

View File

@@ -1,18 +1,13 @@
# -*- coding: utf-8 -*-
from odoo import fields, models, api
from odoo import models
import time
import hashlib
class Common(models.Model):
_name = 'sf.sync.common'
_description = u'公用类'
def get_headers(self,token, secret_key):
'''
获取requests中的heardes参数

View File

@@ -1,12 +1,9 @@
# -*- coding: utf-8 -*-
import logging
from datetime import datetime
import requests
import json
from odoo import fields, models, api
from odoo.exceptions import ValidationError
from odoo.http import request
from odoo.addons.sf_base.commons.common import Common
_logger = logging.getLogger(__name__)

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import logging
from odoo import fields, models, api
from odoo import fields, models
_logger = logging.getLogger(__name__)