From 737d6932676242ad4aae7f7c175ea98d5b00f437 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 22 Jul 2025 11:11:34 +0700 Subject: odoo fixco --- fixco_custom/models/manage_stock.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fixco_custom/models/manage_stock.py') 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) -- cgit v1.2.3