summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/tukar_guling.py2
-rw-r--r--indoteknik_custom/models/tukar_guling_po.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py
index 3091acce..8de5b671 100644
--- a/indoteknik_custom/models/tukar_guling.py
+++ b/indoteknik_custom/models/tukar_guling.py
@@ -81,7 +81,7 @@ class TukarGuling(models.Model):
is_has_invoice = fields.Boolean('Has Invoice?', compute='_compute_is_has_invoice', readonly=True, default=False)
- invoice_id = fields.Many2one('account.move', string='Invoice Ref', readonly=True)
+ invoice_id = fields.Many2many('account.move', string='Invoice Ref', readonly=True)
@api.depends('origin')
def _compute_is_has_invoice(self):
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py
index 38afaac6..5d444472 100644
--- a/indoteknik_custom/models/tukar_guling_po.py
+++ b/indoteknik_custom/models/tukar_guling_po.py
@@ -61,7 +61,7 @@ class TukarGulingPO(models.Model):
is_has_bill = fields.Boolean('Has Bill?', compute='_compute_is_has_bill', readonly=True, default=False)
- bill_id = fields.Many2one('account.move', string='Bill Ref', readonly=True)
+ bill_id = fields.Many2many('account.move', string='Bill Ref', readonly=True)
@api.depends('origin')
def _compute_is_has_bill(self):