mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 02:26:33 +00:00
Revert "Merge pull request #57409 from mihir-kandoi/chore/drop-warehouse-name-translation-marking"
This reverts commitab16fd0a98, reversing changes made to5fa242ec93.
This commit is contained in:
@@ -448,18 +448,23 @@ class Company(NestedSet):
|
|||||||
frappe.clear_cache()
|
frappe.clear_cache()
|
||||||
|
|
||||||
def create_default_warehouses(self):
|
def create_default_warehouses(self):
|
||||||
|
from erpnext.setup.utils import identity as _
|
||||||
|
|
||||||
parent_warehouse = None
|
parent_warehouse = None
|
||||||
for wh_detail in [
|
for wh_detail in [
|
||||||
{"warehouse_name": "All Warehouses", "is_group": 1},
|
{"warehouse_name": _("All Warehouses"), "is_group": 1},
|
||||||
{"warehouse_name": "Stores", "is_group": 0},
|
{"warehouse_name": _("Stores"), "is_group": 0},
|
||||||
{"warehouse_name": "Work In Progress", "is_group": 0},
|
{"warehouse_name": _("Work In Progress"), "is_group": 0},
|
||||||
{"warehouse_name": "Finished Goods", "is_group": 0},
|
{"warehouse_name": _("Finished Goods"), "is_group": 0},
|
||||||
{"warehouse_name": "Goods In Transit", "is_group": 0, "warehouse_type": "Transit"},
|
{"warehouse_name": _("Goods In Transit"), "is_group": 0, "warehouse_type": "Transit"},
|
||||||
]:
|
]:
|
||||||
if frappe.db.exists(
|
if frappe.db.exists(
|
||||||
"Warehouse",
|
"Warehouse",
|
||||||
{
|
{
|
||||||
"warehouse_name": ("in", (wh_detail["warehouse_name"], _(wh_detail["warehouse_name"]))),
|
"warehouse_name": (
|
||||||
|
"in",
|
||||||
|
(wh_detail["warehouse_name"], frappe._(wh_detail["warehouse_name"])),
|
||||||
|
),
|
||||||
"company": self.name,
|
"company": self.name,
|
||||||
},
|
},
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user