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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ?
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up