Message 65177

Author
ced
Date
2021-03-05.17:08:04
Message id
65177

Content

The usage of such method should follow some rules in order to work correctly for issue4080.

  • default_ methods must use get_multivalue but with pattern as keyword argument and they must have an on_change_ method for the depending pattern (ex: on_change_company) to set new default.
  • *_used property may call get_multivalue but we must set the right context
  • get_purchase_unit_price, get_sale_unit_price and get_context_formula are exceptions that can use get_multivalue

There should be no other use cases.

set_multivalue should almost never be used (except to update the product cost) as multivalue is for referential document and they should be updated only by users.

History
Date User Action Args
2021-03-05 17:08:04cedsetmessageid: <1614960484.5712717.4FKBDWKT64LJKH3A.issue10162@tryton.org>
2021-03-05 17:08:04cedlinkissue10162 messages
2021-03-05 17:08:04cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)