diff options
| author | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-03-14 09:19:06 +0700 |
|---|---|---|
| committer | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-03-14 09:19:06 +0700 |
| commit | d9e637e5b3b398a0e0d6cae6631bb65358b8feef (patch) | |
| tree | f603dc225e7782e3c047bce8672901ba8a0f568c | |
| parent | c0b1c53322092d3f58ac93a09b969ceceddc91a1 (diff) | |
<hafid> fix sjo request add field & bom logic
| -rw-r--r-- | indoteknik_custom/models/sourcing_job_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sourcing_job_order.py b/indoteknik_custom/models/sourcing_job_order.py index 1d55ae6a..019b6b08 100644 --- a/indoteknik_custom/models/sourcing_job_order.py +++ b/indoteknik_custom/models/sourcing_job_order.py @@ -1028,6 +1028,8 @@ class SourcingJobOrderLine(models.Model): rec.product_type = template.type or rec.product_type rec.brand_id = product.x_manufacture.id or rec.brand_id rec.product_category = template.categ_id.id or rec.product_category + rec.web_tax_id = template.web_tax_id.id or rec.web_tax_id + rec.uom_id = template.uom_id.id or rec.uom_id rec.product_class = [(6, 0, template.public_categ_ids.ids)] if template.public_categ_ids else [] pricelist = self.env['purchase.pricelist'].search([('product_id', '=', product.id), ('is_winner', '=', True)], limit=1) |
