diff --git a/modules/purchase_trade/party.py b/modules/purchase_trade/party.py index 6024a54..124313a 100755 --- a/modules/purchase_trade/party.py +++ b/modules/purchase_trade/party.py @@ -54,25 +54,7 @@ class PartyExecutionPlace(ModelSQL,ModelView): states={ 'readonly': Eval('mode') != 'ppack', }) - currency_unit = fields.Selection('get_currency_unit',string="Curr/Unit") - - @staticmethod - def get_currency_unit(): - Currency = Pool().get('currency.currency') - Uom = Pool().get('product.uom') - - result = [] - currencies = Currency.search([('concatenate','=',True)]) - units = Uom.search([('concatenate','=',True)]) - result.append(("0_5","USC/lb")) - result.append(("0_37","USC/mt")) - for c in currencies: - for u in units: - key = "%s_%s" % (c.id, u.id) - value = "%s / %s" % (c.name, u.symbol or u.name) - result.append((key, value)) - return result - + class Party(metaclass=PoolMeta): __name__ = 'party.party'