Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 23
6256
1
พ.ย. 22
3996
2
ก.พ. 16
14309
2
ต.ค. 24
1445
1
ธ.ค. 23
20562