Repository
OCA/vertical-abbey · module folder · Try on Runboat
Module version
1.0.0
Category
Lodging
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/vertical-abbey
Last tracking update
2026-08-07 08:43:07
Authors
Akretion, Odoo Community Association (OCA), Barroux Abbey
Maintainers
Akretion, Odoo Community Association (OCA), Barroux Abbey
Committers
Alexis de Lattre, OCA-git-bot, oca-ci
Odoo dependencies
OCA/donation:
OCA/vertical-abbey:
OCA/web:
odoo/odoo:
- web
- bus
- uom
Python dependencies
xlsxwriter
System dependencies
None
Required by
None
Description
This module adds a wizard to create a donation from a stay.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
create_donation_stay_form donation.stay.create.form donation.stay.create form New
donation_form donation.donation form Inherits donation.donation_form
donation_search donation.donation search Inherits donation.donation_search
donation_tree donation.donation tree Inherits donation.donation_tree
res_config_settings_view_form donation_stay.res.config.settings.form res.config.settings form Inherits stay.res_config_settings_view_form
stay_add_donation_form add.donation.from.stay.form stay.stay form Inherits stay.stay_form
stay_search donation.stay.search stay.stay search Inherits stay.stay_search
stay_tree donation.stay.tree stay.stay tree Inherits stay.stay_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • stay_id Many2one → stay.stay
    check_company=True copy=False domain=[('state', '!=', 'draft')] string='Stay' tracking=True args: 'stay.stay'
Public methods (0)

No public methods.

New fields (8)
  • amount Monetary
    currency_field='currency_id' required=True string='Donation Amount'
  • company_id Many2one → res.company
    required=True string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    default=<expr> required=True string='Currency' args: 'res.currency'
  • date_donation Date
    default=fields.Date.context_today required=True args: 'Donation Date'
  • partner_id Many2one → res.partner
    required=True string='Guest' args: 'res.partner'
  • payment_method_line_id Many2one → account.payment.method.line
    domain="[('donation', '=', True), ('company_id', '=', company_id)]" required=True string='Payment Mode' args: 'account.payment.method.line'
  • payment_ref Char
    args: 'Payment Reference'
  • stay_id Many2one → stay.stay
    required=True string='Stay' args: 'stay.stay'
Public methods (2)
  • create_donation(self)
  • default_get(self, fields_list)
    @api.model

New fields (2)
  • donation_stay_campaign_id Many2one → donation.campaign
    ondelete='restrict' string='Campaign for Stay Donations' args: 'donation.campaign'
  • donation_stay_product_id Many2one → product.product
    domain=[('donation_type', '=', 'donation')] ondelete='restrict' string='Product for Stay Donations' args: 'product.product'
Public methods (0)

No public methods.

New fields (2)
  • donation_stay_campaign_id Many2one
    readonly=False related='company_id.donation_stay_campaign_id'
  • donation_stay_product_id Many2one
    readonly=False related='company_id.donation_stay_product_id'
Public methods (0)

No public methods.

New fields (4)
  • company_currency_id Many2one
    related='company_id.currency_id' store=True string='Company Currency'
  • donation_count Integer
    compute='_compute_donation' store=True string='Number of Donations'
  • donation_ids One2many → donation.donation
    string='Donations' args: 'donation.donation', 'stay_id'
  • donation_total Monetary
    compute='_compute_donation' currency_field='company_currency_id' help='Total donation amount for draft and valid donations in company currency.' store=True
Public methods (1)
  • show_donations(self)

Loading…

Loading…

Loading…

Loading…

Loading…