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

Module: Expenses

Entity: account.move

Compute Method: _compute_show_commercial_partner_warning

Inputs Method Outputs
  • commercial_partner_id
  • move_type
  • partner_id
for move in self:
            move.show_commercial_partner_warning = (
                    move.commercial_partner_id == self.env.company.partner_id
                    and move.move_type == 'in_invoice'
                    and move.partner_id.sudo().employee_ids
            )

Back to entity