mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_request: Unable to activate the virtual location
This commit is contained in:
committed by
hveficent
parent
e661214f42
commit
30171acd35
@@ -1,7 +1,7 @@
|
||||
# Copyright 2018 Creu Blanca
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
@@ -17,10 +17,17 @@ class ResConfigSettings(models.TransientModel):
|
||||
string='Stock Requests Kanban integration')
|
||||
|
||||
stock_request_allow_virtual_loc = fields.Boolean(
|
||||
related='company_id.stock_request_allow_virtual_loc')
|
||||
related='company_id.stock_request_allow_virtual_loc',
|
||||
readonly=False)
|
||||
|
||||
module_stock_request_analytic = fields.Boolean(
|
||||
string='Stock Requests Analytic integration')
|
||||
|
||||
module_stock_request_submit = fields.Boolean(
|
||||
string='Submitted state in Stock Requests')
|
||||
|
||||
# Dependencies
|
||||
@api.onchange('stock_request_allow_virtual_loc')
|
||||
def _onchange_stock_request_allow_virtual_loc(self):
|
||||
if self.stock_request_allow_virtual_loc:
|
||||
self.group_stock_multi_locations = True
|
||||
|
||||
Reference in New Issue
Block a user