~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_partner/product.py

  • Committer: chloups208
  • Date: 2012-11-22 13:26:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1340.
  • Revision ID: chloups208@chloups208-laptop-20121122132604-i6immumxko9uflt9
utp-171 supplier catalogue, procurement order, tender line, price lists, supplier info

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from osv import osv
24
24
from osv import fields
25
25
 
 
26
import decimal_precision as dp
 
27
 
26
28
 
27
29
class product_supplierinfo(osv.osv):
28
30
    _name = 'product.supplierinfo'
63
65
        'company_id': fields.many2one('res.company','Company',select=1),
64
66
        'sequence_bis': fields.function(_get_order_id, method=True, type="integer", help="Assigns the priority to the list of product supplier.", string="Ranking"),
65
67
        'check_manufacturer': fields.function(_get_manu_price_dates, method=True, type="boolean", string="Manufacturer", multi="compt_f"),
66
 
        'get_first_price': fields.function(_get_manu_price_dates, method=True, type="float", string="Indicative Price", multi="compt_f"),
 
68
        'get_first_price': fields.function(_get_manu_price_dates, method=True, type="float", string="Indicative Price", digits_compute=dp.get_precision('Purchase Price Computation'), multi="compt_f"),
67
69
        'get_first_currency': fields.function(_get_manu_price_dates, method=True, type="many2one", relation="res.currency", string="Currency", multi="compt_f"),
68
70
        'get_till_date': fields.function(_get_manu_price_dates, method=True, type="date", string="Valid till date", multi="compt_f"),
69
71
        'get_from_date': fields.function(_get_manu_price_dates, method=True, type="date", string="Valid form date", multi="compt_f"),