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

1-add Many2one field and select account



2- add Automations and python code 


for lne in record.move_id.line_ids:

    if lne.account_id.id != record.payment_method_line_id.payment_account_id.id:

        env.cr.execute("""UPDATE account_move_line SET account_id="""+str(record.x_studio_destination_account.id)+""" WHERE id="""+str(lne.id))



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
5637
1
มี.ค. 25
30
0
มี.ค. 25
475
3
ก.ย. 24
3544
Birthday automated email in Odoo 17 แก้ไขแล้ว
1
ส.ค. 24
467