summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-05 09:52:27 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-05 09:52:27 +0700
commit269121118201783f98db46e9aec1b2d2be875a2e (patch)
tree4f38367457bd31703b806d665b4f0a2711ca2ae1 /indoteknik_custom/models
parent1b2261abbc341449e5f5fb8e988c746ef4350f78 (diff)
parent92ef14b40d14222c9f9021c5778aed03ef90b73f (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/stock_picking.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 900529b9..155664cb 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -201,6 +201,12 @@ class StockPicking(models.Model):
], string='Delivery Status', compute='_compute_delivery_status_detail', store=False)
so_num = fields.Char('SO Number', compute='_get_so_num')
is_so_fiktif = fields.Boolean('SO Fiktif?', compute='_compute_is_so_fiktif', tracking=3)
+ payment_term = fields.Char('Payment Term', compute='_get_partner_payment_term')
+
+ @api.depends('sale_id.payment_term_id')
+ def _get_partner_payment_term(self):
+ for record in self:
+ record.payment_term = record.sale_id.payment_term_id.name
@api.depends('sale_id.is_so_fiktif')
def _compute_is_so_fiktif(self):