产品新增3d模型展示

This commit is contained in:
jinling.yang
2023-03-06 17:02:21 +08:00
parent 84a674e4e2
commit 2df811d4ce
35 changed files with 159 additions and 1291 deletions

View File

@@ -7,7 +7,7 @@ from odoo.http import request
class Sf_Bf_Connect(http.Controller):
@http.route('/api/bfm_process_order/list', type='http', auth='none', methods=['GET', 'POST'], csrf=False,
@http.route('/api/bfm_process_order/list', type='http', auth='sf_token', methods=['GET', 'POST'], csrf=False,
cors="*")
def get_bfm_process_order_list(self, **kw):
"""
@@ -119,6 +119,7 @@ class Sf_Bf_Connect(http.Controller):
logging.info('get_bfm_process_order_list error:%s' % e)
res['status'] = -1
res['message'] = '工厂创建销售订单和产品失败,请联系管理员'
request.cr.rollback()
return json.JSONEncoder().encode(res)