summaryrefslogtreecommitdiff
path: root/fixco_custom/models/account_move.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-24 15:28:52 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-24 15:28:52 +0700
commit099dc9e41b2f9098eebb00ea895232e4c943d83c (patch)
treeac43474b4009b6c0d5c64523a0d8343e5492697a /fixco_custom/models/account_move.py
parent6274e53f46c38682c29334a9101561a8dbd53aff (diff)
<Miqdad> lock date
Diffstat (limited to 'fixco_custom/models/account_move.py')
-rw-r--r--fixco_custom/models/account_move.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixco_custom/models/account_move.py b/fixco_custom/models/account_move.py
index d727380..376c368 100644
--- a/fixco_custom/models/account_move.py
+++ b/fixco_custom/models/account_move.py
@@ -62,6 +62,21 @@ class AccountMove(models.Model):
)
soo_number = fields.Char('SOO Number')
+ # def _check_lock_date(self):
+ # _logger.warning("CHECK LOCK DATE TRIGGERED BY %s", self.env.user.name)
+
+ # moves_to_check = self.filtered(
+ # lambda m: self.env.user not in m.company_id.excluded_user_ids
+ # )
+
+ # _logger.warning("MOVES TO CHECK: %s", moves_to_check)
+
+ # if moves_to_check:
+ # return super(AccountMove, moves_to_check)._check_lock_date()
+
+ # _logger.warning("LOCK BYPASSED")
+ # return True
+
@api.depends('line_ids.partner_id')
def _compute_partner_compute(self):
for move in self: