summaryrefslogtreecommitdiff
path: root/fixco_custom/models/manage_stock.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
commit737d6932676242ad4aae7f7c175ea98d5b00f437 (patch)
tree0da618be66f96ccb053ddbe5a1161fc60cd7186d /fixco_custom/models/manage_stock.py
parent10e171ea5389873fea3fb13c90242b322a37a990 (diff)
odoo fixco
Diffstat (limited to 'fixco_custom/models/manage_stock.py')
-rw-r--r--fixco_custom/models/manage_stock.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fixco_custom/models/manage_stock.py b/fixco_custom/models/manage_stock.py
index 29d482f..80aa505 100644
--- a/fixco_custom/models/manage_stock.py
+++ b/fixco_custom/models/manage_stock.py
@@ -78,6 +78,8 @@ class ManageStock(models.Model):
'partner_id': stock.vendor_id.id,
'taxes_id': stock.vendor_id.tax_id.id if stock.vendor_id.tax_id else False,
'price': price,
+ 'product_public_category_id': stock.product_id.product_public_category_id.id,
+ 'brand_id': stock.product_id.brand_id.id,
})
self.env['automatic.purchase.line'].create(lines_to_create)