diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-23 15:12:05 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-23 15:12:05 +0700 |
| commit | a88d0c0fb126813e97f6e9bb7c51afee61e3dae2 (patch) | |
| tree | 2ad418d64659bd94a4a92defe96350085281fb75 | |
| parent | 901ab091308ec3d575014a7c0540a0cf544702b7 (diff) | |
fix bug account move
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 22b637e9..5afd174f 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -65,7 +65,7 @@ class AccountMove(models.Model): @api.model def create(self, vals): - if vals['flag_delivery_amt'] == True: + if 'flag_delivery_amt' in vals and vals['flag_delivery_amt']: vals['nomor_kwitansi'] = self.env['ir.sequence'].next_by_code('nomor.kwitansi') or '0' else: vals['nomor_kwitansi'] = None |
