Tryton - Issues

 

Message45122

Author ced
Recipients semarie
Date 2018-12-04.00:57:34
Content
Style remarks: we put help attribute as last argument, we indent closing also the closing brackets.
Usually we have getter method with the same name as the function field, so get_payments_info would be named get_amount.
I think the getter should use SQL query with grouping because it is not efficient to read all the lines out of the database just aggregate them in Python.
I think it will be more extension friendly to get the states list from a common private function.
The new fields should be added at least to the list view to allow searching on them.
History
Date User Action Args
2018-12-04 00:57:35cedsetmessageid: <1543881455.1.0.0130160165504.issue7890@tryton.org>
2018-12-04 00:57:35cedsetrecipients: + semarie
2018-12-04 00:57:35cedlinkissue7890 messages
2018-12-04 00:57:34cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)