[IMP] pre-commit: first run on whole repo

This commit is contained in:
Kevin Khao
2021-11-26 18:54:38 +03:00
parent a04b8980e1
commit 167aefee13
289 changed files with 6020 additions and 4170 deletions

View File

@@ -2,16 +2,17 @@
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, api
from odoo import api, models
class StockChangeProductQty(models.TransientModel):
_inherit = 'stock.change.product.qty'
_inherit = "stock.change.product.qty"
@api.model
def default_get(self, fields_list):
res = super().default_get(fields_list)
if self.env.user.context_default_warehouse_id:
res['location_id'] = self.env.user.context_default_warehouse_id.\
lot_stock_id.id
res[
"location_id"
] = self.env.user.context_default_warehouse_id.lot_stock_id.id
return res