You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
907 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2018 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <data>
  5. <record id="update_opt_out" model="ir.actions.server">
  6. <field name="name">Update partner's opt out</field>
  7. <field name="model_id" ref="model_privacy_consent"/>
  8. <field name="crud_model_id" ref="base.model_res_partner"/>
  9. <field name="state">object_write</field>
  10. <field name="use_write">expression</field>
  11. <field name="write_expression">record.partner_id</field>
  12. </record>
  13. <record id="update_opt_out_line_1" model="ir.server.object.lines">
  14. <field name="server_id" ref="update_opt_out"/>
  15. <field name="col1" ref="mail.field_res_partner_opt_out"/>
  16. <field name="type">equation</field>
  17. <field name="value">not record.accepted</field>
  18. </record>
  19. </data>