#trytontips — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #trytontips, aggregated by home.social.
-
#TrytonTips Customize how to order on a field with a classmethod returning a list of SQL expression https://docs.tryton.org/projects/server/en/latest/ref/fields.html#ordering
-
#TrytonTips A factor can be applied when displaying a numeric field: https://docs.tryton.org/latest/server/topics/views/index.html#common-attributes-factor
-
#TrytonTips The client automatically hide the relation field in One2Many widget so no need of specific view definition
-
#TrytonTips On the export dialog you can retrieve a URL that can be used to fetch the CSV file. It can be used on a spreadsheet to always get fresh data.
-
#TrytonTips To activate the history on a ModelSQL just set _history = True https://docs.tryton.org/projects/server/en/latest/ref/models.html#trytond.model.ModelSQL._history
-
#TrytonTips currency field on sale, purchase and invoice becomes read-only once a line is added #UXP
-
#TrytonTips Want to hire someone to work on #Tryton, post an announce on https://discuss.tryton.org/tag/jobs
-
#TrytonTips trytond ensures XML records and database records are always in sync and immutable.
-
#TrytonTips Looking for a job with #Tryton, check out https://discuss.tryton.org/tag/jobs
-
#TrytonTips You can increase logging in the JavaScript console of the browser by executing: Sao.Logger.set_level(Sao.Logging.INFO)
-
#TrytonTips Display messages to users when they are filling in forms with the on_change_notify method https://docs.tryton.org/projects/server/en/latest/ref/models.html#trytond.model.Model.on_change_notify
-
#TrytonTips Run production server with optimized bytecode to skip the assert https://docs.python.org/2/using/cmdline.html#cmdoption-O
-
#TrytonTips Records can be ordered using dotted notation, example: [('party.code', 'DESC')]
-
#TrytonTips Developing a module outside trytond sources, you can run the test with: $ python -m unittest discover -s trytond.modules.my_module.tests
-
#TrytonTips You can use any Model for the menu and even write a wizard to switch to specialized menu
-
#TrytonTips Use widget many2many on One2Many & vice versa. many2many replaces create/delete by add/remove, one2many can have both with add_remove
-
#TrytonTips There is an option in client that makes it save the expanded state of any tree view
-
#TrytonTips When defining a list/tree view make non-essential columns optional so users can choose whether to display them
-
#TrytonTips You can re-use the same XML file to inherit multiple views (since 2.6)
-
#TrytonTips Install unaccent function on your database to get search performed without accent
-
#TrytonTips A factor can be applied when displaying a numeric field: https://docs.tryton.org/latest/server/topics/views/index.html#common-attributes-factor
-
#TrytonTips Run production server with optimized bytecode to skip the assert https://docs.python.org/2/using/cmdline.html#cmdoption-O
-
#TrytonTips Define a view by inheriting from an other model, useful for model sharing the same definition https://docs.tryton.org/latest/server/topics/views/index.html#views
-
#TrytonTips Don't care about the number of ids when browsing, the LRU cache will keep memory usage low
-
#TrytonTips Use widget many2many on One2Many & vice versa. many2many replaces create/delete by add/remove, one2many can have both with add_remove
-
#TrytonTips Run production server with optimized bytecode to skip the assert https://docs.python.org/2/using/cmdline.html#cmdoption-O
-
#TrytonTips Consolidate accounting for multiple companies with the account consolidation module https://docs.tryton.org/projects/modules-account-consolidation/en/latest/
-
#TrytonTips You can define icons used by the client in your module on the server side
-
#TrytonTips To activate the history on a ModelSQL just set _history = True https://docs.tryton.org/projects/server/en/latest/ref/models.html#trytond.model.ModelSQL._history
-
#TrytonTips Thanks to the workflow engine when un-reconcile lines, invoices go back to state open
-
#TrytonTips Create a plugin for client, just drop the module in the directory and define a method get_plugins returning the methods
-
#TrytonTips Create a test database out of a scenario in $HOME/db: $ TRYTOND_CONFIG= DB_NAME=test python -m doctest -f path/to/scenario.rst