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

Module: Purchase

Entity: purchase.order

Compute Method: _compute_document_tax_mode

View 20.0
Inputs Method Outputs
  • document_tax_mode
  • company_id
+ for order in self:
+             if not order.document_tax_mode:
+                 company = order.company_id or self.env.company
+                 order.document_tax_mode = company.account_price_include
  • document_tax_mode

Back to entity