def METHOD_NAME(self):
    """The journal lock date is ignored for Advisers"""
    self.env.user.write(
        {"groups_id": [(4, self.env.ref("account.group_account_manager").id)]}
    )
    self.assertTrue(self.env.user.has_group("account.group_account_manager"))
    wizard = (
        self.env["update.journal.lock.dates.wizard"]
        .with_context(active_model="account.journal", active_ids=self.journal.id)
        .create(
            {
                "fiscalyear_lock_date": date.today() + timedelta(days=2),
                "period_lock_date": date.today() + timedelta(days=4),
            }
        )
    )
    wizard.action_update_lock_dates()
    # Advisers cannot write, or cancel moves before 'Lock Date'
    with self.assertRaisesRegex(
        UserError, ".*prior to and inclusive of the lock date.*"
    ):
        self.move.write({"name": "TEST"})
    with self.assertRaisesRegex(
        UserError, ".*prior to and inclusive of the lock date.*"
    ):
        self.move.button_cancel()
    # Advisers can create movements on a date after the 'Lock Date'
    # even if that date is before and inclusive of
    # the 'Lock Date for Non-Advisers' (self.journal.period_lock_date)
    move2 = self.account_move_obj.create(
        {
            "date": self.journal.period_lock_date,
            "journal_id": self.journal.id,
            "line_ids": [
                (
                    0,
                    0,
                    {
                        "account_id": self.account.id,
                        "credit": 1000.0,
                        "name": "Credit line",
                    },
                ),
                (
                    0,
                    0,
                    {
                        "account_id": self.account2.id,
                        "debit": 1000.0,
                        "name": "Debit line",
                    },
                ),
            ],
        }
    )
    move2.action_post()