~therp-nl/additional-discount/fix_lp1102075_move_lines

« back to all changes in this revision

Viewing changes to additional_discount/common.py

  • Committer: Christophe Combelles
  • Date: 2012-09-04 07:09:37 UTC
  • Revision ID: ccomb@free.fr-20120904070937-ypmmsgp2pioxxixf
restored the store dict with an additional trigger. try to overload compute. UNFINISHED

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from osv import osv
 
2
from tools.translate import _
 
3
 
1
4
def order_to_currency(record):
2
5
    """currency browse record from an sales/purchase order one."""
3
6
    return record.pricelist_id.currency_id