Skip to content

Commit bcea71d

Browse files
committed
[IMP] donation: add description (if the field exists)
1 parent 224b3b3 commit bcea71d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

donation/models/account_bank_statement.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def _prepare_donation_vals(self, stline, move_line, payment_mode):
5959
"unit_price": amount,
6060
"analytic_account_id": move_line.analytic_account_id.id or False,
6161
}
62+
# https://github.com/ows-cloud/apps/tree/14.0/donation_analytic_description
63+
if "donation_description" in self.env["account.analytic.account"]._fields:
64+
line_vals["description"] = move_line.analytic_account_id.donation_description
6265
partner = stline.partner_id
6366
vals = {
6467
"company_id": company.id,

0 commit comments

Comments
 (0)