Skip to content

Commit 208d737

Browse files
[MIG] : Migration to 17.0 - (states)
1 parent 27b2f8c commit 208d737

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

l10n_br_fiscal/views/invalidate_number_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
name="action_invalidate"
3939
type="object"
4040
string="Confirmar"
41-
states="draft"
41+
invisible="state != 'draft'"
4242
class="oe_highlight"
4343
/>
4444
</header>

l10n_br_fiscal/views/operation_line_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<button
2828
name="action_review"
2929
type="object"
30-
states="draft"
30+
invisible="state != 'draft'"
3131
string="Review"
3232
class="oe_highlight"
3333
groups="l10n_br_fiscal.group_manager"

l10n_br_fiscal/views/operation_view.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@
4545
<button
4646
name="action_review"
4747
type="object"
48-
states="draft"
48+
invisible="state != 'draft'"
4949
string="Review"
5050
class="oe_highlight"
5151
groups="l10n_br_fiscal.group_manager"
5252
/>
5353
<button
5454
name="action_approve"
5555
type="object"
56-
states="review,expired"
56+
invisible="state not in ('review', 'expired')"
5757
string="Approve"
5858
class="oe_highlight"
5959
groups="l10n_br_fiscal.group_manager"
6060
/>
6161
<button
6262
name="action_draft"
6363
type="object"
64-
states="review,approved"
64+
invisible="state not in ('review', 'approved')"
6565
string="Reset To Draft"
6666
class="oe_highlight"
6767
groups="l10n_br_fiscal.group_manager"

l10n_br_fiscal/views/tax_definition_view.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@
4545
<button
4646
name="action_review"
4747
type="object"
48-
states="draft"
48+
invisible="state != 'draft'"
4949
string="Review"
5050
class="oe_highlight"
5151
groups="l10n_br_fiscal.group_manager"
5252
/>
5353
<button
5454
name="action_approve"
5555
type="object"
56-
states="review,expired"
56+
invisible="state not in ('review', 'expired')"
5757
string="Approve"
5858
class="oe_highlight"
5959
groups="l10n_br_fiscal.group_manager"
6060
/>
6161
<button
6262
name="action_draft"
6363
type="object"
64-
states="review,approved"
64+
invisible="state not in ('review', 'approved')"
6565
string="Reset To Draft"
6666
class="oe_highlight"
6767
groups="l10n_br_fiscal.group_manager"

0 commit comments

Comments
 (0)