Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
117 Lượt xem

Hey Everyone! 

I'm working in a multi-company environment where i have a bespoke global chart of accounts.  I want to update the default receivables/payables accounts for my companies.  When i go into a customer, i see that the default account originally applied based on the localisation is showing up but i have deprecated the accounts and want to use my global receivables account.  How can i do that?  I've look it settings, accounting and accounting configuration and I can't seem to find how to do this.  


Please let me know!  

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The configuration you're looking for can be found in the User-defined Defaults. To modify these entries you will first need to enable the Developer mode (https://www.odoo.com/documentation/18.0/applications/general/developer_mode.html) and then navigate to Settings -> Technical --> Actions -> User-defined Defaults.

In here you will find records that pre-define the values (Default Value (JSON format)) of certain fields in Odoo - two of these fields happens to be Account Receivable (Contact) and Account Payable (Contact). You may find multiple records for these field in a multi-company setup, so ensure you modify the ones relevant to you (or create additional records for specific companies if needed). 

Now, since this is a generic view, you can not simply select the record you want for Default Value (JSON format). Instead, you need to find the ID (not the (numeric) Code!) of the Account you want to have assigned to new Customers by default. To do so, open the form view of that Account (i.e. Accounting (or Invoicing) -> Configuration --> Accounting -> Chart of Accounts and click the View link at the relevant line. Your browser will redirect you to a page similar to this: https://your-odoo-domain.odoo.com/odoo/action-266/241. Here, the last numeric value, 241 in this example, is what you want to set as a Default Value (JSON format) to the User-defined Defaults record.



Note: Already existing Customers need to be modified manually (or by doing an update-import).

Ảnh đại diện
Huỷ bỏ
Tác giả

Superstar! Thanks so much Christoph. This is really helpful. I assume that for each of my 4 companies, I will have to do this same exercise correct? If i delete the company from Accounts receivable (contact) and assign the id as you note, will it apply to all companies?

Thanks again! I was starting to get apoplectic about this ;-)

Correct, User-defined Defaults can be set as a global configuration (no Company and no User selected), as a Company-specific default (when you just set the Company), or even as a User-specific default (by setting that field).

Tác giả

Awesome! Thanks so much. Totally saved my evening!