summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_warehouse_orderpoint.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-26 11:10:04 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-26 11:10:04 +0700
commitcdd2e38987e4db045809b5af65fc12c16cf20186 (patch)
tree835e92eabb6c8daba9ccd000f6912e5a6c3c687a /indoteknik_custom/models/stock_warehouse_orderpoint.py
parent556c95e1fe466448eee0e823adc6a5757638272d (diff)
parent8cba1eaa340eb0c6b264672b0a47dc1628c2eb04 (diff)
Merge branch 'automatic-purchase-split' into production
Diffstat (limited to 'indoteknik_custom/models/stock_warehouse_orderpoint.py')
-rw-r--r--indoteknik_custom/models/stock_warehouse_orderpoint.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_warehouse_orderpoint.py b/indoteknik_custom/models/stock_warehouse_orderpoint.py
new file mode 100644
index 00000000..277c8dc3
--- /dev/null
+++ b/indoteknik_custom/models/stock_warehouse_orderpoint.py
@@ -0,0 +1,10 @@
+from odoo import fields, models, api, _
+
+class StockWarehouseOrderpoint(models.Model):
+ _inherit = 'stock.warehouse.orderpoint'
+
+ responsible_id = fields.Many2one('res.users', string='Responsible', compute='_compute_responsible')
+
+ def _compute_responsible(self):
+ for stock in self:
+ stock.responsible_id = stock.product_id.x_manufacture.user_id