mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
chore: Add Import Supplier Invoice to Menu
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return [
|
||||
config = [
|
||||
{
|
||||
"label": _("Purchasing"),
|
||||
"icon": "fa fa-star",
|
||||
@@ -243,3 +244,21 @@ def get_data():
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
regional = {
|
||||
"label": _("Regional"),
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Import Supplier Invoice",
|
||||
"description": _("Import Italian Supplier Invoice."),
|
||||
"onboard": 1,
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
countries = frappe.get_all("Company", fields="country")
|
||||
countries = [country["country"] for country in countries]
|
||||
if "Italy" in countries:
|
||||
config.append(regional)
|
||||
return config
|
||||
Reference in New Issue
Block a user