newlogic/newlogic-g2p

Add an app to record consent

jeremi opened this issue · 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
  • 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.

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

  • 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)