新增选择刀具规格基本参数

This commit is contained in:
jinling.yang
2023-10-24 14:38:35 +08:00
parent 1bc3f756fe
commit 38c77e7fbb
2 changed files with 17 additions and 1 deletions

View File

@@ -94,3 +94,19 @@ class Cutting_toolSpecificationWizard(models.TransientModel):
chuck_basic_parameters.append(
self.env['sf.tool.materials.basic.parameters']._json_chuck_basic_param(line))
item.chuck_basic_parameters_ids = chuck_basic_parameters
def choose_basic_param(self):
self.product_id.brand_id = self.brand_id.id
# self.product_id.brand_id = self.brand_id.id
# if self.cutting_tool_type == '整体式刀具':
# self.product_id.brand_id = self.brand_id.id
#
# elif self.cutting_tool_type == '刀片':
#
# elif self.cutting_tool_type == '刀杆':
#
# elif self.cutting_tool_type == '刀盘':
#
# elif self.cutting_tool_type == '刀柄':

View File

@@ -245,7 +245,7 @@
</page>
</notebook>
<footer>
<button string="选择" name="choose" type="object" class="oe_highlight"/>
<button string="选择" name="choose_basic_param" type="object" class="oe_highlight"/>
<button string="取消" class="btn btn-secondary" special="cancel"/>
</footer>
</form>