From 68c7f85b0bf7b8eb85f5bbffcfe2bbc8a38b7e4e Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 24 Apr 2024 13:45:43 +0700 Subject: update purchasing job --- indoteknik_custom/models/account_move.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'indoteknik_custom/models/account_move.py') diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 5afd174f..b306b6af 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -65,10 +65,7 @@ class AccountMove(models.Model): @api.model def create(self, vals): - 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 + vals['nomor_kwitansi'] = self.env['ir.sequence'].next_by_code('nomor.kwitansi') or '0' result = super(AccountMove, self).create(vals) return result -- cgit v1.2.3