We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10871f7 commit 365c5f3Copy full SHA for 365c5f3
2 files changed
sale_order_revision/models/sale_order.py
@@ -42,3 +42,10 @@ def action_view_revisions(self):
42
"default_current_revision_id": self.id,
43
}
44
return result
45
+
46
+ def action_cancel_create_revision(self):
47
+ for sale in self:
48
+ sale.action_cancel()
49
+ action = sale.create_revision()
50
+ if len(self) == 1:
51
+ return action
sale_order_revision/view/sale_order.xml
@@ -23,6 +23,12 @@
23
string="New Revision of Quotation"
24
type="object"
25
/>
26
+ <button
27
+ name="action_cancel_create_revision"
28
+ states="sale"
29
+ string="New Revision"
30
+ type="object"
31
+ />
32
</xpath>
33
<xpath expr="//button[@name='action_view_invoice']" position="after">
34
<button
0 commit comments