Skip to Content
Menu
This question has been flagged
3 Replies
8626 Views

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard

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.

Author Best Answer

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
Discard
Related Posts Replies Views Activity
0
Jan 25
1020
2
Aug 24
1391
1
Jun 23
4546
4
Dec 24
13257
5
Jul 18
6497