Skip to content

Commit

Permalink
fix pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
brendaf committed Apr 19, 2024
1 parent 4c31059 commit 17159d0
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion donation_certificate/wizard/donation_certificate_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DonationCertificateSend(models.TransientModel):
template_id = fields.Many2one(
"mail.template",
"Use template",
domain="[("model", "=", "donation.tax.receipt"), ]",
domain="[('model', '=', 'donation.tax.receipt'), ]",
default=lambda self: self._get_report_template(),
)

Expand Down
15 changes: 7 additions & 8 deletions donation_summary/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
"summary": "Make summary donations",
"version": "16.0.1.0.0",
"category": "Custom",
"website": "https://www.qubiq.es",
"website": "https://github.com/OCA/donation",
"author": "Brenda Fernández Alayo",
"license": "AGPL-3",
"depends": ['donation', 'donation_base', 'mail', 'donation_certificate'],
"depends": ["donation", "donation_base", "mail", "donation_certificate"],
"data": [
"security/ir.model.access.csv",
'report/donation_summary.xml',
'report/donation_summary_templates.xml',
'views/donation_summary_views.xml',
'views/donation_summary_send_views.xml',
'data/mail_template.xml'
"report/donation_summary.xml",
"report/donation_summary_templates.xml",
"views/donation_summary_views.xml",
"views/donation_summary_send_views.xml",
"data/mail_template.xml",
],
}
11 changes: 5 additions & 6 deletions donation_summary/data/mail_template.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" ?>
<odoo>
<data noupdate="1">
<record id="email_template_donation_summary" model="mail.template">
Expand All @@ -13,14 +13,13 @@
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;"> Dear
<t t-out="object.partner_id.name or ''">Brandon Freeman</t>, <br
/>
<br
/> We want to express our sincere gratitude for your suport and generosity towards our mission.
/>
<br
/> We want to express our sincere gratitude for your suport and generosity towards our mission. <br
/> We are pleased to inform you that attached you will find a detailed summary of all
the donations you have made from <t
t-out="object.start_date or ''"
>01/01/2023</t>
t-out="object.start_date or ''"
>01/01/2023</t>
to <t t-out="object.end_date or ''">31/12/2023</t>.
<br />
<br
Expand Down
2 changes: 1 addition & 1 deletion donation_summary/models/donation_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _get_mail_template(self):

def action_print_donation_summary(self):
"""Print the certificate and mark it as sent, so that we can see more
easily the next step of the workflow
easily the next step of the workflow
"""
self.filtered(lambda sum: not sum.is_summary_send).write(
{"is_summary_send": True}
Expand Down
4 changes: 2 additions & 2 deletions donation_summary/report/donation_summary_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<div class="oe_structure" />

<h2 class="mt-4">Request for Donation Summary: <span
t-field="o.name"
/></h2>
t-field="o.name"
/></h2>

<table class="table table-condensed">
<thead style="display: table-row-group">
Expand Down
2 changes: 1 addition & 1 deletion donation_summary/views/donation_summary_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</record>

<menuitem
id="donation_summary_menu"
id="donation_summary_menu"
action="donation_summary_action"
parent="donation.donation_title_menu"
sequence="20"
Expand Down
2 changes: 1 addition & 1 deletion donation_summary/wizard/donation_summary_send.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.tools.misc import get_lang

from odoo.addons.mail.wizard.mail_compose_message import _reopen


Expand Down

0 comments on commit 17159d0

Please sign in to comment.