summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchasing_job_multi_update.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/purchasing_job_multi_update.py')
-rw-r--r--indoteknik_custom/models/purchasing_job_multi_update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchasing_job_multi_update.py b/indoteknik_custom/models/purchasing_job_multi_update.py
index f3d07597..65feba71 100644
--- a/indoteknik_custom/models/purchasing_job_multi_update.py
+++ b/indoteknik_custom/models/purchasing_job_multi_update.py
@@ -20,7 +20,7 @@ class PurchasingJobMultiUpdate(models.TransientModel):
'status_apo': 'apo',
})
- apo = products.generate_request_po()
+ apo = self.env['automatic.purchase'].generate_regular_purchase(products)
return {
'name': _('Automatic Purchase'),
'view_mode': 'tree,form',