Skip to content

Commit

Permalink
Merge PR OCA#2615 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jul 26, 2023
2 parents 783cd2f + a71e252 commit 7cc9a86
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sale_order_revision/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ def _prepare_revision_data(self, new_revision):

def action_view_revisions(self):
self.ensure_one()
action = self.env.ref("sale.action_orders")
result = action.read()[0]
result["domain"] = ["|", ("active", "=", False), ("active", "=", True)]
result["context"] = {
action = self.env["ir.actions.act_window"]._for_xml_id("sale.action_orders")
action["domain"] = ["|", ("active", "=", False), ("active", "=", True)]
action["context"] = {
"active_test": 0,
"search_default_current_revision_id": self.id,
"default_current_revision_id": self.id,
}
return result
return action

0 comments on commit 7cc9a86

Please sign in to comment.