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):
|
||||
self.ensure_one()
|
||||
action = self.env.ref(
|
||||
"bemade_quotation_alternative.sale_order_duplication_wizard_action"
|
||||
).sudo.read()[0]
|
||||
action = (
|
||||
self.env.ref(
|
||||
"bemade_quotation_alternative.sale_order_duplication_wizard_action"
|
||||
)
|
||||
.sudo()
|
||||
.read()[0]
|
||||
)
|
||||
action["context"] = {
|
||||
"default_original_order_id": self.id,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue