Taxes included in expense
account_tax_expense_include_unported · OCA/l10n-canada
-
Security25/25No findings
-
Activity0/25Last human commit 121 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
account_tax— Class 'account_tax' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceaccount_tax— Class 'account_tax' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Taxes included in expense
This module adds a checkbox to tax to include tax in expense invoices. It is useful if your taxes are not included in the price, but you want to ease the life of your employees by allowing them to enter their expenses with the taxes included.
The tax calculation doesn't work in v7 and v8 for an expense. The expense now create a voucher that only has one tax rate by voucher and we can't safely select one tax rate per expense form. To fix this situation the expense form should suport the taxes like a supplier invoice form and a the end of the workflow produce a voucher and the journal entries like what is done when a supplier invoice is open.
Contributors
- Jonatan Cloutier jonatan.cloutier@savoirfairelinux.com
- Maxime Chambreuil maxime.chambreuil@savoirfairelinux.com
- Sandy Carter sandy.carter@savoirfairelinux.com
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_partner_form |
res.partner.form.expense_include | res.partner | form | Inherits base.view_partner_form |
view_tax_form |
account.tax.form.expense_include | account.tax | form | Inherits account.view_tax_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (1)-
compute_all(self, cr, uid, taxes, price_unit, quantity, product=None, partner=None, force_excluded=False):param force_excluded: boolean used to say that we don't want to consider the value of field price_include of tax. It's used in encoding by line where you don't matter if you encoded a tax with that boolean to True or False RETURN: { 'total': 0.0, # Total without taxes 'total_included: 0.0, # Total with taxes 'taxes': [] # List of taxes, see compute for the format }
Loading…
Loading…