Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: PoS Viva.com

Entity: pos.payment.method

Compute Method: _compute_viva_com_webhook_endpoint

View 19.0
Inputs Method Outputs
  • company_id
  • company_id.id
  • viva_com_webhook_verification_key
+ web_base_url = self.get_base_url()
+ self.viva_com_webhook_endpoint = (
+             f"{web_base_url}/pos_viva_com/notification?company_id={self.company_id.id}"
+             f"&token={self.viva_com_webhook_verification_key}"
+         )
  • viva_com_webhook_endpoint

Back to entity