summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-25 11:09:27 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-25 11:09:27 +0700
commit940054dbc1dffca75bfb81e478d5538f762009c6 (patch)
treedcf0d00d874e8167d83999f86499bdc1b54dd704 /indoteknik_custom/models/account_move.py
parent4656fedaac694b5e6fe72311a49dd34bce1e50e5 (diff)
parentdd1e7158f3c5a24c4cfd67fdeedd9011f6c0655b (diff)
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 33fb73b5..4db97706 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -115,4 +115,11 @@ class AccountMove(models.Model):
add_days += line.days
due_date = tukar_date + timedelta(days=add_days)
invoice.invoice_date_due = due_date
- \ No newline at end of file
+
+ def open_form_multi_update(self):
+ action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_account_move_multi_update')
+ action['context'] = {
+ 'move_ids': [x.id for x in self]
+ }
+ return action
+ \ No newline at end of file