On 2017-01-29 05:09, Khurram Shahzad wrote:
> 
> 
> On Sunday, January 29, 2017 at 3:35:08 AM UTC+5, Cédric Krier wrote:
> >
> > On 2017-01-27 08:32, Khurram Shahzad wrote: 
> > > Dear All, 
> > > 
> > > I am trying to add a record rule to user for restricting him to see one 
> > > stock location only. The rule is: 
> > > 
> > > [["location.id","=",2]] 
> >
> > It is not clear on what is the rule applied. 
> > Could you give more information? 
> >
> 
> I have created stock locations for every Ward in the hospital. The Stock 
> Manager of the ward will save an internal shipment for the medicine 
> required in the ward. Then, the Warehouse Manger will issue the medicine. 
> Now, while creating Internal Shipment, I want the Stock Manager of ward 
> should not be able to set the 'To' location other than the location created 
> for his ward.
> 
> To implement this, since I know the ID (that in database is 2) of the Stock 
> Location of ward, I decided to create a Record Rule on Stock Location model 
> which is failing.

This does not describe clearly the rule created.

-- 
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/20170129211414.GF93815%40tetsuo.

Reply via email to