Skip to content

Commit

Permalink
[18.0][MIG] base_tier_validation_forward: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
absal-smile committed Feb 10, 2025
1 parent 73f6d39 commit 93e1ce5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion base_tier_validation_forward/models/tier_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TierReview(models.Model):
_inherit = "tier.review"
_order = "sequence"

name = fields.Char(compute="_compute_definition_data", store=True)
name = fields.Char(compute="_compute_definition_data", store=False)
status = fields.Selection(
selection_add=[("forwarded", "Forwarded")],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
inherit_id="base_tier_validation.tier_validation_label"
>
<xpath expr="//button[@name='reject_tier']" position="after">
<field name="can_forward" invisible="1" />
<button
name="forward_tier"
string="Forward"
Expand Down
7 changes: 3 additions & 4 deletions base_tier_validation_forward/tests/test_tier_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
from odoo_test_helper import FakeModelLoader

from odoo.tests import Form
from odoo.tests.common import TransactionCase, tagged
from odoo.tests.common import tagged

from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
from odoo.addons.base.tests.common import BaseCommon


@tagged("post_install", "-at_install")
class TierTierValidation(TransactionCase):
class TierTierValidation(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.loader = FakeModelLoader(cls.env, cls.__module__)
cls.loader.backup_registry()
from odoo.addons.base_tier_validation.tests.tier_validation_tester import (
Expand Down
5 changes: 1 addition & 4 deletions base_tier_validation_forward/wizard/forward_wizard_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
<field name="forward_reviewer_id" />
<field name="forward_description" required="1" />
</group>
<group>
<field name="has_comment" invisible="1" />
<field name="approve_sequence" invisible="1" />
</group>
<group />
</group>
<footer>
<button
Expand Down

0 comments on commit 93e1ce5

Please sign in to comment.