Skip to Content
Menu
This question has been flagged
1 Reply
2156 Views

I would like to link all my related payments and show them directly on the invoice journal they are related to.

Avatar
Discard
Author Best Answer

1) Create a many2one field of type journal entries (x_studio_XXXX) on the payment model ... have this field pick up the value of the originating invoice (using a context action on the register payment button)

Context action:

 

    {'default_x_studio_field_HDY5N': id}

 

2) On the invoice model, create a one2many field using the custom field you created in step 1 

Video demo:

https://drive.google.com/file/d/17cMoNroiyxuqUKVe20CDSWcFpYGvJ0_g/view

Avatar
Discard