diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-01-17 10:38:01 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-01-17 10:38:01 +0700 |
| commit | 78b151a7e90e84dfa3898b75cf4440c714ba9305 (patch) | |
| tree | d38e6614b2a069ed28cdcd49c3679dc8ba3b917c | |
| parent | f77362c452e04c67927d4572a29157922932d6c7 (diff) | |
change logic generate dunning line
| -rw-r--r-- | indoteknik_custom/models/dunning_run.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/dunning_run.py b/indoteknik_custom/models/dunning_run.py index 56a33578..ed5d7bb5 100644 --- a/indoteknik_custom/models/dunning_run.py +++ b/indoteknik_custom/models/dunning_run.py @@ -60,7 +60,8 @@ class DunningRun(models.Model): ('move_type', '=', 'out_invoice'), ('state', '=', 'posted'), ('partner_id', '=', partner.id), - ('amount_residual_signed', '>', 0), + # ('amount_residual_signed', '>', 0), + ('date_kirim_tukar_faktur', '=', False), ] invoices = self.env['account.move'].search(query, order='invoice_date') count = 0 |
