osbzr/gooderp_addons

View on GitHub
money/models/money_order.py

Summary

Maintainability
F
6 days
Test Coverage

File money_order.py has 1098 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    Copyright (C) 2016  开阖软件(<http://osbzr.com>).
Severity: Major
Found in money/models/money_order.py - About 2 days to fix

    Function money_order_done has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
    Open

        def money_order_done(self):
            '''对收付款单的审核按钮'''
            for order in self:
                if order.state == 'done':
                    raise UserError(u'请不要重复确认')
    Severity: Minor
    Found in money/models/money_order.py - About 7 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function money_order_draft has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
    Open

        def money_order_draft(self):
            """
            收付款单反审核方法
            :return: 
            """
    Severity: Minor
    Found in money/models/money_order.py - About 5 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function reconcile_order_done has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
    Open

        def reconcile_order_done(self):
            '''核销单的审核按钮'''
            # 核销金额不能大于未核销金额
            for order in self:
                if order.state == 'done':
    Severity: Minor
    Found in money/models/money_order.py - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function find_source_order has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
    Open

        def find_source_order(self):
            '''
            查看原始单据,有以下情况:销售发货单、销售退货单、采购退货单、采购入库单、
            项目、委外加工单、核销单、购货订单、固定资产、固定资产变更以及期初应收应付。
            '''
    Severity: Minor
    Found in money/models/money_order.py - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function reconcile_order_draft has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
    Open

        def reconcile_order_draft(self):
            ''' 核销单的反审核按钮 '''
            for order in self:
                if order.state == 'draft':
                    raise UserError(u'核销单%s已撤销,不能再次撤销。' % order.name)
    Severity: Minor
    Found in money/models/money_order.py - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function create_money_order_pay_voucher has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

        def create_money_order_pay_voucher(self, line_ids, source_ids, partner, name, note):
            """
            为付款单创建凭证
            :param line_ids: 付款单明细
            :param source_ids: 没用到
    Severity: Minor
    Found in money/models/money_order.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function _create_voucher_line has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _create_voucher_line(self, line, name, account_id, debit, credit, voucher_id, partner_id, currency_id):
    Severity: Major
    Found in money/models/money_order.py - About 1 hr to fix

      Function _prepare_vouch_line_data has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _prepare_vouch_line_data(self, line, name, account_id, debit, credit, voucher_id, partner_id, currency_id):
      Severity: Major
      Found in money/models/money_order.py - About 1 hr to fix

        Function create_money_order_get_voucher has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def create_money_order_get_voucher(self, line_ids, source_ids, partner, name, note):
                """
                为收款单创建凭证
                :param line_ids: 收款单明细
                :param source_ids: 没用到
        Severity: Minor
        Found in money/models/money_order.py - About 55 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function money_invoice_draft has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def money_invoice_draft(self):
                """
                结算单反审核方法
                :return: 
                """
        Severity: Minor
        Found in money/models/money_order.py - About 55 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function compute_overdue has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def compute_overdue(self):
                """
                计算逾期天数: 当前日期 - 到期日,< 0则显示为0;如果逾期金额为0则逾期天数也为0
                计算逾期金额: 逾期时等于未核销金额,否则为0
                :return: 逾期天数
        Severity: Minor
        Found in money/models/money_order.py - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function create_money_order_get_voucher has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def create_money_order_get_voucher(self, line_ids, source_ids, partner, name, note):
        Severity: Minor
        Found in money/models/money_order.py - About 35 mins to fix

          Function create_money_order_pay_voucher has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def create_money_order_pay_voucher(self, line_ids, source_ids, partner, name, note):
          Severity: Minor
          Found in money/models/money_order.py - About 35 mins to fix

            Function _get_or_pay has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def _get_or_pay(self, line, business_type,
            Severity: Minor
            Found in money/models/money_order.py - About 35 mins to fix

              Function money_invoice_done has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  def money_invoice_done(self):
                      """
                      结算单审核方法
                      :return: 
                      """
              Severity: Minor
              Found in money/models/money_order.py - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function _get_or_pay has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  def _get_or_pay(self, line, business_type,
                                  partner_id, to_partner_id, name):
                      """
                      核销单 核销时 对具体核销单行进行的操作
                      :param line:
              Severity: Minor
              Found in money/models/money_order.py - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function onchange_partner_id has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  def onchange_partner_id(self):
                      """
                      onchange 类型字段 当改变 客户或者转入往来单位  业务类型 自动生成 对应的
                      核销单各种明细。
                      :return:
              Severity: Minor
              Found in money/models/money_order.py - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function _get_or_pay_cancel has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
              Open

                  def _get_or_pay_cancel(self, line, business_type, name):
                      """
                      反核销时 对具体核销单行进行的操作
                      """
                      # 每一行的已核销金额减少、未核销金额增加
              Severity: Minor
              Found in money/models/money_order.py - About 25 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Line too long (95 > 79 characters)
              Open

                      计算字段advance_payment(本次预收) 监控 discount_amount, source_ids.this_reconcile line_ids.amount
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (89 > 79 characters)
              Open

                      self.currency_id = partner_currency_id or self.env.user.company_id.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (85 > 79 characters)
              Open

                          if order.type == 'pay' and not order.partner_id.s_category_id.account_id:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                                  if line.currency_id != self.env.user.company_id.currency_id:    # 外币
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                      # param: source, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (107 > 79 characters)
              Open

                      vouch_obj = self.env['voucher'].create({'date': self.date, 'ref': '%s,%s' % (self._name, self.id)})
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (81 > 79 characters)
              Open

                          self.advance_payment = amount - this_reconcile + self.discount_amount
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                                      and line.bank_id.currency_amount or line.bank_id.balance
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (118 > 79 characters)
              Open

                          if float_compare(order.reconciled, total_current_reconciled, precision_digits=decimal_amount.digits) != 0:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                                                  % (abs(source.to_reconcile), source.this_reconcile))
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              At least two spaces before inline comment
              Open

                              if source.this_reconcile == 0: # 如果核销行的本次付款金额为0,删除
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Separate inline comments by at least two spaces.

              An inline comment is a comment on the same line as a statement.
              Inline comments should be separated by at least two spaces from the
              statement. They should start with a # and a single space.
              
              Each line of a block comment starts with a # and a single space
              (unless it is indented text inside the comment).
              
              Okay: x = x + 1  # Increment x
              Okay: x = x + 1    # Increment x
              Okay: # Block comment
              E261: x = x + 1 # Increment x
              E262: x = x + 1  #Increment x
              E262: x = x + 1  #  Increment x
              E265: #Block comment
              E266: ### Block comment

              Line too long (83 > 79 characters)
              Open

                          # param: False, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (95 > 79 characters)
              Open

                      orders = self.env['money.order'].search([('partner_id', '=', values.get('partner_id')),
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line over-indented for visual indent
              Open

                                        or self.partner_id.s_category_id.account_id.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Continuation line under-indented for visual indent
              Open

                                                digits=dp.get_precision('Amount'),
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Line too long (82 > 79 characters)
              Open

                          # param: line, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (99 > 79 characters)
              Open

                                                    line_data and line_data.currency_id.id or self.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line over-indented for visual indent
              Open

                                        and self.partner_id.c_category_id.account_id.currency_id.id \
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Line too long (81 > 79 characters)
              Open

                      对partner修改的监控当 partner 修改时,就对 页面相对应的字段进行修改(bank_name,bank_num,source_ids)
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                                      and line.bank_id.currency_amount or line.bank_id.balance
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 79 characters)
              Open

                                  if line.currency_id != self.env.user.company_id.currency_id:  # 外币
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 79 characters)
              Open

                                        or self.partner_id.s_category_id.account_id.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                                                help=u'根据收/付款单行金额总和,原始单据行金额总和及折扣额计算得来的预收/预付款,'
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line under-indented for visual indent
              Open

                                                compute='_compute_advance_payment',
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Block comment should start with '# '
              Open

              #from datetime import datetime
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Separate inline comments by at least two spaces.

              An inline comment is a comment on the same line as a statement.
              Inline comments should be separated by at least two spaces from the
              statement. They should start with a # and a single space.
              
              Each line of a block comment starts with a # and a single space
              (unless it is indented text inside the comment).
              
              Okay: x = x + 1  # Increment x
              Okay: x = x + 1    # Increment x
              Okay: # Block comment
              E261: x = x + 1 # Increment x
              E262: x = x + 1  #Increment x
              E262: x = x + 1  #  Increment x
              E265: #Block comment
              E266: ### Block comment

              Missing whitespace after ','
              Open

                  @api.depends('partner_id','type')
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Each comma, semicolon or colon should be followed by whitespace.

              Okay: [a, b]
              Okay: (3,)
              Okay: a[1:4]
              Okay: a[:4]
              Okay: a[1:]
              Okay: a[1:4:2]
              E231: ['a','b']
              E231: foo(bar,baz)
              E231: [{'a':'b'}]

              Line too long (92 > 79 characters)
              Open

                                                compute='_compute_currency_id', store=True, readonly=True,
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line under-indented for visual indent
              Open

                                                store=True, readonly=True,
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Line too long (88 > 79 characters)
              Open

                                  balance = line.currency_id != self.env.user.company_id.currency_id \
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (127 > 79 characters)
              Open

                              if float_compare(source.this_reconcile, abs(source.to_reconcile), precision_digits=decimal_amount.digits) == 1:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (87 > 79 characters)
              Open

                                        and self.partner_id.c_category_id.account_id.currency_id.id \
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (83 > 79 characters)
              Open

                                                   precision_digits=decimal_amount.digits) == -1:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (101 > 79 characters)
              Open

                                  order.line_ids, order.source_ids, order.partner_id, order.name, order.note or '')
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (101 > 79 characters)
              Open

                                  order.line_ids, order.source_ids, order.partner_id, order.name, order.note or '')
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (105 > 79 characters)
              Open

                                  if float_compare(balance, line.amount, precision_digits=decimal_amount.digits) == -1:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 79 characters)
              Open

                                  if line.currency_id != self.env.user.company_id.currency_id:  # 外币
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (115 > 79 characters)
              Open

                  def _prepare_vouch_line_data(self, line, name, account_id, debit, credit, voucher_id, partner_id, currency_id):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (87 > 79 characters)
              Open

                          line, name, account_id, debit, credit, voucher_id, partner_id, currency_id)
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                  def create_money_order_get_voucher(self, line_ids, source_ids, partner, name, note):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (99 > 79 characters)
              Open

                          orders = self.env['money.order'].search([('partner_id', '=', values.get('partner_id')),
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Line too long (103 > 79 characters)
              Open

                              if 'value1' is lower than, equal to, or greater than 'value2' at the given precision'''
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                                  balance = line.currency_id != self.env.user.company_id.currency_id \
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (87 > 79 characters)
              Open

                      partner_currency_id = (self.type == 'get')                                    \
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line under-indented for visual indent
              Open

                                                help=u'根据收/付款单行金额总和,原始单据行金额总和及折扣额计算得来的预收/预付款,'
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Continuation line under-indented for visual indent
              Open

                                                u'值>=0')
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Line too long (81 > 79 characters)
              Open

                          self.advance_payment = amount - this_reconcile - self.discount_amount
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (89 > 79 characters)
              Open

                      for invoice in self.env['money.invoice'].search(self._get_invoice_search_list()):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (85 > 79 characters)
              Open

                          if order.type == 'get' and not order.partner_id.c_category_id.account_id:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 79 characters)
              Open

                                  if line.currency_id != self.env.user.company_id.currency_id:  # 外币
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (111 > 79 characters)
              Open

                  def _create_voucher_line(self, line, name, account_id, debit, credit, voucher_id, partner_id, currency_id):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                  currency_id = fields.Many2one('res.currency', u'币别', compute='_compute_currency_id',
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('asset') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Line too long (118 > 79 characters)
              Open

                              if float_compare(line.this_reconcile, line.to_reconcile, precision_digits=decimal_amount.digits) == 1:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Block comment should start with '# '
              Open

                          #默认到期日取审核日期
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Separate inline comments by at least two spaces.

              An inline comment is a comment on the same line as a statement.
              Inline comments should be separated by at least two spaces from the
              statement. They should start with a # and a single space.
              
              Each line of a block comment starts with a # and a single space
              (unless it is indented text inside the comment).
              
              Okay: x = x + 1  # Increment x
              Okay: x = x + 1    # Increment x
              Okay: # Block comment
              E261: x = x + 1 # Increment x
              E262: x = x + 1  #Increment x
              E262: x = x + 1  #  Increment x
              E265: #Block comment
              E266: ### Block comment

              Block comment should start with '# '
              Open

                          #不管有没有到期日,取发票审核日期+客户的信用天数
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Separate inline comments by at least two spaces.

              An inline comment is a comment on the same line as a statement.
              Inline comments should be separated by at least two spaces from the
              statement. They should start with a # and a single space.
              
              Each line of a block comment starts with a # and a single space
              (unless it is indented text inside the comment).
              
              Okay: x = x + 1  # Increment x
              Okay: x = x + 1    # Increment x
              Okay: # Block comment
              E261: x = x + 1 # Increment x
              E262: x = x + 1  #Increment x
              E262: x = x + 1  #  Increment x
              E265: #Block comment
              E266: ### Block comment

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Line too long (107 > 79 characters)
              Open

                      vouch_obj = self.env['voucher'].create({'date': self.date, 'ref': '%s,%s' % (self._name, self.id)})
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (94 > 79 characters)
              Open

                                  (invoice.id, invoice.bill_number and invoice.bill_number or invoice.name))
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (110 > 79 characters)
              Open

                      if values.get('date_due') and self.bill_number and not self.env.context.get('other_invoice_date_due'):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (110 > 79 characters)
              Open

                              inv.with_context({'other_invoice_date_due': True}).write({'date_due': values.get('date_due')})
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (90 > 79 characters)
              Open

                                          default=lambda self: self.env.user.company_id.import_tax_rate,
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 79 characters)
              Open

                          # param: line, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (108 > 79 characters)
              Open

                      self.currency_id = self.bank_id.account_id.currency_id.id or self.env.user.company_id.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 79 characters)
              Open

                          return self.env['core.category'].search([('type', '=', cate_type)])[0]
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 79 characters)
              Open

                      d1 = datetime.datetime.strptime(fields.Date.context_today(self), '%Y-%m-%d')
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (114 > 79 characters)
              Open

                              if float_compare(order_reconcile, invoice_reconcile, precision_digits=decimal_amount.digits) != 0:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('sell.delivery') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Line too long (80 > 79 characters)
              Open

                                                         help=u'核销单上的应付结算单明细')  # 核销单上的应付结算单明细
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 79 characters)
              Open

                                              % (order.partner_id.name, order.to_partner_id.name))
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 79 characters)
              Open

                                              % (order.partner_id.name, order.to_partner_id.name))
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                          if self.business_type in ['adv_pay_to_get', 'adv_get_to_pay', 'get_to_pay']:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Continuation line under-indented for visual indent
              Open

                                               store=True, copy=False)
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('buy.receipt') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Block comment should start with '# '
              Open

                          #if not inv.date_due:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Separate inline comments by at least two spaces.

              An inline comment is a comment on the same line as a statement.
              Inline comments should be separated by at least two spaces from the
              statement. They should start with a # and a single space.
              
              Each line of a block comment starts with a # and a single space
              (unless it is indented text inside the comment).
              
              Okay: x = x + 1  # Increment x
              Okay: x = x + 1    # Increment x
              Okay: # Block comment
              E261: x = x + 1 # Increment x
              E262: x = x + 1  #Increment x
              E262: x = x + 1  #  Increment x
              E265: #Block comment
              E266: ### Block comment

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('outsource') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Line too long (94 > 79 characters)
              Open

                                                    line_data and line.currency_id.id or self.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (152 > 79 characters)
              Open

                          inv.date_due = datetime.datetime.strptime(fields.Date.context_today(self), '%Y-%m-%d') + datetime.timedelta(days=inv.partner_id.credit_time)
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                                                            string=u'核销单', ondelete='cascade',
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Line too long (92 > 79 characters)
              Open

                          #    inv.date_due = fields.Date.context_today(self) + inv.partner_id.credit_time
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('cost.order') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Continuation line under-indented for visual indent
              Open

                                                    'adv_get_to_pay', 'get_to_pay']:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Continuation lines indentation.

              Continuation lines should align wrapped elements either vertically
              using Python's implicit line joining inside parentheses, brackets
              and braces, or using a hanging indent.
              
              When using a hanging indent these considerations should be applied:
              - there should be no arguments on the first line, and
              - further indentation should be used to clearly distinguish itself
                as a continuation line.
              
              Okay: a = (\n)
              E123: a = (\n    )
              
              Okay: a = (\n    42)
              E121: a = (\n   42)
              E122: a = (\n42)
              E123: a = (\n    42\n    )
              E124: a = (24,\n     42\n)
              E125: if (\n    b):\n    pass
              E126: a = (\n        42)
              E127: a = (24,\n      42)
              E128: a = (24,\n    42)
              E129: if (a or\n    b):\n    pass
              E131: a = (\n    42\n 24)

              Line too long (114 > 79 characters)
              Open

                              if float_compare(order_reconcile, invoice_reconcile, precision_digits=decimal_amount.digits) != 0:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Trailing whitespace
              Open

                      :return: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Line too long (90 > 79 characters)
              Open

                                                line_data and line.currency_id.id or self.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 79 characters)
              Open

                          return {'domain': {'to_partner_id': [('c_category_id', '!=', False)]}}
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 79 characters)
              Open

                          return {'domain': {'to_partner_id': [('s_category_id', '!=', False)]}}
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (110 > 79 characters)
              Open

                      if float_compare(line.this_reconcile, line.to_reconcile, precision_digits=decimal_amount.digits) == 1:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 79 characters)
              Open

                  def create_money_order_pay_voucher(self, line_ids, source_ids, partner, name, note):
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (83 > 79 characters)
              Open

                          # param: False, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (90 > 79 characters)
              Open

                                                line_data and line.currency_id.id or self.currency_id.id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (92 > 79 characters)
              Open

                                                % (self.currency_id.name, self.money_id.currency_id.name))
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('project') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Line too long (83 > 79 characters)
              Open

                                                            help=u'核销单上的应收结算单明细')  # 核销单上的应收结算单明细
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (111 > 79 characters)
              Open

                          if order.business_type in ['get_to_get', 'pay_to_pay'] and order.partner_id == order.to_partner_id:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                      # param: source, name, account_id, debit, credit, voucher_id, partner_id
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (80 > 79 characters)
              Open

                      self.overdue_amount = self.overdue_days > 0 and self.to_reconcile or 0.0
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Trailing whitespace
              Open

                      :param values: 
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Trailing whitespace is superfluous.

              The warning returned varies on whether the line itself is blank,
              for easier filtering for those who want to indent their blank lines.
              
              Okay: spam(1)\n#
              W291: spam(1) \n#
              W293: class Foo(object):\n    \n    bang = 12

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('buy.order') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Comparison to none should be 'if cond is not none:'
              Open

                      if self.env.get('hr.expense') != None:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Comparison to singletons should use "is" or "is not".

              Comparisons to singletons like None should always be done
              with "is" or "is not", never the equality operators.
              
              Okay: if arg is not None:
              E711: if arg != None:
              E711: if None == arg:
              E712: if arg == True:
              E712: if False == arg:
              
              Also, beware of writing if x when you really mean if x is not None
              -- e.g. when testing whether a variable or argument that defaults to
              None was set to some other value.  The other value might have a type
              (such as a container) that could be false in a boolean context!

              Line too long (111 > 79 characters)
              Open

                          if order.business_type in ['get_to_get', 'pay_to_pay'] and order.partner_id == order.to_partner_id:
              Severity: Minor
              Found in money/models/money_order.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              There are no issues that match your filters.

              Category
              Status