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

Module: Employees

Entity: res.partner.bank

Compute Method: _compute_salary_amount

View 20.0
Inputs Method Outputs
  • employee_id
  • employee_id.salary_distribution
  • id
+ for bank in self:
+             if bank.employee_id and bank.employee_id.salary_distribution:
+                 bank.employee_salary_amount, bank.employee_salary_amount_is_percentage = bank.employee_id.get_bank_account_salary_allocation(bank.id)
+                 continue
+             bank.employee_salary_amount_is_percentage = True
+             if bank.employee_id.salary_distribution:
+                 bank.employee_salary_amount = bank.employee_id.get_remaining_percentage()
+             else:
+                 bank.employee_salary_amount = 0
  • employee_salary_amount
  • employee_salary_amount_is_percentage

Back to entity