On 26 Jul 00:55, Albert Cervera i Areny wrote:
> > So the plan is to remove all the company record rule/access right (it is
> > part of the customization/configuration) and use domains to enforce
> > company where it is needed (invoices on sale, account on moves, etc.)
> > So by default everyone will see every companies, restriction will be
> > part of the configuration.
> > And the company context will be used only for default value of company
> > field.
> 
> I'm not sure this is the desired behaviour nor consistent with how
> Tryton currently works. For example, to me it looks quite similar to
> the warehouse field in sales. There, the warehouse is only filled in
> automatically if the user has access to one warehouse only.
> 
> Well, maybe some users will desire this behaviour but I think it is an
> error-prone default.

I don't understand.

> > It will probably require to add some more 'company' fields, for example
> > on move. They will be needed on «main documents» and thanks to the
> > domain inversion and the validation, children lines will be filled
> > correctly and the integrity will be respected.
> >
> > The only tricky part that I see for this change, is the stock quantity
> > computation. But probably we could just add a filter for companies.
> 
> I agree the filter is the way to go.
> 
> I took a look at the patch and I see that by now you used user's
> default company. I really prefer the filter.

I keep the current behavior for cases that needs something.
If you have a better design please propose a patch.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpnrq23e93GM.pgp
Description: PGP signature

Reply via email to