[REF] *: remove _lt()
In a previous commit 8bfa76a, _lt() returns _t().
So, in this commit, all usages of _lt() are replaced by _t().
task-3292454
closes odoo/odoo#130179
Related: odoo/enterprise#44906
Signed-off-by: Luca Vitali (luvi) <luvi@odoo.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { _lt, _t } from "@web/core/l10n/translation";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
import { sprintf } from "@web/core/utils/strings";
|
||||
|
||||
import * as spreadsheet from "@odoo/o-spreadsheet";
|
||||
@@ -129,21 +129,21 @@ export function parseAccountingDate(dateRange, locale) {
|
||||
}
|
||||
|
||||
const ODOO_FIN_ARGS = () => [
|
||||
arg("account_codes (string)", _lt("The prefix of the accounts.")),
|
||||
arg("account_codes (string)", _t("The prefix of the accounts.")),
|
||||
arg(
|
||||
"date_range (string, date)",
|
||||
_lt(`The date range. Supported formats are "21/12/2022", "Q1/2022", "12/2022", and "2022".`)
|
||||
_t(`The date range. Supported formats are "21/12/2022", "Q1/2022", "12/2022", and "2022".`)
|
||||
),
|
||||
arg("offset (number, default=0)", _lt("Year offset applied to date_range.")),
|
||||
arg("company_id (number, optional)", _lt("The company to target (Advanced).")),
|
||||
arg("offset (number, default=0)", _t("Year offset applied to date_range.")),
|
||||
arg("company_id (number, optional)", _t("The company to target (Advanced).")),
|
||||
arg(
|
||||
"include_unposted (boolean, default=FALSE)",
|
||||
_lt("Set to TRUE to include unposted entries.")
|
||||
_t("Set to TRUE to include unposted entries.")
|
||||
),
|
||||
];
|
||||
|
||||
functionRegistry.add("ODOO.CREDIT", {
|
||||
description: _lt("Get the total credit for the specified account(s) and period."),
|
||||
description: _t("Get the total credit for the specified account(s) and period."),
|
||||
args: ODOO_FIN_ARGS(),
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
@@ -178,7 +178,7 @@ functionRegistry.add("ODOO.CREDIT", {
|
||||
});
|
||||
|
||||
functionRegistry.add("ODOO.DEBIT", {
|
||||
description: _lt("Get the total debit for the specified account(s) and period."),
|
||||
description: _t("Get the total debit for the specified account(s) and period."),
|
||||
args: ODOO_FIN_ARGS(),
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
@@ -213,7 +213,7 @@ functionRegistry.add("ODOO.DEBIT", {
|
||||
});
|
||||
|
||||
functionRegistry.add("ODOO.BALANCE", {
|
||||
description: _lt("Get the total balance for the specified account(s) and period."),
|
||||
description: _t("Get the total balance for the specified account(s) and period."),
|
||||
args: ODOO_FIN_ARGS(),
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
@@ -257,12 +257,12 @@ functionRegistry.add("ODOO.BALANCE", {
|
||||
});
|
||||
|
||||
functionRegistry.add("ODOO.FISCALYEAR.START", {
|
||||
description: _lt(
|
||||
description: _t(
|
||||
"Returns the starting date of the fiscal year encompassing the provided date."
|
||||
),
|
||||
args: [
|
||||
arg("date (date)", _lt("Reference date.")),
|
||||
arg("company_id (number, optional)", _lt("The company.")),
|
||||
arg("date (date)", _t("Reference date.")),
|
||||
arg("company_id (number, optional)", _t("The company.")),
|
||||
],
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
@@ -279,10 +279,10 @@ functionRegistry.add("ODOO.FISCALYEAR.START", {
|
||||
});
|
||||
|
||||
functionRegistry.add("ODOO.FISCALYEAR.END", {
|
||||
description: _lt("Returns the ending date of the fiscal year encompassing the provided date."),
|
||||
description: _t("Returns the ending date of the fiscal year encompassing the provided date."),
|
||||
args: [
|
||||
arg("date (date)", _lt("Reference date.")),
|
||||
arg("company_id (number, optional)", _lt("The company.")),
|
||||
arg("date (date)", _t("Reference date.")),
|
||||
arg("company_id (number, optional)", _t("The company.")),
|
||||
],
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
@@ -299,8 +299,8 @@ functionRegistry.add("ODOO.FISCALYEAR.END", {
|
||||
});
|
||||
|
||||
functionRegistry.add("ODOO.ACCOUNT.GROUP", {
|
||||
description: _lt("Returns the account ids of a given group."),
|
||||
args: [arg("type (string)", _lt("Account type."))],
|
||||
description: _t("Returns the account ids of a given group."),
|
||||
args: [arg("type (string)", _t("Account type."))],
|
||||
category: "Odoo",
|
||||
returns: ["NUMBER"],
|
||||
compute: function (accountType) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import { _lt } from "@web/core/l10n/translation";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
import * as spreadsheet from "@odoo/o-spreadsheet";
|
||||
import AccountingPlugin from "./plugins/accounting_plugin";
|
||||
import { getFirstAccountFunction, getNumberOfAccountFormulas } from "./utils";
|
||||
@@ -14,7 +14,7 @@ const { toString, toBoolean } = spreadsheet.helpers;
|
||||
featurePluginRegistry.add("odooAccountingAggregates", AccountingPlugin);
|
||||
|
||||
cellMenuRegistry.add("move_lines_see_records", {
|
||||
name: _lt("See records"),
|
||||
name: _t("See records"),
|
||||
sequence: 176,
|
||||
async execute(env) {
|
||||
const position = env.model.getters.getActivePosition();
|
||||
|
||||
Reference in New Issue
Block a user