ui: surface E-Taxes load buttons as inner page buttons
Convert add_menu_item to add_inner_button on E-Taxes Customer/Supplier/ Item/Unit lists, Purchase Order, Sales Order, and Journal Entry list views so the load/import actions are visible directly instead of being hidden under the "..." menu. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
213329afff
commit
530289e94c
|
|
@ -14,7 +14,7 @@ frappe.listview_settings['E-Taxes Customers'] = {
|
|||
|
||||
onload: function(listview) {
|
||||
// Add button to load customers from E-Taxes
|
||||
listview.page.add_menu_item(__('Load from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Load from E-Taxes'), function() {
|
||||
// Сначала проверяем актуальность токена перед загрузкой
|
||||
check_and_process_token_customers(function() {
|
||||
show_invoice_filter_dialog_customers();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ frappe.listview_settings['E-Taxes Item'] = {
|
|||
|
||||
onload: function(listview) {
|
||||
// Add button to load items from E-Taxes
|
||||
listview.page.add_menu_item(__('Load from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Load from E-Taxes'), function() {
|
||||
// Сначала проверяем актуальность токена без анимации загрузки
|
||||
check_and_process_token_items(function() {
|
||||
show_items_filter_dialog();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ frappe.listview_settings['E-Taxes Suppliers'] = {
|
|||
|
||||
onload: function(listview) {
|
||||
// Add button to load suppliers from E-Taxes
|
||||
listview.page.add_menu_item(__('Load from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Load from E-Taxes'), function() {
|
||||
// Сначала проверяем актуальность токена перед загрузкой
|
||||
check_and_process_token_suppliers(function() {
|
||||
show_invoice_filter_dialog_suppliers();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ frappe.listview_settings['E-Taxes Unit'] = {
|
|||
|
||||
onload: function(listview) {
|
||||
// Add button to load units from E-Taxes
|
||||
listview.page.add_menu_item(__('Load from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Load from E-Taxes'), function() {
|
||||
// Сначала проверяем актуальность токена без анимации загрузки
|
||||
check_and_process_token_units(function() {
|
||||
show_units_filter_dialog();
|
||||
|
|
|
|||
|
|
@ -1514,7 +1514,7 @@ frappe.listview_settings['Journal Entry'] = {
|
|||
},
|
||||
|
||||
onload: function(listview) {
|
||||
listview.page.add_menu_item(__('Import VAT Operations from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Import VAT Operations from E-Taxes'), function() {
|
||||
VATETaxes.import.showDialog();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1547,7 +1547,7 @@ frappe.listview_settings['Purchase Order'] = {
|
|||
},
|
||||
|
||||
onload: function(listview) {
|
||||
listview.page.add_menu_item(__('Import from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Import from E-Taxes'), function() {
|
||||
ETaxes.import.showDialog();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1600,7 +1600,7 @@ frappe.listview_settings['Sales Order'] = {
|
|||
|
||||
onload: function(listview) {
|
||||
// ДОБАВЛЕНО: кнопка импорта из E-Taxes для Sales Order
|
||||
listview.page.add_menu_item(__('Import from E-Taxes'), function() {
|
||||
listview.page.add_inner_button(__('Import from E-Taxes'), function() {
|
||||
SalesETaxes.import.showDialog();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue