İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
8752 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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.

Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 25
1105
2
Ağu 24
1494
1
Haz 23
4659
4
Ara 24
13422
5
Tem 18
6620