采购逻辑
This commit is contained in:
@@ -158,8 +158,9 @@ class InheritPurchaseOrder(models.Model):
|
||||
return self.search_count(domain)
|
||||
|
||||
def action_view_picking(self):
|
||||
if self.user_id == self.env.user:
|
||||
raise UserError("您不能接收自己创建的采购订单产品")
|
||||
# 注释掉创建人限制,允许所有人查看收货单
|
||||
# if self.user_id == self.env.user:
|
||||
# raise UserError("您不能接收自己创建的采购订单产品")
|
||||
return super(InheritPurchaseOrder, self).action_view_picking()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user