IRC logs of #tryton for Monday, 2012-11-12

chat.freenode.net #tryton log beginning Mon Nov 12 00:00:01 CET 2012
2012-11-12 05:45 -!- zodman(~zodman@201.124.154.236) has left #tryton
2012-11-12 11:06 <sisalp> hello,
2012-11-12 11:06 <sisalp> every one 's safely back ?
2012-11-12 11:07 <sisalp> we had two exceptional days
2012-11-12 11:07 <sisalp> I still have the payment term question
2012-11-12 11:09 <sisalp> how to implement payment term "30 days-end-of-month-on 10th " ?
2012-11-12 11:10 <sisalp> a today (12 nov ) invoice would be paid on 10 january
2012-11-12 11:11 <sisalp> is it just a matter of configuring, or something special has to be coded ?
2012-11-12 11:12 <cedk> sisalp: it will require to be able to specify twice a fixed day
2012-11-12 11:12 <sisalp> cedk: can you elaborate
2012-11-12 11:12 <cedk> sisalp: in base, you can do it only once: "end of month" or "10th"
2012-11-12 11:16 <cedk> sisalp: but the payment term design was made to include easily such complicate rules
2012-11-12 11:17 <sisalp> cedk : next-10th(end-of-month(today) + 30d)
2012-11-12 11:18 <cedk> sisalp: end-of-month == define a specific day
2012-11-12 11:18 <cedk> sisalp: but in the base there is only 1 field for day
2012-11-12 11:19 <cedk> sisalp: writing the module that adds the new field is very easy ≃2h
2012-11-12 11:19 <sisalp> cedk: so can it be done or coded easily ?
2012-11-12 11:25 <cedk> sisalp: yes, we use relativedelta: http://labix.org/python-dateutil#head-ba5ffd4df8111d1b83fc194b97ebecf837add454
2012-11-12 11:25 <cedk> sisalp: as you can see you can almost write any computation with it
2012-11-12 11:26 <cedk> sisalp: we choose to show only basic fields, but it can be extended easily
2012-11-12 11:29 <sisalp> cedk: I'll get the list of specific payment terms (nevertheless quite usual in France)
2012-11-12 11:29 <sisalp> cedk: and probably we'll suncontract this samll module to you
2012-11-12 11:29 <sisalp> sun/sub
2012-11-12 12:13 <cedk> sisalp: no problems
2012-11-12 16:15 <cedric_scil> Is it normal that I get a None response on a write call? (and the write is done)
2012-11-12 16:16 <bechamel> cedric_scil: on which version ?
2012-11-12 16:16 <cedric_scil> 2.6
2012-11-12 16:26 <cedric_scil> I may be doing weird things with x2many commands for getting None
2012-11-12 16:29 <bechamel> cedric_scil: iirc this the new and expected behaviour
2012-11-12 16:30 <bechamel> cedric_scil: didn't we (with Pilou) talk about it at the TUL?
2012-11-12 16:31 <cedric_scil> bechamel: Not that one
2012-11-12 16:33 <cedric_scil> I still get True when editing a party.category
2012-11-12 16:39 <bechamel> cedric_scil: you are right the write method in model/modelsql.py returns True
2012-11-12 17:04 <cedk> cedric_scil: in 2.6, you must get None if it is not the case then it is a bug
2012-11-12 17:05 <cedric_scil> cedk: Ok, I'll set the code to expect None and check in which case I get True
2012-11-12 17:05 <cedk> cedric_scil: any way, before it was always True
2012-11-12 17:05 <cedk> cedric_scil: indeed the return value for write or delete are useless
2012-11-12 17:06 <cedk> cedric_scil: it something wrong happens it will raise en exception
2012-11-12 17:49 -!- sisalp(~sisalpuse@bibip.sisalp.net) has left #tryton
2012-11-12 23:32 <__efx__> Pilou: thank you for the response, I did had the script folder in my trytond installation, I downloaded the country module from pip and found the script folder
2012-11-12 23:33 <__efx__> I want to get a report directly server side but I simply want to call the excute method of the Report class but I can not get an instance of that class. Report() does not work
2012-11-12 23:34 <__efx__> does somebody have ever tried that ?
2012-11-12 23:37 <cedk> __efx__: look at http://hg.tryton.org/modules/account_invoice/file/efe344a0e9d8/invoice.py#l1112
2012-11-12 23:38 <__efx__> cedk: thank you !
2012-11-12 23:47 <__efx__> but when I use the InvoiceReport.excute it is not the execute function of the Report class that is executed ?
2012-11-12 23:48 <__efx__> because I have a *** Exception: ('Error', 'Report (gnuhealth.prescription.order) not find!') and I tried to put a breakpoint in the report.py file in the execute method but it seems the method is not called

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