Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.0 #1985

Open
wants to merge 2 commits into
base: 15.0
Choose a base branch
from
Open

15.0 #1985

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion account_journal_lock_date/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class AccountMove(models.Model):

def write(self, values):
res = super().write(values)
self._check_fiscalyear_lock_date()
# Skip _check_fiscalyear_lock_date if 'access_token' is the only key in values
if not (len(values) == 1 and 'access_token' in values):
self._check_fiscalyear_lock_date()
return res

def _check_fiscalyear_lock_date(self):
Expand Down
Loading