Donation Base
donation_base · OCA/donation
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 9 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.19 MB
Module directory on disk
Code analysis
0 migration notes
6 models
13 views
0 HTTP endpoints
Description
This is the base module for donations. This module doesn't do anything in itself ; it just adds some properties on products and partners and adds the donation.tax.receipt object.
To get some real features, you should install the donation or the donation_sale module. To understand the difference between these 2 modules, read this post.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 13
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
donation_base.report_donationtaxreceipt_document |
donation_base.report_donationtaxreceipt_document | ir.ui.view | qweb | New |
donation_tax_receipt_form |
donation.tax.receipt.form | donation.tax.receipt | form | New |
donation_tax_receipt_graph |
donation.tax.receipt.graph | donation.tax.receipt | graph | New |
donation_tax_receipt_pivot |
donation.tax.receipt.pivot | donation.tax.receipt | pivot | New |
donation_tax_receipt_print_form |
donation_tax_receipt_print.form | donation.tax.receipt.print | form | New |
donation_tax_receipt_search |
donation.tax.receipt.search | donation.tax.receipt | search | New |
donation_tax_receipt_tree |
donation.tax.receipt.list | donation.tax.receipt | list | New |
product_template_form_view |
donation.product.template.form | product.template | form | Inherits product.product_template_form_view |
product_template_search_view |
donation.product.template.search | product.template | search | Inherits product.product_template_search_view |
report_donationtaxreceipt |
report_donationtaxreceipt | ir.ui.view | qweb | New |
res_partner_view_search |
donation.res.partner.search | res.partner | search | Inherits account.res_partner_view_search |
tax_receipt_annual_create_form |
tax_receipt_annual_create.form | tax.receipt.annual.create | form | New |
view_partner_property_form |
donation.tax.receipt.res.partner.form | res.partner | form | Inherits account.view_partner_property_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (9)
-
amountMonetarytracking=True -
company_idMany2one → res.companydefault=<expr>required=Truestring='Company'tracking=True args: 'res.company' -
currency_idMany2one → res.currencydefault=<expr>ondelete='restrict'required=Truetracking=True args: 'res.currency' -
dateDatedefault=fields.Date.context_todayindex=Truerequired=Truetracking=True -
donation_dateDatetracking=True -
numberCharstring='Receipt Number'tracking=True -
partner_idMany2one → res.partnerdomain=[('parent_id', '=', False)]index=Trueondelete='restrict'required=Truestring='Donor'tracking=True args: 'res.partner' -
print_dateDatetracking=True -
typeSelectionrequired=Truetracking=True args: [('each', 'One-Time Tax Receipt'), ('annual', 'Annual Tax Receipt')]
-
action_send_tax_receipt(self) -
create(self, vals_list)@api.model_create_multi -
update_tax_receipt_annual_dict(self, tax_receipt_annual_dict, start_date, end_date, company)@api.modelThis method is inherited in donation and donation_sale It is called by the tax.receipt.annual.create wizard
New fields (1)
-
receipt_idsMany2many → donation.tax.receiptcolumn1='print_wizard_id'column2='receipt_id'default=<expr>string='Receipts to Print' args: 'donation.tax.receipt'
-
print_receipts(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
donation_typeSelectionselection=[('donation', 'Monetary Donation'), ('donation_in_kind', 'In-Kind Donation')]string='Donation' -
tax_receipt_okBooleancompute='_compute_tax_receipt_ok'help='Specify if the product is eligible for a tax receipt'precompute=Truereadonly=Falsestore=Truestring='Is Eligible for a Tax Receipt'tracking=True
-
donation_check(self)@api.constrains('donation_type', 'taxes_id')
New fields (4)
-
donor_rankIntegerdefault=0 -
tax_receipt_countIntegercompute='_compute_tax_receipt_count'string='# of Tax Receipts' -
tax_receipt_idsOne2many → donation.tax.receiptstring='Tax Receipts' args: 'donation.tax.receipt', 'partner_id' -
tax_receipt_optionSelectiondefault='each'tracking=True args: [('none', 'None'), ('each', 'For Each Donation'), ('annual', 'Annual Tax Receipt')]
-
create(self, vals_list)@api.model_create_multi
New fields (3)
-
company_idMany2one → res.companydefault=<expr>required=Truestring='Company' args: 'res.company' -
end_dateDatedefault=<expr>required=True -
start_dateDatedefault=<expr>required=True
-
generate_annual_receipts(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…