diff options
Diffstat (limited to 'fixco_custom/models/account_move.py')
| -rw-r--r-- | fixco_custom/models/account_move.py | 15 |
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: |
