mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 17:32:00 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
odoo.define("pos_payment_restriction.PaymentScreen", function (require) {
|
||||
"use strict";
|
||||
|
||||
const PaymentScreen = require("point_of_sale.PaymentScreen");
|
||||
const Registries = require("point_of_sale.Registries");
|
||||
|
||||
const PosPaymentScreen = (OriginalPaymentScreen) =>
|
||||
class extends OriginalPaymentScreen {
|
||||
_updateSelectedPaymentline() {
|
||||
if (this.env.pos.payment_amount_readonly) {
|
||||
return;
|
||||
}
|
||||
return super._updateSelectedPaymentline();
|
||||
}
|
||||
};
|
||||
|
||||
Registries.Component.extend(PaymentScreen, PosPaymentScreen);
|
||||
|
||||
return PosPaymentScreen;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue