~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159

« back to all changes in this revision

Viewing changes to purchase_delivery_term/purchase.py

  • Committer: Joel Grand-Guillaume
  • Author(s): Lorenzo Battistini
  • Date: 2013-10-10 07:49:15 UTC
  • mfrom: (12.5.2 7.0_imp_delivery_term_precision)
  • Revision ID: joel.grandguillaume@camptocamp.com-20131010074915-cqzt5j9sm5ums57c
[MRG] [IMP] allowing user to create e.g. 3 delivery with same quantity (0.333333 - 0.333333 - 0.333334)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    _columns = {
56
56
        'term_id': fields.many2one('purchase.delivery.term', 'Term', ondelete='cascade'),
57
57
        'quantity_perc': fields.float('Quantity percentage',
58
 
            required=True, help="For 20% set '0.2'"),
 
58
            required=True, help="For 20% set '0.2'",
 
59
            digits_compute=dp.get_precision('Purchase Delivery Term')),
59
60
        'delay': fields.float('Delivery Lead Time', required=True,
60
61
            help="Number of days between the order confirmation and the shipping of the products from the supplier"),
61
62
        }