[IMP] stock_request_kanban: black, isort, prettier

This commit is contained in:
Bernat Puig Font
2022-01-05 11:29:54 +01:00
parent 378faf4a7f
commit 4603326c43
5 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1 @@
../../../../stock_request_kanban

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -129,8 +129,7 @@ class StockInventoryKanban(models.Model):
self.write(self._close_inventory_values())
def print_missing_kanbans(self):
""" Print the missing kanban cards in order to restore them
"""
"""Print the missing kanban cards in order to restore them"""
self.ensure_one()
return self.env.ref("stock_request_kanban.action_report_kanban").report_action(
self.missing_kanban_ids

View File

@@ -1,4 +1,4 @@
odoo.define("stock_request_kanban.StockRequestKanbanController", function(require) {
odoo.define("stock_request_kanban.StockRequestKanbanController", function (require) {
"use strict";
var core = require("web.core");
@@ -11,7 +11,7 @@ odoo.define("stock_request_kanban.StockRequestKanbanController", function(requir
// Public
// -------------------------------------------------------------------------
init: function(parent, model, renderer) {
init: function (parent, model, renderer) {
this.context = renderer.state.getContext();
return this._super.apply(this, arguments);
},
@@ -19,7 +19,7 @@ odoo.define("stock_request_kanban.StockRequestKanbanController", function(requir
/**
* @override
*/
renderButtons: function($node) {
renderButtons: function ($node) {
this._super.apply(this, arguments);
var $buttonScan = $(qweb.render("StockRequestKanban.Buttons"));
$buttonScan.on("click", this._onOpenWizard.bind(this));
@@ -31,7 +31,7 @@ odoo.define("stock_request_kanban.StockRequestKanbanController", function(requir
// Handlers
// -------------------------------------------------------------------------
_onOpenWizard: function() {
_onOpenWizard: function () {
var context = {
active_model: this.modelName,
};

View File

@@ -1,4 +1,4 @@
odoo.define("stock_request_kanban.StockRequestKanbanListView", function(require) {
odoo.define("stock_request_kanban.StockRequestKanbanListView", function (require) {
"use strict";
var ListView = require("web.ListView");