summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_warehouse_orderpoint.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-11-03 13:46:16 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-11-03 13:46:16 +0700
commite94cfd1fee485d0e84fb50a66a7584572452b5dc (patch)
tree7f0e82becba364b8b984ef27df660635d1e1f9f6 /indoteknik_custom/models/stock_warehouse_orderpoint.py
parent566a20db595a2b0a1959a12d289361b16e1ef172 (diff)
parent6b49797aca36574497f93a06f8e1c0622e5ad009 (diff)
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
# Conflicts: # indoteknik_custom/__manifest__.py # indoteknik_custom/models/__init__.py
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