Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
881 Zobrazení

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



Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 25
6425
1
bře 25
30
0
bře 25
741
3
zář 24
3911
1
srp 24
467