Skip to content

Commit

Permalink
[4826][IMP] stock_quant_sale_order: allow operation to inventory user (
Browse files Browse the repository at this point in the history
…#142)

* [IMP] stock_quant_sale_order: allow operation to inventory user

* [FIX] stock_quant_sale_order
  • Loading branch information
AungKoKoLin1997 authored Sep 4, 2024
1 parent a82ca77 commit f8bacbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stock_quant_sale_order/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_quant_sale_order_wizard_stock_manager,quant.sale.order.wizard,model_quant_sale_order_wizard,stock.group_stock_manager,1,1,1,1
access_quant_sale_order_wizard_stock_user,quant.sale.order.wizard,model_quant_sale_order_wizard,stock.group_stock_user,1,1,1,1
access_quant_sale_order_wizard_sale_manager,quant.sale.order.wizard,model_quant_sale_order_wizard,sales_team.group_sale_manager,1,1,1,1
6 changes: 3 additions & 3 deletions stock_quant_sale_order/wizard/stock_quant_sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def action_create_sale_order(self):
sale_order_line_obj.sudo().create(line_vals)

action = self.env.ref("sale.action_quotations")
action_vals = action.read()[0]
action_vals["domain"] = str([("id", "=", sale_order.id)])
return action_vals
action = self.env["ir.actions.act_window"]._for_xml_id("sale.action_quotations")
action["domain"] = str([("id", "=", sale_order.id)])
return action

def get_warehouse_id(self, location_id):
stock_warehouse_obj = self.env["stock.warehouse"]
Expand Down

0 comments on commit f8bacbd

Please sign in to comment.