IRC logs of #tryton for Saturday, 2013-04-20

chat.freenode.net #tryton log beginning Sat Apr 20 00:00:02 CEST 2013
2013-04-20 00:00 <smarro> cedk: ping
2013-04-20 00:08 <cedk> smarro: pong
2013-04-20 00:24 <smarro> cedk: can we still commit translations a few more hours?
2013-04-20 00:24 <cedk> smarro: ok
2013-04-20 00:24 <smarro> cedk: great
2013-04-20 00:24 <cedk> smarro: it is not yet midnight in south america :-)
2013-04-20 00:24 <smarro> cedk: :-)
2013-04-20 04:14 <trytonnoob> hi.. i keep having this "The value of the field<some many2many> on <some Model> is not valid to its domain" what does this means?
2013-04-20 04:16 <trytonnoob> this happens after i updated a field on a selected record (based on the recored selected on the many2many) , and is on the Create method (i overwrite the create method)
2013-04-20 13:06 <coeps> Hi, what's the return-type of an empty Many2One field in PYSON : 'fieldx'==??
2013-04-20 13:07 <coeps> I keep getting the error "statements must have the same type"
2013-04-20 13:12 <coeps> incorrect: I have Eval('fieldmany2one') == ??, where I tried None, (), [] ... False..., But none works.
2013-04-20 13:28 <cedk> coeps: it is an id so you must put a int as default value
2013-04-20 13:48 <coeps> cdek: Thanks, works
2013-04-20 16:30 <katr> cedk: Thx for the fix for issue 3164.
2013-04-20 16:31 <katr> cedk: I currently find it very difficult getting taxes right posting entries directly to the journal.
2013-04-20 16:32 <katr> cedk: If I define a default tax on an account the accounting lines and tax lines get correctly created.
2013-04-20 16:33 <katr> cedk: But if the amounts of the move line gets changed later, the tax lines are not updated anymore.
2013-04-20 16:33 <katr> cedk: This leads to a incorrect tax declaration.
2013-04-20 16:40 <katr> cedk: I know the preferred way is to use other objects like invoices etc. But is there an easy way to improve this and make the accountants happy who are more used to work directly in the journals?
2013-04-20 16:46 <coeps> cdek: unfortunately it does not work correctly yet: This part is obviously still wrong. (Bool(Eval('many2onefield', -1) > 0)),
2013-04-20 16:49 <cedk> katr: the computation is no updated when changing to allow manual correction
2013-04-20 16:49 <cedk> katr: I think if tax is too complex it should be filled using invoices
2013-04-20 16:50 <cedk> katr: or with a new document
2013-04-20 16:50 <cedk> coeps: first no need of Bool as "x > 0" is already a boolean
2013-04-20 16:50 <cedk> coeps: but what is the issue?
2013-04-20 16:52 <coeps> I always got an error of _convert staticmethod of pyson.py. However, after I restarted the server and used a blank DB it works now.
2013-04-20 16:52 <coeps> The error was, that my value was not castable to float
2013-04-20 16:54 <cedk> coeps: be carefull that the client cache model definition so if you change it on the server side you must restart the client or launch it in development mode to disable cache
2013-04-20 16:55 <katr> cedk: What would that new document be?
2013-04-20 16:56 <cedk> katr: don't know what you are encoding
2013-04-20 16:59 <katr> cedk: If have written my own module for adjustment moves -- like you suggested. But there is are a lot of business case which entail some VAT stuff not yet covered by invoices etc.
2013-04-20 16:59 <cedk> katr: but maybe something to create move based on template
2013-04-20 17:00 <katr> cedk: Templates sound good.
2013-04-20 17:21 <katr> cedk: Is it intentional that the tax lines can be changed even if the move line it is based on is in posted state?
2013-04-20 17:38 <cedk> katr: no
2013-04-20 17:38 <cedk> katr: I don't think
2013-04-20 17:38 <cedk> katr: but in some way it could be useful
2013-04-20 17:39 <coeps> cdek: again, it is not working, 'invisible': (Eval('many2onefield', -1) < 0), gives me the following error: float() argument must be a string or a number. in tryton/pyson.py"
2013-04-20 17:39 <coeps> update of the db does not help (even not a new DB)
2013-04-20 17:40 <cedk> coeps: so I guess the value of the field is None
2013-04-20 17:40 <cedk> coeps: so you must catch it
2013-04-20 17:40 <cedk> coeps: can not compare None to 0
2013-04-20 17:43 <coeps> but if I use Eval('many2one', -1 == None) the error is, assert types1 == types2, 'statements must have the same type'
2013-04-20 17:43 <coeps> I just would like to hide a button, when the field many2one is empty.
2013-04-20 17:43 <cedk> coeps: so use: Bool(Eval('many2one'))
2013-04-20 17:48 <katr> cedk: Does it make sense to make it configurable?
2013-04-20 17:50 <coeps> Uhhhhhh, thanks
2013-04-20 17:52 <cedk> katr: I was thinking that it should be readonly once the period is closed
2013-04-20 17:54 <katr> cedk: I was thinking of locking it on a per-company or per-tax basis.
2013-04-20 17:56 <katr> cedk: Because there is still the problem that somebody accidentally messes up the tax declaration while the period is open.
2013-04-20 17:58 <cedk> katr: just like it is possible that someone messes up the all accounting
2013-04-20 18:01 <cedk> katr: but maybe just make it readonly just like the move line will be fine
2013-04-20 18:09 <katr> cedk: O.K. I'll get back on that topic after 2.8 is out, or even 2.10 :).
2013-04-20 18:30 <cedk> katr: best is to fill an request on bugtracker
2013-04-20 18:53 <katr> cedk: O.K., I'll do that. Bye!

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