销售模块新增依赖引用
This commit is contained in:
12
sf_bf_connect/controllers/product.py
Normal file
12
sf_bf_connect/controllers/product.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import json
|
||||||
|
import logging
|
||||||
|
from odoo import http
|
||||||
|
from odoo.http import request
|
||||||
|
|
||||||
|
|
||||||
|
# class ProductController(http.Controller):
|
||||||
|
#
|
||||||
|
# @http.route('/api/cloud/get_cutting_model', type='http', auth='none', methods=['GET', 'POST'], csrf=False,
|
||||||
|
# cors="*")
|
||||||
|
# def get_cutting_model(self, **kw):
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
<page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
<page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
||||||
<group>
|
<group>
|
||||||
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}" col="1">
|
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}" col="1">
|
||||||
<field name="cutting_tool_type_id" options="{'no_create': True}" placeholder="请选择"/>
|
<field name="cutting_tool_type_id" options="{'no_create': True}" placeholder="请选择" />
|
||||||
<field name="brand_id" options="{'no_create': True}" placeholder="请选择"/>
|
<field name="brand_id" options="{'no_create': True}" placeholder="请选择"/>
|
||||||
<field name="materials_type_id" options="{'no_create': True}"
|
<field name="materials_type_id" options="{'no_create': True}"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'in', ('整体式刀具','夹头','刀柄'))]}"
|
attrs="{'invisible': [('cutting_tool_type', 'in', ('整体式刀具','夹头','刀柄'))]}"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
""",
|
""",
|
||||||
'category': 'sf',
|
'category': 'sf',
|
||||||
'website': 'https://www.sf.jikimo.com',
|
'website': 'https://www.sf.jikimo.com',
|
||||||
'depends': ['sale', 'web_widget_model_viewer'],
|
'depends': ['sale', 'sale_management', 'web_widget_model_viewer'],
|
||||||
'data': [
|
'data': [
|
||||||
'security/group_security.xml',
|
'security/group_security.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
|
|||||||
Reference in New Issue
Block a user