Changeset 12770 for main/waeup.ikoba/trunk/src/waeup
- Timestamp:
- 15 Mar 2015, 13:26:44 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12768 r12770 1484 1484 # from the chosen product. 1485 1485 self.assertTrue( 1486 '<option selected="selected" value="Any product option ">'1486 '<option selected="selected" value="Any product option_88.8_EUR">' 1487 1487 'Any product option @ 88.8 Euro</option>' 1488 1488 in self.browser.contents) 1489 self.assertTrue('<option value="First option ">First option '1489 self.assertTrue('<option value="First option_99.9_USD">First option ' 1490 1490 '@ 99.9 US Dollar</option>' in self.browser.contents) 1491 1491 # In test browser we can at least replace the option 1492 1492 self.browser.getControl( 1493 name="form.product_options.0.").value = ['First option ']1493 name="form.product_options.0.").value = ['First option_99.9_USD'] 1494 1494 self.assertEqual( 1495 1495 contract.product_options[0].title, 'Any product option') -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py
r12592 r12770 233 233 234 234 def getToken(self, context, value): 235 return value.title235 return "%s_%s_%s" % (value.title, value.fee, value.currency) 236 236 237 237 def getTitle(self, context, value):
Note: See TracChangeset for help on using the changeset viewer.