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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to try...@googlegroups.com
You must override the method Sale._get_origin to append to the result
the name of the other models.