On 2017-03-21 14:17, Sergi Almacellas Abellana wrote:
> El 21/03/17 a les 13:54, Khurram Shahzad ha escrit:
> > should define these rules in the xml files?
> I normally define the button rules on the xml on the same module where the
> button is added and don't modify them on the user interface.

Creating button from the UI is disabled because there is a unique
constraint on it and we do not want to have module installation failing
because user has created duplicated button.
But maybe we should have a test to ensure that all buttons a registered
in ir.model.button?

-- 
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/20170321133704.GB43953%40tetsuo.

Reply via email to