Skip to content

Commit

Permalink
[MIG] sale_cancel_reason: migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-wichowski committed Apr 9, 2024
1 parent e3a3e53 commit 8040cc4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sale_cancel_reason/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Sale Cancel Reason",
"version": "16.0.1.0.1",
"version": "17.0.1.0.1",
"author": "Camptocamp," "Odoo Community Association (OCA)",
"category": "Sale",
"license": "AGPL-3",
Expand Down
1 change: 1 addition & 0 deletions sale_cancel_reason/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- Alan Ramos \<<[email protected]>\>
- Aritz Olea \<<[email protected]>\>, Landoo SL
- Hugo Córdoba \<<[email protected]>\>
- Maciej Wichowski \<<[email protected]>\>
4 changes: 2 additions & 2 deletions sale_cancel_reason/view/sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<label
for="cancel_reason_id"
string="Cancellation reason:"
attrs="{'invisible': [('state', '!=', 'cancel')]}"
invisible="state != 'cancel'"
/>
<field
name="cancel_reason_id"
class="oe_inline"
options='{"no_open": True}'
attrs="{'invisible': [('state', '!=', 'cancel')]}"
invisible="state != 'cancel'"
/>
</p>
</xpath>
Expand Down
2 changes: 1 addition & 1 deletion sale_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class SaleOrderCancel(models.TransientModel):

def action_cancel(self):
self.order_id.cancel_reason_id = self.reason_id
return super(SaleOrderCancel, self).action_cancel()
return super().action_cancel()

0 comments on commit 8040cc4

Please sign in to comment.