bemade_quotation_alternative: forward port fix to rights issue
This commit is contained in:
parent
3d8d648fb7
commit
28da18e786
1 changed files with 7 additions and 5 deletions
|
|
@ -1,13 +1,15 @@
|
|||
from odoo import fields, models, api
|
||||
from odoo import models
|
||||
|
||||
|
||||
class SaleOrder(models.Model):
|
||||
_inherit = 'sale.order'
|
||||
_inherit = "sale.order"
|
||||
|
||||
def action_duplicate_order(self):
|
||||
self.ensure_one()
|
||||
action = self.env.ref('bemade_quotation_alternative.sale_order_duplication_wizard_action').read()[0]
|
||||
action['context'] = {
|
||||
'default_original_order_id': self.id,
|
||||
action = self.env.ref(
|
||||
"bemade_quotation_alternative.sale_order_duplication_wizard_action"
|
||||
).sudo.read()[0]
|
||||
action["context"] = {
|
||||
"default_original_order_id": self.id,
|
||||
}
|
||||
return action
|
||||
|
|
|
|||
Loading…
Reference in a new issue