Skip to Content
Menu
This question has been flagged
1365 Rodiniai

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



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
bal. 25
7888
1
kov. 25
30
0
kov. 25
1198
3
rugs. 24
6147
1
rugp. 24
467