Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
8625 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar

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.

Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 25
1018
2
ago 24
1390
1
jun 23
4544
4
dic 24
13255
5
jul 18
6493