We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bbccf2b + 1275029 commit 29b4506Copy full SHA for 29b4506
sustainability_hr_expense_report/models/hr_expense.py
@@ -61,7 +61,9 @@ def _get_line_amount(self) -> float:
61
62
def can_use_account_id_carbon_value(self) -> bool:
63
self.ensure_one()
64
- return self.account_id.can_compute_carbon_value("in")
+ return (
65
+ self.account_id.can_compute_carbon_value("in") if self.account_id else False
66
+ )
67
68
def get_account_id_carbon_compute_values(self) -> dict:
69
0 commit comments