跳至內容
選單
此問題已被標幟
890 瀏覽次數

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))



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
6443
1
3月 25
30
0
3月 25
744
3
9月 24
3914
1
8月 24
467