IRC logs of #tryton for Saturday, 2013-01-19 #tryton log beginning Sat Jan 19 00:00:01 CET 2013
katrHi! I have a question about invoices.12:07
katrWhat's the purpose of calling .print_invoice() from .open()?12:08
katrIs it to save the report to "invoice_report_cache"?12:08
cedkkatr: yes12:50
katrcedk: Thanks! The problem is that the decorator of .open() sets the state after .open() returns so when .parse() is called the invoice is still in draft state and not written "invoice_report_cache".12:58
katrcedk: Or am I missing something?12:58
katrcedk: Of course, if the invoice is printed after the confirmation it is correctly saved to the cache.13:07
-!- calbasi( has left #tryton18:51
plantiananyone have any thoughts what would cause this --
plantianI added an xml snippet at the top that seems to cause it.21:09
plantianIt is from my custom inventory module.21:09
-!- calbasi( has left #tryton21:29
cedkplantian: I think it is a bug introduced with a bugfix21:52
cedkplantian: indeed I can not reproduce it21:57
plantiancedk: It is weird because the official stock module has nearly the same xml but does not produce the error.21:58
plantiancedk: When I was checking it seemed like create_date was not in the fields passed to the parser.  What would cause that?21:59
cedkplantian: is the create_date field on the view?21:59
plantianI didn't see that difference, let me try it.22:01
plantiancedk: That fixes it.22:02
plantiancedk: The API has greatly improved but it is still so hard to know what is going wrong when it goes wrong.22:03
plantiancedk: Thanks for the help, not sure if a check should be added to the parser.22:04
cedkplantian: I think a check is needed22:09
cedkplantian: but it is not easy22:10
plantiancedk: I don't know much about the domain format but maybe this would work?:
plantianHaving the string_ method in the string method seems sort of odd.  Not sure how that occurred.22:38

Generated by 2.11.0 by Marius Gedminas - find it at!