IRC logs of #tryton for Thursday, 2012-05-24

chat.freenode.net #tryton log beginning Thu May 24 00:00:02 CEST 2012
2012-05-24 10:42 <Luminos741> Hi everybody
2012-05-24 10:42 <Luminos741> I'm looking for a way to create a database using Proteus
2012-05-24 10:45 <cedk> Luminos741: just connect to it
2012-05-24 10:46 <Luminos741> Even using xmlrpc ?
2012-05-24 10:50 <cedk> Luminos741: I guess you could with: config.get_proxy('', 'common').create(<dbname>, <password>, <lang>, <admin_password>)
2012-05-24 10:51 <Luminos741> cedk: Thank you, I'm trying it
2012-05-24 10:51 <Luminos741> Is lang something like fr-FR ?
2012-05-24 10:52 <cedk> Luminos741: yes fr_FR
2012-05-24 10:53 <Luminos741> I get "'module' object has no attribute 'get_proxy'"
2012-05-24 10:54 <Luminos741> I think I missed something
2012-05-24 10:56 <Luminos741> cedk: In get_proxy, the empty quotes are supposed to be empty ?
2012-05-24 10:56 <cedk> Luminos741: you must use the set_xmlrpc instance
2012-05-24 10:57 <Luminos741> Ok I see
2012-05-24 10:57 <Luminos741> I get an exception
2012-05-24 10:58 <Luminos741> My bad, I made a mistake on the password :) Thank you cedk
2012-05-24 11:04 <Luminos741> I need help... Again
2012-05-24 11:04 <Luminos741> In proteus' doc, I found :
2012-05-24 11:04 <Luminos741> >>> Module = Model.get('ir.module.module')
2012-05-24 11:04 <Luminos741> >>> (party,) = Module.find([('name', '=', 'party')])
2012-05-24 11:04 <Luminos741> >>> Module.button_install([party.id], config.context)
2012-05-24 11:04 <Luminos741> >>> Wizard('ir.module.module.install_upgrade').execute('start')
2012-05-24 11:05 <Luminos741> I'm trying to install the sale module in my Tryton 2.4.
2012-05-24 11:06 <Luminos741> Python says : "AttributeError: type object 'ir.module.module' has no attribute 'button_install''"
2012-05-24 11:12 <cedk> Luminos741: it is a bug in the documentation
2012-05-24 11:13 <cedk> Luminos741: since 2.4, it is not button_install but just install
2012-05-24 11:13 <Luminos741> cedk: Ok
2012-05-24 11:13 <cedk> Luminos741: http://hg.tryton.org/proteus/rev/04dbba05d439
2012-05-24 11:16 <Luminos741> cedk: Same kind of error... "AttributeError: type object 'ir.module.module' has no attribute 'install'"
2012-05-24 11:18 <nicoe> Luminos741: the name of the method has changed it is 'install' now
2012-05-24 11:18 <cedk> ACTION the mercurial server runs faster now
2012-05-24 11:19 <Luminos741> So I should type "Module.install([party.id], config.context)" no ? That is what I did
2012-05-24 11:20 <nicoe> Luminos741: yes
2012-05-24 11:20 <Luminos741> When I try this, I get the "AttributeError : type object..."
2012-05-24 11:21 <nicoe> which version are you using ?
2012-05-24 11:21 <Luminos741> I'm using 2.4
2012-05-24 11:26 <sisalp> hello,
2012-05-24 11:27 <sisalp> is there a ged in tryton ?
2012-05-24 11:27 <sisalp> ged = document management system
2012-05-24 11:28 <cedk> sisalp: there is webdav
2012-05-24 11:28 <sisalp> ok thank you
2012-05-24 11:29 <sisalp> and caldav ?
2012-05-24 11:31 <cedk> sisalp: it is for calendar
2012-05-24 11:31 <sisalp> can I share a calendar with thunderbird ?
2012-05-24 11:32 <cedk> sisalp: no thunderbird doesn't share calendar, Tryton can share calendar
2012-05-24 11:33 <sisalp> are you sure about thunderbird ?
2012-05-24 11:34 <cedk> sisalp: thunderbird is a client not a server
2012-05-24 11:35 <sisalp> thunderbird can read/write in tryton calendar ?
2012-05-24 11:36 <cedk> sisalp: yes
2012-05-24 11:36 <sisalp> thank you
2012-05-24 11:40 <sisalp> does tryton receive mails from parties in some functions
2012-05-24 11:40 <sisalp> ?
2012-05-24 11:44 <Luminos741> Is this code ok :
2012-05-24 11:45 <Luminos741> Module = Model.get('ir.module.module')
2012-05-24 11:45 <Luminos741> (party,) = Module.find([('name', '=', 'sale')])
2012-05-24 11:45 <Luminos741> Module.install([party.id], config.context)
2012-05-24 11:45 <Luminos741> Wizard('ir.module.module.install_upgrade').execute('start')
2012-05-24 11:45 <Luminos741> ?
2012-05-24 11:46 <cedk> Luminos741: please read: http://hg.tryton.org/proteus/file/04dbba05d439/README#l27
2012-05-24 11:47 <cedk> sisalp: what do you mean?
2012-05-24 11:50 <sisalp> as openerp does with fetchmail in crm
2012-05-24 11:51 <cedk> sisalp: no
2012-05-24 11:51 <sisalp> ok
2012-05-24 11:53 <Luminos741> cedk: Doesn't work for me...
2012-05-24 11:53 <grasbauer> sisalp: but you can write a small module for receiving mails - getting mails from a imap_account and generating request in tryton via cron
2012-05-24 12:36 <grasbauer> cedk: ping
2012-05-24 12:37 <grasbauer> bechamel: ping
2012-05-24 12:45 <bechamel> grasbauer: pong
2012-05-24 12:47 <grasbauer> bechamel: do you know why in the setup.nsi-scripts the deinstallation of the former trytonclient is required? Because it would be more comfortable if runnung the setup simply deletes the files in the old client and replace them with the new ones
2012-05-24 12:48 <cedk> grasbauer: to correctly clean stuffs
2012-05-24 12:50 <grasbauer> cedk: yes - but i think the script itself can do this. It not than important - but it would simplify the rollout of a new version
2012-05-24 12:56 <cedk> grasbauer: I don't think NSIS have such option
2012-05-24 12:57 <grasbauer> cedk: simply running the uninstall section in case there is already a client installed?
2012-05-24 12:58 <grasbauer> cedk: I will give it a try
2012-05-24 12:58 <cedk> grasbauer: this is wrong because it is the uninstall of the previously installed that must be run, not the new one
2012-05-24 13:00 <grasbauer> cedk: that's true ;) - little hicks in the brain ...
2012-05-24 15:35 -!- SISalp1(~dominique@annecy.sisalp.net) has left #tryton
2012-05-24 17:01 <jcavallo> Hi all, I got a '<ProtocolError for localhost:8000/Test: 500 Internal Server Error>' without any log in the console, any idea where I might start my investigation ? Thanks
2012-05-24 17:03 <bechamel> jcavallo: the error appears in a gtk popup ?
2012-05-24 17:03 <jcavallo> bechamel : yes
2012-05-24 17:04 <grasbauer> jcavallo: wich action?
2012-05-24 17:04 <grasbauer> jcavallo: opening a report?
2012-05-24 17:04 <jcavallo> grasbauer : I try to click on a 'New' button on a One2Many field
2012-05-24 17:07 <bechamel> jcavallo: do you start the server with -v to see the errors on the console ?
2012-05-24 17:08 <jcavallo> bechamel : don't think so, but I already saw errors in the console. I'll try it now
2012-05-24 17:10 <jcavallo> bechamel : tried it, only thing I got is an 'INFO:rpc.request:model.ins_process.step_desc.fields_view_get'
2012-05-24 17:16 <jcavallo> bechamel : Find it. I added a 'required' attribute besides a 'states' attribute, and obviously i did not like it
2012-05-24 17:19 <bechamel> jcavallo: ok
2012-05-24 17:20 <jcavallo> bechamel : for future use, when does the 'Protocol Error' trigger ? Thank you for your help btw
2012-05-24 17:22 <bechamel> jcavallo: I think it should never appears, it's strange
2012-05-24 17:24 <jcavallo> bechamel : That's not the first time I saw it even though I do not remember what were the previous causes.
2012-05-24 17:25 <nicoe> jcavallo, bechamel: it appears when there is a problem marshalling the data (ie trying to json a browse record) and the error thus not catched by the framework
2012-05-24 17:27 <bechamel> nicoe: ok, maybe we should add a try..except around marshalling and re-raise with a better message
2012-05-24 17:50 <lukio> hi,
2012-05-24 17:55 <lukio> I try to add a new button in my example module. But when i click on it, throw me these error "Calling method cancel on model presupuesto.presupuesto is not allowed!"
2012-05-24 17:56 <lukio> You can see my examples modules in paste bin: http://pastebin.com/WjThv77y and http://pastebin.com/rVsTNFKc
2012-05-24 17:56 <lukio> any idea? thanks!
2012-05-24 18:07 <nicoe> lukio: The workflow decorator is useless
2012-05-24 18:07 <nicoe> lukio: does it work when you remove it?
2012-05-24 18:27 -!- navis(~user@91.180.101.11) has left #tryton
2012-05-24 19:19 -!- andreasgrab(~andreas@212-183-86-2.adsl.highway.telekom.at) has left #tryton
2012-05-24 19:59 -!- Telesight(~anthony@s53776a08.adsl.wanadoo.nl) has left #tryton
2012-05-24 20:07 <grasbauer> Huii, why in 2.4 invoices of sale.invoice_mthod='shipment' are splittet? I think it wasn't like this in 2.2
2012-05-24 21:32 <lukio> nicoe i remove the lines, but already happen
2012-05-24 21:32 <lukio> :(
2012-05-24 21:33 <grasbauer> lukio: I don't follow all your questions - but you have a 500 without error_log?
2012-05-24 21:34 <grasbauer> lukio: no - that was a problem of an other
2012-05-24 21:39 <lukio> grasbauer: lukio: I try to add a new button in my example module. But when i click on it, throw me these error "Calling method cancel on model presupuesto.presupuesto is not allowed!"
2012-05-24 21:39 <lukio> lukio: You can see my examples modules in paste bin: http://pastebin.com/WjThv77y and http://pastebin.com/rVsTNFKc
2012-05-24 21:39 <lukio> thanks
2012-05-24 21:39 <grasbauer> lukio: should Presupuesto(ModelSQL, ModelView): not be Presupuesto(Workflow,ModelSQL, ModelView):
2012-05-24 21:44 <lukio> now i have Presupuesto(Workflow,ModelSQL, ModelView): and keep throwing the error
2012-05-24 21:46 <grasbauer> lukio: you have closed the view of the modle and reloaded the modul?
2012-05-24 21:46 <grasbauer> model
2012-05-24 21:48 <lukio> yes, i close the view, and a I reloaded the server
2012-05-24 21:54 <grasbauer> lukio: I don't know if it is the reason- but there is are no transitions defined
2012-05-24 22:09 <grasbauer> cedk: ping
2012-05-24 22:09 <cedk> grasbauer: pong
2012-05-24 22:11 <grasbauer> cedk: I' m still thinking about a general question. Case: a Sale with services and goods - if the sale has invoice_method=='shipement' - 2 Invoices are generated. 1 for the services and one if the goods are delivered
2012-05-24 22:12 <grasbauer> cedk: my customer ask me, why it works like this - he wont the services billed, if the first shipment leaves the warehouse
2012-05-24 22:13 <cedk> grasbauer: because service has no invoice_method
2012-05-24 22:13 <grasbauer> cedk: he says: if I choose "invoice on shipment" - I mean invoice on shipment
2012-05-24 22:14 <cedk> grasbauer: service are not shipt
2012-05-24 22:15 <grasbauer> cedk: Yes - but the user understands the field like "everything is invoiced if I send the goods"
2012-05-24 22:15 <cedk> grasbauer: he understand wrong
2012-05-24 22:15 <cedk> grasbauer: what if there is 2 shipments?
2012-05-24 22:16 <grasbauer> cedk: He wonts the services invoiced, if first shipment goes out
2012-05-24 22:16 <cedk> grasbauer: until there is no tracking of the service being done, you can not delay the invoicing of it
2012-05-24 22:17 <grasbauer> cedk: what do you mean with tracking if service is done - having a open invoice?
2012-05-24 22:18 <cedk> grasbauer: when do you know the service is delivered to the customer?
2012-05-24 22:20 <grasbauer> cedk: Never - because there is no indicator for this (we have a custom modul which generates project.work automaticly from such sale)
2012-05-24 22:20 <cedk> grasbauer: so you could track that the work is done for example
2012-05-24 22:21 <grasbauer> cedk: Yes - I'm thinking about a customization, but first I wanted to talk about the general design of the core
2012-05-24 22:22 <grasbauer> cedk: So you mean that the expectations of my client are wrong?
2012-05-24 22:24 <grasbauer> cedk: "Invoice on shipment means everything is billed if I do a shipment"
2012-05-24 22:27 <grasbauer> cedk: finally it is a bit confusing, because the invoice of the goods needs a action after processing the sale - only services are invoiced without an action
2012-05-24 22:28 <grasbauer> cedk: I go to think about a custom solution ;) - because I think that cannot be handled by the generic modules
2012-05-24 22:43 <cedk> grasbauer: I think an invoice method for service could be implemented but it will require some thoughts about it
2012-05-24 22:44 <grasbauer> cedk: the invoice_method is on sale - so its a global for all sale.lines
2012-05-24 22:45 <cedk> grasbauer: yes
2012-05-24 22:46 <grasbauer> cedk: something like "goods on shipment/services on first shipment"
2012-05-24 22:47 <lukio> cedk: can i call a form when i click a button ?
2012-05-24 22:48 <cedk> grasbauer: for example but we should first collect all common cases
2012-05-24 22:48 <grasbauer> cedk: yes
2012-05-24 22:48 <cedk> lukio: you mean open a new tab?
2012-05-24 22:48 <lukio> i would like to call a form, when i click the cancel button on sales, so the operator can add a comment why is he cancel the sale order.
2012-05-24 22:48 <cedk> lukio: ok you must use a wizard
2012-05-24 22:49 <cedk> lukio: and put the wizard action on the button
2012-05-24 22:49 <cedk> grasbauer: perhaps an email on tryton@ will bring more informations
2012-05-24 22:50 <cedk> lukio: you can look at the shipments as example
2012-05-24 22:50 <lukio> so. i define a type = action and put the name of my wizard in the xml button ?
2012-05-24 22:50 <cedk> lukio: yeps
2012-05-24 22:51 <cedk> lukio: http://hg.tryton.org/modules/stock/file/49823d8bd5f8/shipment.xml#l170
2012-05-24 22:51 <cedk> lukio: I want to refactor this for the next version and merge action button with object button
2012-05-24 22:52 <cedk> that will simplify
2012-05-24 22:52 <grasbauer> cedk: but horrify my next update ;)
2012-05-24 22:52 <lukio> cedk: ok. great. thanks for the help/
2012-05-24 23:00 <grasbauer> cedk: but a lot of things are better now - if nobody told it yet
2012-05-24 23:21 <grasbauer> cedk: last question for today?
2012-05-24 23:22 <grasbauer> cedk: why processing of sales now creates a credit_not as default or is one of our modules causing this?

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!