i did not choose to do such thing, i did what i saw and what i understood and what i succeed in doing something working.
the documentation here https://downloads-cdn.tryton.org/TUB2013/proteus.pdf is for 10 yo kids - and here Tryton Scripting Client — proteus 6.0 documentation can not be called documentation but… P.O.S - the .clik() is documented nowhere and there is nothing else.
and icing the cake https://hg.tryton.org/tryton-tools/file/tip/tryton_demo.py is 404 (and does not exist on waybackmachine) and of course i did not find anywhere a line of code explaining to get a valid piece of code working.
when i said that it would be a good idea to have some “snippets” of working code, here, https://discuss.tryton.org/t/documentation-for-developers-once-again i was told : read the code.
you, developers, think that things are evidence but they are not. friends of my friend-client choose dolibarr to develop the same thing… it is a shame because dolibarr is much more verbose to do the same things… but i swear that i have the impression that tryton’s developers would be more happy if i have chosen another framework and that they could continue there day-to-day life. They could release the 7.x new version without ******* question.
here https://downloads-cdn.tryton.org/TUB2013/proteus.pdf you must guess what is config.context (a simple line explicating seems not to be an option) and of course in that “documentation”
config = config.set_trytond(config_file=’foo.cfg’,
... user=’admin’, password=’admin’)
is not a valid working code, else things would be too easy
there is nowhere a piece of code complete and working as is_
here Tryton Scripting Client — proteus 6.8 documentation, if you have a local posgres F*ck Off -
here is Importing data on Tryton using proteus - Tryton Academy is just give me 325 € to have some hints
i can register a new party here :
Party = Model.get('party.party')
party = Party()
party.id < 0
*True*
*Fill the fields:*
party.name = 'ham'
*Save the instance into the server:*
party.save()
party.name
*'ham'*
no fucking .click() in the tryton6.8 documentation
would it be so hard to have a simple page with
- creating a client
- creating an address
- creating a sale
- validating it with the invoice and shipment
- paying the invoice
- validating the shipment
this walk-through would cover almost all cases and would permit to someone who would like to work to have some hook to start, diving into the code for more precise thing.
tryton is really a good piece of framework but you must loose days because there is not a simple paragraphs explaining simple operations. and i do think it is a no-go for lots of people. Of course documentation is the more annoying things to do, and when someone says it would be a good idea to dive into doing it, someone tells him that it is better to read the code.
If he stays with tryton (and i guess that many runs away), he keeps what he finds for him. and those 6 steps above are still no addressed 15 years after the first release.
I have lots of idea, i understood that i must keep them for me and not annoying people with them. so i decided to implement them on my own for my client-friend and no bother others with them. and i am really sure that some, installs (if they succeed) tryton, tries, sees how difficult is just to find how and where to register a french or european VAT code for the company or the company’s customers, they fly away. but it would be so simple to name the identifiers with country - name of the identifier (it is not a suggestion, nor something to push into tryton, i do not care : i will change the translation for my friend-client for him to find easily the identifiers type he is looking for.) i am pretty sure that developers do not use this because it is a pain in the ass to find something and any normal human being would have change that 3 times after being forced to use it.
so i guess it would be better to use .click() but there is nowhere in the internet a place where you can find how it is working and how it should be done. and, like with odoo, it seems that keeping things complicated is a way of earning a living for some people. And lots of operations par more complicated that just click() and you are suppose to guess by luck and retries.
i read here openerp2tryton: log not a fucking line of comments to explain what is doing what and where and how.
i will continue to test, dive, find… and i am really sure i did the good choice, but i would not recommend to others.