Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
556 Widoki

Awatar
Odrzuć

You want to get rid of Budget completely or just in this particular view? For every user or specific ones?

Najlepsza odpowiedź

Hii,
if you can hide for perticular user that 
Option 1: Remove “Budget” Access via User Settings

Go to SettingsUsers & CompaniesUsers.

Open the user who should not see the Budget button.

In the Access Rights tab:

  • Find the Accounting section.
  • Make sure Budgets is unchecked (or that the user is not in the group: Accounting / Budget Manager).

Save.

and if you can hide for all then 
Create a custom module structure
In your custom module, create this file:

my_module/static/src/js/hide_budget_button.js

/** @odoo-module **/


import { FinancialReport } from '@account_reports/components/financial_report/financial_report';

import { patch } from "@web/core/utils/patch";


patch(FinancialReport.prototype, {

    setup() {

        super.setup();


        // Filter out the Budget button

        if (this.reportButtons) {

            this.reportButtons = this.reportButtons.filter(

                (button) => button.name !== 'budget'

            );

        }

    },

});

and after that update manifest file 

'assets': {

    'web.assets_backend': [

        'my_module/static/src/js/hide_budget_button.js',

    ],

},

option 2:

If you don’t use budgets at all, you can uninstall the module:

  1. Go to Apps.
  2. Search for Budget Management (account_budget).
  3. Click the dropdown next to “Installed” → Uninstall.

i hope it is use full

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
388
2
cze 25
657
2
maj 25
826
1
sie 25
150
0
kwi 25
897