home.social

#trytontips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #trytontips, aggregated by home.social.

  1. Customize how to order on a field with a classmethod returning a list of SQL expression docs.tryton.org/projects/serve

  2. The client automatically hide the relation field in One2Many widget so no need of specific view definition

  3. 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.

  4. currency field on sale, purchase and invoice becomes read-only once a line is added

  5. Want to hire someone to work on , post an announce on discuss.tryton.org/tag/jobs

  6. trytond ensures XML records and database records are always in sync and immutable.

  7. You can increase logging in the JavaScript console of the browser by executing: Sao.Logger.set_level(Sao.Logging.INFO)

  8. Display messages to users when they are filling in forms with the on_change_notify method docs.tryton.org/projects/serve

  9. Run production server with optimized bytecode to skip the assert docs.python.org/2/using/cmdlin

  10. Records can be ordered using dotted notation, example: [('party.code', 'DESC')]

  11. Developing a module outside trytond sources, you can run the test with: $ python -m unittest discover -s trytond.modules.my_module.tests

  12. You can use any Model for the menu and even write a wizard to switch to specialized menu

  13. Use widget many2many on One2Many & vice versa. many2many replaces create/delete by add/remove, one2many can have both with add_remove

  14. There is an option in client that makes it save the expanded state of any tree view

  15. When defining a list/tree view make non-essential columns optional so users can choose whether to display them

  16. You can re-use the same XML file to inherit multiple views (since 2.6)

  17. Install unaccent function on your database to get search performed without accent

  18. Run production server with optimized bytecode to skip the assert docs.python.org/2/using/cmdlin

  19. Define a view by inheriting from an other model, useful for model sharing the same definition docs.tryton.org/latest/server/

  20. Don't care about the number of ids when browsing, the LRU cache will keep memory usage low

  21. Use widget many2many on One2Many & vice versa. many2many replaces create/delete by add/remove, one2many can have both with add_remove

  22. Run production server with optimized bytecode to skip the assert docs.python.org/2/using/cmdlin

  23. Consolidate accounting for multiple companies with the account consolidation module docs.tryton.org/projects/modul

  24. You can define icons used by the client in your module on the server side

  25. Thanks to the workflow engine when un-reconcile lines, invoices go back to state open

  26. Create a plugin for client, just drop the module in the directory and define a method get_plugins returning the methods

  27. Create a test database out of a scenario in $HOME/db: $ TRYTOND_CONFIG= DB_NAME=test python -m doctest -f path/to/scenario.rst