~contract-management-core-editors/contract-management/github-7.0

« back to all changes in this revision

Viewing changes to analytic_hours_block/hours_block.py

  • Committer: Yannick Vaucher
  • Author(s): unknown
  • Date: 2014-04-02 15:51:45 UTC
  • mfrom: (8.2.3)
  • Revision ID: git-v1:29f89c6b0dc953ac80cc5431410b95e326b9e4ab
[IMP] added product attribute to discard invoice lines with this product in hours block

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            # Compute hours bought
49
49
            for line in block.invoice_id.invoice_line:
50
50
                hours_bought = 0.0
51
 
                if line.product_id:
 
51
                if line.product_id and line.product_id.is_in_hours_block:
52
52
                    # We will now calculate the product_quantity
53
53
                    factor = line.uos_id.factor
54
54
                    if factor == 0.0: