Skip to content

Commit cca1a79

Browse files
committed
🌈 pre-commit
> Made via .github/workflows/DINAR-PORT.yml
1 parent ddd0411 commit cca1a79

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

pos_qr_payments/static/src/js/pos_qr_payments.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
22
License MIT (https://opensource.org/licenses/MIT). */
3-
odoo.define("pos_qr_payments", function(require) {
3+
odoo.define("pos_qr_payments", function (require) {
44
"use strict";
55
var gui = require("point_of_sale.gui");
66
var models = require("point_of_sale.models");
@@ -9,15 +9,15 @@ odoo.define("pos_qr_payments", function(require) {
99
var _t = core._t;
1010

1111
gui.Gui.prototype.screen_classes
12-
.filter(function(el) {
12+
.filter(function (el) {
1313
return el.name === "payment";
1414
})[0]
1515
.widget.include({
16-
init: function(parent, options) {
16+
init: function (parent, options) {
1717
this._super(parent, options);
1818
this.pos.bind(
1919
"validate_order",
20-
function() {
20+
function () {
2121
this.validate_order();
2222
},
2323
this
@@ -27,31 +27,31 @@ odoo.define("pos_qr_payments", function(require) {
2727

2828
var PosModelSuper = models.PosModel;
2929
models.PosModel = models.PosModel.extend({
30-
initialize: function() {
30+
initialize: function () {
3131
this.hidden_cashregisters = [];
3232
return PosModelSuper.prototype.initialize.apply(this, arguments);
3333
},
34-
show_warning: function(warning_message) {
34+
show_warning: function (warning_message) {
3535
console.info("error", warning_message);
3636
this.chrome.gui.show_popup("error", {
3737
title: _t("Warning"),
3838
body: warning_message,
3939
});
4040
},
41-
add_qr_payment: function(
41+
add_qr_payment: function (
4242
order_uid,
4343
journal_id,
4444
amount,
4545
payment_vals,
4646
validate
4747
) {
48-
var order = this.get("orders").find(function(item) {
48+
var order = this.get("orders").find(function (item) {
4949
return item.uid === order_uid;
5050
});
5151
if (order) {
5252
var creg = _.filter(
5353
this.hidden_cashregisters.concat(this.cashregisters),
54-
function(r) {
54+
function (r) {
5555
return r.journal_id[0] === journal_id;
5656
}
5757
)[0];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../pos_qr_payments

setup/pos_qr_payments/setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)