Accept Merge Request #1845: (feature/库存优化_5 -> develop)
Merge Request: Merge branch 'feature/质检消息优化' into feature/库存优化_5 Created By: @禹翔辉 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @禹翔辉 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1845
This commit is contained in:
@@ -713,20 +713,6 @@ class StockPicking(models.Model):
|
||||
'draft', 'sent']:
|
||||
picking.state = 'waiting'
|
||||
|
||||
# def write(self, vals):
|
||||
#
|
||||
# old_state = None
|
||||
# if 'state' in vals:
|
||||
# old_state = self.state
|
||||
# res = super(StockPicking, self).write(vals)
|
||||
# if (self.picking_type_id.use_existing_lots is False and self.picking_type_id.use_create_lots is True and
|
||||
# (('move_ids_without_package' in vals and self.state == 'assigned')
|
||||
# or ('state' in vals and vals['state'] == 'assigned' and old_state not in ['assigned', 'done']))):
|
||||
# if self.move_ids_without_package:
|
||||
# for move_id in self.move_ids_without_package:
|
||||
# move_id.action_show_details()
|
||||
# return res
|
||||
|
||||
@api.constrains('state', 'move_ids_without_package')
|
||||
def _check_move_ids_without_package(self):
|
||||
"""
|
||||
@@ -1059,6 +1045,8 @@ class ReStockMove(models.Model):
|
||||
更新序列号 功能按钮
|
||||
"""
|
||||
self.move_line_nosuggest_ids.unlink()
|
||||
if self.state != 'assigned':
|
||||
self.state = 'assigned'
|
||||
return self.action_show_details()
|
||||
|
||||
|
||||
|
||||
@@ -127,6 +127,9 @@
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="replace">
|
||||
<field name="product_uom_qty" string="数量" widget="merge_field" optional="show" />
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_uom'][2]" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_uom']" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user