diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-19 10:47:09 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-19 10:47:09 +0700 |
| commit | 965265d3f6375476748bd96290b846f049ab0e1a (patch) | |
| tree | 8da42e6abbb08b22c9c5d0b5848505585436a119 | |
| parent | 7a47f8abf397798ae52b4583bcc2caf4d83db874 (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/report_stock_forecasted.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/report_stock_forecasted.py b/indoteknik_custom/models/report_stock_forecasted.py index 6058b7e5..e767a5b8 100644 --- a/indoteknik_custom/models/report_stock_forecasted.py +++ b/indoteknik_custom/models/report_stock_forecasted.py @@ -12,7 +12,7 @@ class ReplenishmentReport(models.AbstractModel): document_out = line.get('document_out') model_name = document_out._name - if document_out and model_name == 'sale.order': + if document_out and "SO/" in document_out.name: order_id = document_out.id if document_out == False: continue |
