bemade_quotation_alternative: forward port fix to rights issue
This commit is contained in:
parent
28da18e786
commit
7468da6b3d
1 changed files with 7 additions and 3 deletions
|
|
@ -6,9 +6,13 @@ class SaleOrder(models.Model):
|
||||||
|
|
||||||
def action_duplicate_order(self):
|
def action_duplicate_order(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
action = self.env.ref(
|
action = (
|
||||||
"bemade_quotation_alternative.sale_order_duplication_wizard_action"
|
self.env.ref(
|
||||||
).sudo.read()[0]
|
"bemade_quotation_alternative.sale_order_duplication_wizard_action"
|
||||||
|
)
|
||||||
|
.sudo()
|
||||||
|
.read()[0]
|
||||||
|
)
|
||||||
action["context"] = {
|
action["context"] = {
|
||||||
"default_original_order_id": self.id,
|
"default_original_order_id": self.id,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue