Buttons support these attributes:
- string is the button text label or the HTML alt text when an icon is used.
- type is the type of the action to perform. Possible values are as follows:
- object is used for calling a Python method.
- action is used to run a Window Action.
- name identifies the specific action to perform, according to the chosen type: either a model method name or the database ID of a Window Action to run. The %(xmlid)d formula can be used to translate the XML ID into the required database ID when the view is being loaded.
- args is used when the type is object to pass additional parameters to the method, which must be purely static JSON parameters appended to the record ID to form the arguments of the method call.
- context adds values to the context, which can have an effect after the windows Action is run or the Python...