On 07 Dec 05:32, Simon Klemenc wrote: > hi there, > > Is there a way in trytond to disable the ability to create a new record?
Yes if you remove to the user the access right to "create" [1] > for example i want to allow the creation of invoices from sales but not > directly from the invoice-list... > can i disable the button completely (with a domain?) or only raise an error > on validation? > or, has this changed with the fact that access rights are checked only on > rpc-calls in 3.4? It don't think it is realy a good idea. Maybe what you want is something similar to what we implemented on shipment which is that you can not ship out/in products if it doesn't have an origin set. And indeed it is a warning because you can not know that you will never have to create invoice with origin. For example, to correct a mistake or make a credit note etc. [1] http://doc.tryton.org/3.4/trytond/doc/topics/access_rights.html#topics-access-rights -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpGq2SeRvd5O.pgp
Description: PGP signature
