[REF] all: pass pre-commit on the whole repo
Needed for the lint job of the CI to go green. Mostly automatic hook fixes (black, isort, prettier, pyupgrade, autoflake, whitespace). By hand: - flake8: two unused imports, an ambiguous variable name `l`. - pylint-odoo mandatory: manifest keys equal to their default value (installable, application, data, external_dependencies). - end-of-file-fixer skips *.patch too, like trailing-whitespace: the upstream patches stay as git format-patch wrote them. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d9d9e8be2d
commit
fbd43bb459
45 changed files with 330 additions and 295 deletions
|
|
@ -14,27 +14,24 @@ import { registry } from "@web/core/registry";
|
|||
* negated at its full quantity, without touching the numpad.
|
||||
*/
|
||||
registry.category("web_tour.tours").add("pos_full_refund_tour", {
|
||||
steps: () =>
|
||||
[
|
||||
Chrome.startPoS(),
|
||||
Dialog.confirm("Open Register"),
|
||||
ProductScreen.addOrderline("Desk Pad", "2", "3"),
|
||||
ProductScreen.addOrderline("Letter Tray", "3", "2"),
|
||||
ProductScreen.clickPayButton(),
|
||||
PaymentScreen.clickPaymentMethod("Bank"),
|
||||
PaymentScreen.clickValidate(),
|
||||
ReceiptScreen.isShown(),
|
||||
ReceiptScreen.clickNextOrder(),
|
||||
steps: () =>
|
||||
[
|
||||
Chrome.startPoS(),
|
||||
Dialog.confirm("Open Register"),
|
||||
ProductScreen.addOrderline("Desk Pad", "2", "3"),
|
||||
ProductScreen.addOrderline("Letter Tray", "3", "2"),
|
||||
ProductScreen.clickPayButton(),
|
||||
PaymentScreen.clickPaymentMethod("Bank"),
|
||||
PaymentScreen.clickValidate(),
|
||||
ReceiptScreen.isShown(),
|
||||
ReceiptScreen.clickNextOrder(),
|
||||
|
||||
ProductScreen.clickRefund(),
|
||||
TicketScreen.selectOrder("-0001"),
|
||||
TicketScreen.clickControlButton("Do Full Refund"),
|
||||
ProductScreen.clickRefund(),
|
||||
TicketScreen.selectOrder("-0001"),
|
||||
TicketScreen.clickControlButton("Do Full Refund"),
|
||||
|
||||
{ ...ProductScreen.back(), isActive: ["mobile"] },
|
||||
ProductScreen.isShown(),
|
||||
inLeftSide([
|
||||
...Order.hasLine("Desk Pad", "-2"),
|
||||
...Order.hasLine("Letter Tray", "-3"),
|
||||
]),
|
||||
].flat(),
|
||||
{ ...ProductScreen.back(), isActive: ["mobile"] },
|
||||
ProductScreen.isShown(),
|
||||
inLeftSide([...Order.hasLine("Desk Pad", "-2"), ...Order.hasLine("Letter Tray", "-3")]),
|
||||
].flat(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue