mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] website_rma: black, isort, prettier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Copyright 2020 Tecnativa - Ernesto Tejeda
|
||||
/* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
*/
|
||||
odoo.define("website_rma.website_rma", function(require) {
|
||||
odoo.define("website_rma.website_rma", function (require) {
|
||||
"use strict";
|
||||
|
||||
require("web.dom_ready");
|
||||
@@ -14,15 +14,15 @@ odoo.define("website_rma.website_rma", function(require) {
|
||||
ajax: {
|
||||
url: "/website_rma/get_products",
|
||||
dataType: "json",
|
||||
data: function(term) {
|
||||
data: function (term) {
|
||||
return {
|
||||
q: term,
|
||||
l: 50,
|
||||
};
|
||||
},
|
||||
results: function(data) {
|
||||
results: function (data) {
|
||||
var res = [];
|
||||
_.each(data, function(x) {
|
||||
_.each(data, function (x) {
|
||||
res.push({
|
||||
id: x.id,
|
||||
text: x.display_name,
|
||||
@@ -35,7 +35,7 @@ odoo.define("website_rma.website_rma", function(require) {
|
||||
},
|
||||
});
|
||||
// Set UoM on selected onchange
|
||||
$("#rma_request_form input[name='product_id']").change(function() {
|
||||
$("#rma_request_form input[name='product_id']").change(function () {
|
||||
var select2_data = $(this).select2("data");
|
||||
var uom_id = select2_data ? select2_data.uom_id : "";
|
||||
var uom_name = select2_data ? select2_data.uom_name : "";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* Copyright 2020 Tecnativa - Ernesto Tejeda
|
||||
/* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
*/
|
||||
odoo.define("website_rma.tour", function(require) {
|
||||
odoo.define("website_rma.tour", function (require) {
|
||||
"use strict";
|
||||
|
||||
var tour = require("web_tour.tour");
|
||||
@@ -23,7 +23,7 @@ odoo.define("website_rma.tour", function(require) {
|
||||
content: "Fill form",
|
||||
trigger: "#rma_request_form",
|
||||
extra_trigger: "#rma_request_form",
|
||||
run: function() {
|
||||
run: function () {
|
||||
$("select[name='operation_id'] > option:eq(1)").prop(
|
||||
"selected",
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user