Skip to content

Commit

Permalink
🌈 pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trojikman committed Mar 22, 2021
1 parent ed2cacd commit 73a75e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pos_invoice_postponed/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Configuration
=============

* `Activate developer mode <https://odoo-development.readthedocs.io/en/latest/odoo/usage/debug-mode.html>`__
* Close the POS session for which you are setting up the Postponed Invoices, if it's active now.
* Close the POS session for which you are setting up the Postponed Invoices, if it's active now.
* Open ``[[Point of Sale]] >> Configuration >> Payment Methods`` menu
* Choose a journal or create one, make sure the journal is active in POS
* Activate **Create Postponed Invoice** field
Expand Down
2 changes: 1 addition & 1 deletion pos_invoice_postponed/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def open_session_cb(self):

def init_postponed_journal(self):
"""Init demo Journals for current company
sudo() - is for creating sessions by 'non-administrator' users"""
sudo() - is for creating sessions by 'non-administrator' users"""
demo_is_on = (
self.env["ir.module.module"].sudo().search([("name", "=", MODULE)]).demo
)
Expand Down
8 changes: 4 additions & 4 deletions pos_invoice_postponed/static/src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
Copyright 2019 Anvar Kildebekov <https://it-projects.info/team/fedoranvar>
* License MIT (https://opensource.org/licenses/MIT). */
odoo.define("pos_invoice_postponed.pos", function(require) {
odoo.define("pos_invoice_postponed.pos", function (require) {
"use strict";

var models = require("point_of_sale.models");
Expand All @@ -13,14 +13,14 @@ odoo.define("pos_invoice_postponed.pos", function(require) {
models.load_fields("account.journal", ["postponed_invoice"]);

screens.PaymentScreenWidget.include({
init: function(parent, options) {
init: function (parent, options) {
this._super(parent, options);
},
validate_order: function(options) {
validate_order: function (options) {
var order = this.pos.get_order();
var paymentlines = order.get_paymentlines();
var client = order.get_client();
var postponed_invoice_paymentlines = _.filter(paymentlines, function(pl) {
var postponed_invoice_paymentlines = _.filter(paymentlines, function (pl) {
return pl.cashregister.journal.postponed_invoice;
});
if (
Expand Down
2 changes: 1 addition & 1 deletion pos_invoice_postponed/static/src/js/tour.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
License MIT (https://opensource.org/licenses/MIT).*/
odoo.define("pos_invoice_postponed.tour", function(require) {
odoo.define("pos_invoice_postponed.tour", function (require) {
"use strict";

var tour = require("web_tour.tour");
Expand Down

0 comments on commit 73a75e4

Please sign in to comment.