newlogic-g2p icon indicating copy to clipboard operation
newlogic-g2p copied to clipboard

Add an app to record consent

Open jeremi opened this issue 3 years ago • 3 comments

  • [ ] Create a Consent Model:
    • name
    • signatory (Individual)
    • expiry
  • [ ] Create a Consent Mixin to make it easy to add to any object
  • [ ] Create a view to list models that are in violation

jeremi avatar Jun 04 '22 05:06 jeremi

  • signatory_id domain should make sure it is an individual.
  • The mixin was not for the consent object but for the objects that would link to the consent object, such as the res.partner.
  • Add a Model ConsentConfig that just has a name for now. It will allow later to define some parameters for the given consent.
  • Consent model should have a fk to the ConsentConfig
  • create Default ConsentConfig.

jeremi avatar Jul 18 '22 20:07 jeremi

An individual's registrant domain is not just [("is_group", "=", False)] it is [("is_registrant", "=", True), ("is_group", "=", True)]

jeremi avatar Jul 20 '22 21:07 jeremi

  • Rename "create consent" to record consent in the code and UIs.
  • Allow the consent to be recorded for a group, and the signing person can be a member of the group
  • Make the name of the consent auto-generated from the consent config and signatory.

Keep in mind:

The consent is about some data (target) that someone (actor) gives consent to be used under some conditions (parameters)

jeremi avatar Jul 20 '22 21:07 jeremi