Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
8736 Tampilan

How can I configure a partner receivable account depending on the company in a multi-company environment

context: base with account module 2 companies, 'Main' ,and 'Secondary', (secondary being a child of Main) an account chart for each company user admin with access to both companies

I want my partner 'Test', to have the account 4001 for account receivable in company Main, and the account 4012 in company Secondary

process: i log in as admin with company Main, assign account receivable 4001 in partner Test, then save.

change company to Secondary, assign account receivable 4012 in partner Test, then save.

then go back to company Main partner Test, now the account receivable is not 4001, it will be NULL or the default value.

if I check the configuration parameters during the process and filter property_account_receivable, I can see that the register 4001 Main is replaced by 4012 Secondary.

What I am doing wrong, why is the ir_property being replaced?

I tried this on latest v7 on runbot and local server.

Avatar
Buang
Jawaban Terbai

I too had a same problem with multi-company.

What I had done is I created records of ir.property in Configuration Parameter for each Company.

For example I have Company AB (Parent) and Company A (Child), then I will create ir.property record for both Companies.

This will solve your problem.

Avatar
Buang
Jawaban Terbai

Odoo uses the ir.property mechanism to store company-dependent default values for fields like property_account_receivable_id.

Follow these steps:

  1. Go to Accounting > Configuration > Customers > Customers
  2. Open the Customer (Partner) you want to configure
  3. Under the Accounting tab, locate the Receivable Account
  4. Select a company-specific account (you can only pick from accounts in that company)
  5. Save

Now this Receivable Account will apply only for that company. Odoo stores it in ir.property with the related company ID.

Avatar
Buang

This is only for Odoo versions prior to Odoo 18.0, where moving forward this mechanism is lon longer user. You would switch between each Company to select and save the account you need, but all accounts are stored now together in a special json field.

Penulis Jawaban Terbai

https://bugs.launchpad.net/openobject-server/+bug/712254 launchpad bug link it seems to only affect admin user

there is already a fix committed for this issue

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jan 25
1086
2
Agu 24
1481
1
Jun 23
4640
4
Des 24
13391
5
Jul 18
6599