Message 32854

Author
ced
Date
2017-03-28.20:54:19
Message id
32854

Content

I just found another issue when use ValueMixin with required fields on it.
Because MultiValueMixin will create the Value record and set only one field at a time, the required constraint will raise an error.
I think the right design is to have the default value stored on the Value model and have the MultiValue model calling them. At least for Value model with many required fields (like ConfigurationSaleMethod).
History
Date User Action Args
2017-03-28 20:54:19cedsetmessageid: <1490727259.56.0.551877767066.issue2349@tryton.org>
2017-03-28 20:54:19cedsetrecipients: + yangoon, ohuisman, eric, albertca, smarro, resteve, pokoli, angel, jesteve, guillemNaN, reviewbot, unicode2013
2017-03-28 20:54:19cedlinkissue2349 messages
2017-03-28 20:54:19cedcreate

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