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
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Stock Request",
|
||||
"summary": "Internal request for stock",
|
||||
"version": "12.0.1.0.4",
|
||||
"version": "12.0.1.1.0",
|
||||
"license": "LGPL-3",
|
||||
"website": "https://github.com/stock-logistics-warehouse",
|
||||
"author": "Eficent, "
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="stock_request_allow_virtual_loc" readonly="0"/>
|
||||
<field name="stock_request_allow_virtual_loc"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label string="Allow All Locations Types" for="stock_request_allow_virtual_loc"/>
|
||||
|
||||
Reference in New Issue
Block a user