Skip to content

Commit

Permalink
[MIG] sale_cancel_reason: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo committed Apr 17, 2023
1 parent 9fd6ecc commit ba026b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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": "14.0.1.1.0",
"version": "16.0.1.0.0",
"author": "Camptocamp," "Odoo Community Association (OCA)",
"category": "Sale",
"license": "AGPL-3",
Expand Down
4 changes: 2 additions & 2 deletions sale_cancel_reason/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ msgstr "Razón de cancelación:"
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel
msgid ""
"Choose the reason for the cancellation of the\n"
" sale order."
" sale order."
msgstr ""
"Elija el motivo de la cancelación del\n"
" orden de venta."
"pedido de venta."

#. module: sale_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel
Expand Down
7 changes: 4 additions & 3 deletions sale_cancel_reason/view/sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath expr="/form/sheet/div/h1" position="after">
<h2 attrs="{'invisible': [('state', '!=', 'cancel')]}">
<label for="cancel_reason_id" string="Cancellation reason:" />
<p >
<label for="cancel_reason_id" string="Cancellation reason:" attrs="{'invisible': [('state', '!=', 'cancel')]}"/>
<field
name="cancel_reason_id"
class="oe_inline"
options='{"no_open": True}'
attrs="{'invisible': [('state', '!=', 'cancel')]}"
/>
</h2>
</p>
</xpath>
</field>
</record>
Expand Down

0 comments on commit ba026b9

Please sign in to comment.