On 2017-01-24 08:40, Khurram Shahzad wrote:
> > > I just want to have a grid which has copy (in-memory copy) of
> > > patient-medication records (already in db) so that user can set the
> > > qty_to_order and submit it. Against this submission, at back-end an
> > > internal shipment request will be submitted to the Warehouse.
> >
> > Then you must use a different target for the One2Many and define a
> > default value method for this field which must return a list of
> > dictionary values.
> >
> >
> I am sorry, I could not understand! If I use a model different than
> 'gnuhealth.inpatient.medication', how can I read values from db stored in
> 'gnuhealth_inpatient_medication' table?

Using the ORM.

> Similarly, I think I will lose
> 'add_remove' feature which allow easy selection from already prescribed
> inpatient medication.

Yes, you can not have both: using the 'gnuhealth_inpatient_medication'
for relation and not store on it.

But for me, it is still unclear what is exactly the process/work-flow.
And more over what are those models, what should they represent etc.
So I can not help you more than just telling how database schema will
behave.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20170124094029.GD68908%40tetsuo.

Reply via email to