Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/制造代码优化
This commit is contained in:
@@ -133,6 +133,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<field name="priority" widget="priority"/>
|
<field name="priority" widget="priority"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div name="product_specification_id" class="mt-1">
|
||||||
|
规格: <field name="specification_id"></field>
|
||||||
|
</div>
|
||||||
<t t-if="record.default_code.value">[<field name="default_code"/>]</t>
|
<t t-if="record.default_code.value">[<field name="default_code"/>]</t>
|
||||||
<div t-if="record.product_variant_count.value > 1" groups="product.group_product_variant">
|
<div t-if="record.product_variant_count.value > 1" groups="product.group_product_variant">
|
||||||
<strong>
|
<strong>
|
||||||
@@ -140,10 +144,7 @@
|
|||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
<div name="product_lst_price" class="mt-1">
|
<div name="product_lst_price" class="mt-1">
|
||||||
Price: <field name="list_price" widget="monetary" options="{'currency_field': 'currency_id', 'field_digits': True}"></field>
|
价格: <field name="list_price" widget="monetary" options="{'currency_field': 'currency_id', 'field_digits': True}"></field>
|
||||||
</div>
|
|
||||||
<div name="product_specification_id" class="mt-1">
|
|
||||||
规格: <field name="specification_id"></field>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,14 +24,14 @@ class AutoQuatotion(models.Model):
|
|||||||
def get_process_time_db_path(self):
|
def get_process_time_db_path(self):
|
||||||
return get_resource_path('sf_sale', 'models', 'process_time.db')
|
return get_resource_path('sf_sale', 'models', 'process_time.db')
|
||||||
|
|
||||||
# def get_auto_quatotion(self, stp_url, feature_full_path, process_time_db_path, model_code):
|
def get_auto_quatotion(self, stp_url, feature_full_path, process_time_db_path, model_code):
|
||||||
# '''
|
'''
|
||||||
# 通过打包好的.so库,
|
通过打包好的.so库,
|
||||||
# 以调用autoQuatotion库中Quatotion类,
|
以调用autoQuatotion库中Quatotion类,
|
||||||
# 初始化后调用类的analyseShape方法对模型文件进行价格预测
|
初始化后调用类的analyseShape方法对模型文件进行价格预测
|
||||||
# '''
|
'''
|
||||||
# # 初始化自动报价类(输入特征数据库和加工时间数据库)
|
# 初始化自动报价类(输入特征数据库和加工时间数据库)
|
||||||
# reader = auto_quatotion.Quatotion(feature_full_path, process_time_db_path)
|
reader = auto_quatotion.Quatotion(feature_full_path, process_time_db_path)
|
||||||
# # 获取价格、加工时间、尺寸、XYZ、翻面次数
|
# 获取价格、加工时间、尺寸、XYZ、翻面次数
|
||||||
# feature_info = reader.analyseShape(stp_url, InfoJson={})
|
feature_info = reader.analyseShape(stp_url, InfoJson={})
|
||||||
# return feature_info
|
return feature_info
|
||||||
|
|||||||
Reference in New Issue
Block a user