mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_request_kanban: black, isort, prettier
This commit is contained in:
1
setup/stock_request_kanban/odoo/addons/stock_request_kanban
Symbolic link
1
setup/stock_request_kanban/odoo/addons/stock_request_kanban
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../stock_request_kanban
|
||||
6
setup/stock_request_kanban/setup.py
Normal file
6
setup/stock_request_kanban/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user