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

Module: Donation

Entity: donation.donation

Compute Method: _compute_tax_receipt_option

View 18.0
Inputs Method Outputs
  • partner_id
  • partner_id.commercial_partner_id
  • partner_id.commercial_partner_id.tax_receipt_option
- for donation in self:
-             donation.tax_receipt_option = (
-                 donation.partner_id
-                 and donation.partner_id.commercial_partner_id.tax_receipt_option
-                 or False
-             )
  • tax_receipt_option

Back to entity