diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-10-25 14:05:01 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-10-25 14:05:01 +0700 |
| commit | 8cba1eaa340eb0c6b264672b0a47dc1628c2eb04 (patch) | |
| tree | 6549a2d6bccb201306529503516a16dd3806e3a1 /indoteknik_custom/models/stock_warehouse_orderpoint.py | |
| parent | c35137e5a43afeb6a45b7f213f9ab40afb75fb4c (diff) | |
initial commit for split automatic purchase
Diffstat (limited to 'indoteknik_custom/models/stock_warehouse_orderpoint.py')
| -rw-r--r-- | indoteknik_custom/models/stock_warehouse_orderpoint.py | 10 |
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 |
