TIP: You can type at any time to perform a new search.
Agreement Rebate
agreement_rebate · OCA/agreement
- Repository
- OCA/agreement · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Agreement
- Folder size
- 1.31 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/agreement
- Last tracking update
- 2026-08-07 09:06:33
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Graeme Gellatly, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- agreement_rebate_partner_company_group
- Description
This module extends the functionality of agreement module to allow define rebate conditions.
Code Analysis ⓘ
Views touched (17)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
agreement_form |
agreement | form | Inherits agreement.agreement_form | |
agreement_rebate_condition_form |
agreement.rebate.condition.form | agreement.rebate.condition | form | New |
agreement_rebate_condition_tree |
agreement.rebate.condition.tree | agreement.rebate.condition | list | New |
agreement_rebate_line_form |
agreement.rebate.line.form | agreement.rebate.line | form | New |
agreement_rebate_line_tree |
agreement.rebate.line.tree | agreement.rebate.line | list | New |
agreement_rebate_section_tree |
agreement.rebate.section.tree | agreement.rebate.section | list | New |
agreement_rebate_settlement_form |
agreement.rebate.settlement | agreement.rebate.settlement | form | New |
agreement_rebate_settlement_line_search |
agreement.rebate.settlement.line.search | agreement.rebate.settlement.line | search | New |
agreement_rebate_settlement_line_tree |
agreement.rebate.settlement.line | agreement.rebate.settlement.line | list | New |
agreement_rebate_settlement_search |
agreement.rebate.settlement.search | agreement.rebate.settlement | search | New |
agreement_rebate_settlement_tree |
agreement.rebate.settlement | agreement.rebate.settlement | list | New |
agreement_search |
agreement | search | Inherits agreement.agreement_search | |
agreement_type_form_view |
agreement.type | form | Inherits agreement.agreement_type_form_view | |
agreement_type_list_view |
agreement.type | list | Inherits agreement.agreement_type_list_view | |
agreement_type_search |
agreement.type | search | Inherits agreement.agreement_type_search | |
view_invoice_create_wiz |
agreement.invoice.create.wiz | agreement.invoice.create.wiz | form | New |
view_settlement_create_wiz |
agreement.settlement.create.wiz | agreement.settlement.create.wiz | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (10)
New fields (1)
-
agreement_rebate_settlement_line_idsMany2many → agreement.rebate.settlement.linecolumn1='invoice_line_id'column2='settlement_line_id'comodel_name='agreement.rebate.settlement.line'relation='agreement_rebate_settlement_line_account_invoice_line_rel'string='Settlement lines'
No public methods.
New fields (6)
-
additional_consumptionFloatdefault=0.0 -
is_rebateBooleanrelated='agreement_type_id.is_rebate'string='Is rebate agreement type' -
rebate_discountFloatdefault=0.0digits='Discount' -
rebate_line_idsOne2many → agreement.rebate.linecomodel_name='agreement.rebate.line'copy=Trueinverse_name='agreement_id'string='Agreement rebate lines' -
rebate_section_idsOne2many → agreement.rebate.sectioncomodel_name='agreement.rebate.section'copy=Trueinverse_name='agreement_id'string='Agreement rebate sections' -
rebate_typeSelectionselection=[('global', 'Global (A discount global for all lines)'), ('line', 'Line (A discount for every line)'), ('section_total', 'Compute total and apply discount rule match'), ('section_prorated', 'Calculate the discount in each amount section')]string='rebate type'
No public methods.
New fields (11)
-
agreement_idsMany2many → agreementcomodel_name='agreement'string='Agreements' -
agreement_type_idsMany2many → agreement.typecomodel_name='agreement.type'string='Agreement types' -
date_fromDatestring='From' -
date_toDatestring='To' -
domainSelectiondefault='sale' args: '_domain_selection' -
invoice_groupSelectiondefault='settlement'required=Truestring='Group invoice by' args: [('settlement', 'Settlement'), ('partner', 'Partner'), ('commercial_partner', 'Commercial partner')] -
invoice_partner_idMany2one → res.partnercomodel_name='res.partner'string='Force invoice to' -
invoice_typeSelectiondefault='out_invoice'required=True args: [('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill'), ('out_refund', 'Customer Credit Note'), ('in_refund', 'Vendor Credit Note')] -
journal_idMany2one → account.journalcomodel_name='account.journal'required=Truestring='Journal' -
product_idMany2one → product.productcomodel_name='product.product'required=Truestring='Product' -
settlements_idsMany2many → agreement.rebate.settlementcomodel_name='agreement.rebate.settlement'string='Rebate settlements'
-
action_create_invoice(self) -
action_show_invoices(self, invoices)
New fields (2)
-
nameCharstring='Rebate condition' -
rebate_domainCharstring='Domain'
No public methods.
New fields (8)
-
agreement_idMany2one → agreementcomodel_name='agreement'string='Agreement' -
rebate_category_idsMany2many → product.categorycomodel_name='product.category'string='Product categories' -
rebate_condition_idMany2one → agreement.rebate.conditioncomodel_name='agreement.rebate.condition'string='Rebate condition' -
rebate_discountFloat -
rebate_domainCharcompute='_compute_rebate_domain'readonly=Falsestore=True -
rebate_product_idsMany2many → product.productcomodel_name='product.product'string='Products' -
rebate_product_tmpl_idsMany2many → product.templatecomodel_name='product.template'string='Product templates' -
rebate_targetSelectionargs: [('product', 'Product variant'), ('product_tmpl', 'Product templates'), ('category', 'Product categories'), ('condition', 'Rebate condition'), ('domain', 'Rebate domain')]
No public methods.
New fields (4)
-
agreement_idMany2one → agreementcomodel_name='agreement'string='Agreement' -
amount_fromFloatstring='From' -
amount_toFloatstring='To' -
rebate_discountFloatstring='% Dto'
No public methods.
New fields (11)
-
activeBooleandefault=True -
amount_invoicedFloat -
amount_rebateFloat -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>index=Truerequired=Truestring='Company' -
dateDatedefault=fields.Date.today -
date_fromDate -
date_toDate -
invoice_idMany2one → account.movecomodel_name='account.move'string='Invoice' -
line_idsOne2many → agreement.rebate.settlement.linecomodel_name='agreement.rebate.settlement.line'inverse_name='settlement_id'string='Settlement Lines' -
nameChardefault='/'required=True -
partner_idMany2one → res.partnercomodel_name='res.partner'string='Partner'
-
action_show_agreement(self) -
action_show_detail(self) -
action_show_settlement(self) -
action_show_settlement_lines(self) -
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (18)
-
activeBooleandefault=True -
agreement_idMany2one → agreementcomodel_name='agreement'required=Truestring='Agreement' -
amount_fromFloatreadonly=Truestring='From' -
amount_grossFloat -
amount_invoicedFloat -
amount_rebateFloat -
amount_toFloatreadonly=Truestring='To' -
company_idMany2one → res.companycomodel_name='res.company'related='settlement_id.company_id'string='Company' -
dateDaterelated='settlement_id.date'store=True -
invoice_line_idsMany2many → account.move.linecolumn1='settlement_line_id'column2='invoice_line_id'comodel_name='account.move.line'relation='agreement_rebate_settlement_line_account_invoice_line_rel'string='Invoice lines' -
invoice_statusSelectioncompute='_compute_invoice_status'readonly=Falsestore=True args: [('invoiced', 'Fully Invoiced'), ('to_invoice', 'To Invoice'), ('no', 'Nothing to Invoice')] -
partner_idMany2one → res.partnercomodel_name='res.partner'string='Partner' -
percentFloatreadonly=True -
rebate_line_idMany2one → agreement.rebate.linecomodel_name='agreement.rebate.line'string='Rebate Line' -
rebate_section_idMany2one → agreement.rebate.sectioncomodel_name='agreement.rebate.section'string='Rebate section' -
rebate_typeSelectionrelated='agreement_id.rebate_type'string='Rebate type' -
settlement_idMany2one → agreement.rebate.settlementcomodel_name='agreement.rebate.settlement'ondelete='cascade'string='Rebate settlement' -
target_domainChar
-
action_show_detail(self) -
write(self, vals)
New fields (8)
-
agreement_idsMany2many → agreementcomodel_name='agreement'string='Agreements' -
agreement_type_idsMany2many → agreement.typecomodel_name='agreement.type'string='Agreement types' -
dateDatedefault=fields.Date.today -
date_fromDatestring='From' -
date_toDaterequired=Truestring='To' -
discard_settled_agreementBooleandefault='True'help='If checked, the agreements with settlements in selected period will be discard'string='Discard settled agreements' -
domainSelectiondefault='sale' args: '_domain_selection' -
journal_idsMany2many → account.journalcomodel_name='account.journal'string='Journals'
-
action_create_settlement(self) -
get_agregate_fields(self) -
get_settlement_key(self, agreement)
New fields (1)
-
is_rebateBooleanstring='Is rebate agreement type'
No public methods.
Loading…
Loading…
Loading…
Loading…