新增选择刀具规格基本参数
This commit is contained in:
@@ -94,3 +94,19 @@ class Cutting_toolSpecificationWizard(models.TransientModel):
|
|||||||
chuck_basic_parameters.append(
|
chuck_basic_parameters.append(
|
||||||
self.env['sf.tool.materials.basic.parameters']._json_chuck_basic_param(line))
|
self.env['sf.tool.materials.basic.parameters']._json_chuck_basic_param(line))
|
||||||
item.chuck_basic_parameters_ids = chuck_basic_parameters
|
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 == '刀柄':
|
||||||
|
|
||||||
|
|||||||
@@ -245,7 +245,7 @@
|
|||||||
</page>
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
<footer>
|
<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"/>
|
<button string="取消" class="btn btn-secondary" special="cancel"/>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user