atom-tryton-snippets
Atom.io : Github
An Atom Package -Shorthand snippets for Tryton ERP.
Add snippets for the Tryton software development to the Atom editor. Snippets are provided for Python and XML sources. All snippets start with prefix 'tryton_'.
Install :
apm install tryton-snippets
Help
You could use 'tryton_help' snippet to show all options (python and xml).
Python snippets:
- tryton_fields.Date: Tryton: fields.Date()
- tryton_fields.Function: Tryton: fields.Function()
- tryton_register: Tryton: register()
- tryton_fields.Time: Tryton: fields.Time()
- tryton_fields.Float: Tryton: fields.Float()
- tryton_config: Tryton: Trytond Config
- tryton_import_transaction: Tryton: Transaction classes import
- tryton_uniq_constraint_v4: Tryton: UNIQUE SQL Constraint
- tryton_fields.Timestamp: Tryton: fields.Timestamp()
- tryton_getter: Tryton: function multi fields getter
- tryton_fields.Boolean: Tryton: fields.Boolean()
- tryton_getter_company_config: Tryton: getter for company dependant field (property) in configuration singleton
- tryton_on_change_with: Tryton: function to compute functional field and value of field when others change value
- tryton_getter: Tryton: functional field instance getter
- tryton_fields.Binary: Tryton: fields.Binary()
- tryton_search: Tryton: search() reimplementation
- tryton_fields.Many2Many: Tryton: fields.Many2Many()
- utf8-header: UTF8 Header
- tryton_create: Tryton: create() reimplementation
- tryton_depends: Trycursorton: decorator for on_change/_with functions to specify which fields supply to the function in self object
- tryton_on_change_with: Tryton: function to compute value of field when others change value
- tryton_default: Tryton: default_fieldname() function
- tryton_setup: Tryton: setup()
- tryton_fields.Selection: Tryton: fields.Selection(): fixed list of options
- tryton_fields.One2One: Tryton: fields.One2One() main relation side
- tryton_cursor: Tryton: Cursor
- tryton_fields.Selection: Tryton: fields.Selection(): dynamic options
- tryton_states: Tryton: states fields attribute
- tryton_header: Tryton: modules file header
- tryton_fields.Integer: Tryton: fields.Integer()fieldname
- tryton_import_model: Tryton: model classes import
- tryton_fields.Char: Tryton: fields.Char()
- tryton_fields.Many2One: Tryton: fields.Many2One()
- tryton_raise_warning_class: Tryton: raise user warning class
- tryton_import_pyson: Tryton: Pyson classes import
- tryton_fields.One2Many: Tryton: fields.One2Many()
- tryton_class: Tryton: new model
- tryton_validate: Tryton: validate() classmethod validation
- tryton_import_wizard: Tryton: wizard classes import
- tryton_error_messages: Tryton: cls._error_messages extension
- tryton_fields.Numeric: Tryton: fields.Numeric()
- tryton_order: Tryton: _order attribute of Model
- tryton_inclass: Tryton: inherit model
- tryton_delete: Tryton: delete() reimplementation
- tryton_fields.Text: Tryton: fields.Text()
- tryton_setter: Tryton: functional field setter
- tryton_searcher: Tryton: functional field searcher
- tryton_validate: Tryton: validate() instance method validation
- tryton_getter: Tryton: functional field class getter
- tryton_fields.DateTime: Tryton: fields.DateTime()
- tryton_write: Tryton: write() reimplementation
- tryton_cursor_v4: Tryton: Cursor v4
- tryton_fields.Reference: Tryton: fields.Reference()
- tryton_get_rec_name: Tryton: getter for rec_name
- tryton_copy: Tryton: copy() reimplementation
- tryton_fields.BigInteger: Tryton: fields.BigInteger()
- tryton_context: Tryton: Context
- tryton_on_change: Tryton: function to compute values of fields when field change value
- tryton_setter_company_config: Tryton: setter for company dependant field (property) in configuration singleton
- tryton_raise_error: Tryton: raise user error
- tryton_company: Tryton: standard definition of company field
- tryton_sql_constraints: Tryton: cls._sql_constraints
- tryton_raise_warning_self: Tryton: raise user warning self
- tryton_imports: Tryton: common imports
XML snippets:
- tryton_view_form: Tryton: Form View
- tryton_record_list: Tryton: Record for List View
- tryton_record_inform: Tryton: Record for Inherited Form View
- tryton_header: Tryton: modules file header
- tryton_rfield: Tryton: Record Field Tag
- tryton_rfield: Tryton: Record Field Tag eval
- tryton_rfield: Tryton: Record Field Tag ref
- tryton_vfield: Tryton: View Field Tag with separator
- tryton_view_header: Tryton: views file header
- tryton_record_form: Tryton: Record for Form View
- tryton_record_button: Tryton: Record for button
- tryton_act_formview: Tryton: Action Window List View record
- tryton_view_tree: Tryton: Tree View
- tryton_completeview: Tryton: Complete view
- tryton_view_inform: Tryton: Inherited Form View
- tryton_vlabel: Tryton: View Label Tag
- tryton_help: Tryton: Help
- tryton_vfield: Tryton: View Field Tag
- tryton_vfield: Tryton: View Field Tag with label
- tryton_record_inlist: Tryton: Record for Inherited List View
- tryton_vfield: Tryton: View Field Tag for One2Many
- tryton_record_data: Tryton: Record for data
- tryton_record_tree: Tryton: Record for Tree View
- tryton_vbutton: Tryton: Button
- tryton_view_intree: Tryton: Inherited Tree View
- tryton_act_window: Tryton: Action Window record
Notes
Issues and Pull Requests are welcome.