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.

25 lines
1.0 KiB

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <odoo noupdate="1">
  3. <record id="webhook_test" model="webhook">
  4. <field name="name">wehook_test</field>
  5. <field name="python_code_get_event">request.httprequest.headers.get("X-Webhook-Test-Event")</field>
  6. <field name="python_code_get_ip">request.httprequest.headers.get("X-Webhook-Test-Address")</field>
  7. </record>
  8. <record id="webhook_address_localhost" model="webhook.address">
  9. <field name="name">127.0.0.1</field>
  10. <field name="webhook_id" ref="webhook_test"/>
  11. </record>
  12. <!--webhook github data-->
  13. <record model="webhook" id="webhook_github">
  14. <field name="name">github</field>
  15. <field name="python_code_get_event">request.httprequest.headers.get('X-Github-Event')</field>
  16. </record>
  17. <record model="webhook.address" id="webhook_address_github">
  18. <field name="name">192.30.252.0/22</field>
  19. <field name="webhook_id" ref="webhook_github"/>
  20. </record>
  21. </odoo>