summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchasing_job.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-12-14 15:16:55 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-12-14 15:16:55 +0700
commitce2b8502ab85419096dda2bffaffbec4a096a99f (patch)
tree852dfc2e6a7a89c8a4a42daf8d89d662fe8d1b03 /indoteknik_custom/models/purchasing_job.py
parenteabbbadc5114f6c1edb9ec6bb74a296477f02b5a (diff)
bug fix window multi update
Diffstat (limited to 'indoteknik_custom/models/purchasing_job.py')
-rw-r--r--indoteknik_custom/models/purchasing_job.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/purchasing_job.py b/indoteknik_custom/models/purchasing_job.py
index c660b937..18235d47 100644
--- a/indoteknik_custom/models/purchasing_job.py
+++ b/indoteknik_custom/models/purchasing_job.py
@@ -30,7 +30,7 @@ class PurchasingJob(models.Model):
""" % self._table)
def open_form_multi_generate_request_po(self):
- action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_generate_request_po')
+ action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_purchasing_job_multi_update')
action['context'] = {
'product_ids': [x.id for x in self]
}
@@ -38,5 +38,5 @@ class PurchasingJob(models.Model):
def generate_request_po(self):
# print(1)
- for product in self:
- print(product)
+ for job in self:
+ print(job.product_id.name)