Viewing posts for the category Python
So after being told on IRC that you can use (i)python and proteus to poke around a running tryton instance(thanks for that hint btw) I tried it and had some "fun" right away:
from proteus import config,Model pcfg = config.set_trytond(database='trytond', config_file='/etc/tryon/trytond.conf')
gave me this:
So I've finally got around to really start Tryton module dev to customize it to what we need.
So I have a Django DurationField in my model, and needed to format this as HH:mm .. unfortunately django doesn't seem to support that out of the box.. after considering templatetags or writing my own filter I decided to go for a very simple alternative and just defined a method for this in my model:
Since I wanted to make an inventory app (that i will likely post the source of - as FOSS of course - at some point when I am done) I wanted to have a model for languages with their ISO 639-1 code.
A little follow-up to my post about setting up tryton on Gentoo: