コンテンツへスキップ
メニュー
この質問にフラグが付けられました

I'm trying to add account payable and receivable fields for a partner in Odoo via API. However, they are only being applied to the default company. I hope the following images clarify.

  1. How it appears for our default company :


        https://i.stack.imgur.com/60Lk5.png


  1. How it appears for the other company :


    https://i.stack.imgur.com/cvcQl.png


I'm creating a partner as follows :

user_id = models.execute_kw(db, uid, password, 'res.partner', 'create', [{'name': name,'email':email,'company_id': odoo_company_id,'property_account_payable_id':account_payable_id,'property_account_receivable_id':account_receivables_id,'property_product_pricelist':pricelist_id}])

Any idea how this can be done ? Thanks in advance.

アバター
破棄
関連投稿 返信 ビュー 活動
2
2月 23
6268
1
11月 22
3998
2
2月 16
14318
2
10月 24
1451
1
12月 23
20578