Sale Module - add more models in 'origin' drop down list

20 views
Skip to first unread message

Khurram Shahzad

unread,
Oct 6, 2016, 11:30:13 AM10/6/16
to try...@googlegroups.com
Dear Community,

We are creating sale objects from various other models like:
Appointment
ImagingTest
LabTest
etc.

But, while creating sale, I see only one item in "origin" list being "sale". How can I add above-mentioned models in the "origin" list of the "sale" module.

--
 
Regards,
Khurram.

Cédric Krier

unread,
Oct 7, 2016, 4:25:02 AM10/7/16
to try...@googlegroups.com
You must override the method Sale._get_origin to append to the result
the name of the other models.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages