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

Salam everyone ,

I want to create automatically an order line of type section (display_type = line_section ) in first  at each creation of a purchase order 

Can anyone help please ?

Avatar
Discard
Best Answer

alaykom salam.

you can achieve this from automated actions 'on creation' and execute python code. The code is as below

record.update({'order_line':[(0,0,{'display_type': 'line_section','name': 'SECTION NAME',})]})

tho the section will only appear upon saving so you might need to find a way to sort it to the first place. cheers


Huzaifah,

Computs Sdn Bhd

Avatar
Discard