johnrajbd / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

Improve: partnergroup can have an address #262

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If a partenrgroup is a partner itself, it can have an address

topics:
- functions to find partnergroup etc
- relations between partners
- show relationships reverse (is this possible in django??)
- is a complex topic

Original issue reported on code.google.com by hjebb...@gmail.com on 20 Dec 2013 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 27 Dec 2013 at 5:45

GoogleCodeExporter commented 8 years ago
this is pretty complicated.
this should represent the complex relations between eg shops, delivery places, 
headquarters, buying organisations etc.
complex lookups are needed (give the the invoice address for a crossdock 
delivery).

idea is very nice, but have to have a good 'model' for this

Original comment by hjebb...@gmail.com on 3 Jan 2014 at 6:33

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 3 Jan 2014 at 6:36

GoogleCodeExporter commented 8 years ago
- show relationships reverse (is this possible in django??)
yes for sure, a model with a foreign or manytomany field could be reversed with 
a query from foreign model.
if a model B have a foreign field to model A, you could query model B from 
model A.
If several ids in model B are related to a same id to model A, you could know 
all model B ids from model A id.

For partners we could add a manytomany field related to itself.

Original comment by lucky...@gmail.com on 14 Apr 2015 at 7:56