Merge lp:~savoirfairelinux-openerp/openerp-canada/7.0-bug-missing-amount_in_word-proforma_voucher into lp:openerp-canada
Proposed by
Mathieu Benoit
Status: | Merged |
---|---|
Merged at revision: | 24 |
Proposed branch: | lp:~savoirfairelinux-openerp/openerp-canada/7.0-bug-missing-amount_in_word-proforma_voucher |
Merge into: | lp:openerp-canada |
Diff against target: |
169 lines (+68/-27) 1 file modified
l10n_ca_account_check_writing/account_voucher.py (+68/-27) |
To merge this branch: | bzr merge lp:~savoirfairelinux-openerp/openerp-canada/7.0-bug-missing-amount_in_word-proforma_voucher |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sandy Carter (http://www.savoirfairelinux.com) | code review, no test | Approve | |
Maxime Chambreuil (http://www.savoirfairelinux.com) | Approve | ||
OpenERP Canada Team | Pending | ||
Review via email: mp+207570@code.launchpad.net |
To post a comment you must log in.
l.26, a few comments:
Convention is to use:
if context is None:
context = {}
if isinstance(ids, (int, long)):
ids = [ids]
l.30-41 you want to use `for id in ids:` to avoid an index error if len(ids) == 0 or missed cases if len(ids) > 1
l.32 Have you considered cases where partner_id is a BrowseNull object?
l.37 Try using context=context for consistency
l.41 forgot to propagate context here
l.8,17,52: you're doing some pep8 fixes but you left the following 13, I would personally not touch any code I am not modifying in order to not screw up bzr annotate, or I would fix all the pep8 errors in a separate commit. voucher. py:33:1: E302 expected 2 blank lines, found 1 voucher. py:38:5: F841 local variable 'context' is assigned to but never used voucher. py:41:1: E302 expected 2 blank lines, found 1 voucher. py:47:5: F841 local variable 'cents' is assigned to but never used voucher. py:52:9: F841 local variable 'stars' is assigned to but never used voucher. py:53:5: F841 local variable 'AND' is assigned to but never used voucher. py:59:1: E302 expected 2 blank lines, found 1 voucher. py:113: 17: E123 closing bracket does not match indentation of opening bracket's line voucher. py:115: 13: E123 closing bracket does not match indentation of opening bracket's line voucher. py:142: 1: E302 expected 2 blank lines, found 1 voucher. py:144: 1: W293 blank line contains whitespace voucher. py:150: 12: E225 missing whitespace around operator voucher. py:156: 1: W293 blank line contains whitespace
account_
account_
account_
account_
account_
account_
account_
account_
account_
account_
account_
account_
account_