Advertisement
Guest User

Untitled

a guest
Apr 30th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. invoice_line.quantity = Decimal('12.')
  2. File "/usr/local/lib/python2.7/dist-packages/proteus/__init__.py", line 132, in __set__
  3. super(FloatDescriptor, self).__set__(instance, value)
  4. File "/usr/local/lib/python2.7/dist-packages/proteus/__init__.py", line 82, in __set__
  5. instance._on_change(self.name)
  6. File "/usr/local/lib/python2.7/dist-packages/proteus/__init__.py", line 857, in _on_change
  7. list(to_change), context)
  8. File "/usr/local/lib/python2.7/dist-packages/proteus/config.py", line 149, in __call__
  9. result = rpc.result(meth(inst, *args, **kwargs))
  10. File "/home/marius/workplace/rifas/trytond/trytond/model/model.py", line 533, in on_change_with
  11. changes[fieldname] = getattr(self, method_name)()
  12. File "/home/marius/workplace/rifas/trytond/trytond/modules/account_invoice/invoice.py", line 1630, in on_change_with_amount
  13. return currency.round(amount)
  14. File "/home/marius/workplace/rifas/trytond/trytond/modules/currency/currency.py", line 200, in round
  15. return (amount / self.rounding).quantize(Decimal('1.'),
  16. File "/home/marius/workplace/rifas/trytond/trytond/model/fields/field.py", line 183, in __get__
  17. return inst.__getattr__(self.name)
  18. File "/home/marius/workplace/rifas/trytond/trytond/model/modelstorage.py", line 1317, in __getattr__
  19. read_data = self.read(list(ids), ffields.keys())
  20. File "/home/marius/workplace/rifas/trytond/trytond/model/modelsql.py", line 495, in read
  21. cls.raise_user_error('read_error', cls.__name__)
  22. File "/home/marius/workplace/rifas/trytond/trytond/error.py", line 70, in raise_user_error
  23. raise UserError(error)
  24. UserError: ('UserError', (u"You try to read records that don't exist anymore.\n(Document type: currency.currency)", ''))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement