#5807 (Chooser context using a virtual field)

by Luc Saffre · in Developers · assigned to Luc Saffre

Kurzbeschreibung

Kinder

Kommentare

  • 1 Jahr, 10 Monate ago von Luc Saffre about #5807 (Chooser context using a virtual field) : Test suite reveals that setting the name of a return_type of a virtual fieldmaybe does disturb elsewhere. In Lino Welfare the cal plugin adds a field "client" to the cal.Guest model::
    class Guest(Guest): @dd.virtualfield(dd.ForeignKey('pcsw.Client')) def client(self, ar): ...
  • 1 Jahr, 10 Monate ago von Luc Saffre about #5807 (Chooser context using a virtual field) : We maybe need another new feature for choice fields: a "lazy" choicelist, which causes the choices to be lazy when they come from database, they get resolved into real choices only when the rating type is known.
  • 1 Jahr, 10 Monate ago von Luc Saffre about #5807 (Chooser context using a virtual field) : The name of the return_type of a virtual field was None until now. Now it is the same as the virtual field. Fixes our problem and seems to not disturb elsewhere. TODO: run test suite.
  • 1 Jahr, 10 Monate ago von Luc Saffre about #5807 (Chooser context using a virtual field) : It's not because it's a virtual field, it's because the context field was not being used in the detail layout.
  • 1 Jahr, 10 Monate ago von Luc Saffre about #5807 (Chooser context using a virtual field) : Created new Ticket #5807 (Chooser context using a virtual field).