VAT on payment
account_vat_on_payment · OCA/account-payment
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
AccountAccount— Class 'AccountAccount' 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 · sourceAccountAccount— Class 'AccountAccount' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountConfigSettings— Class 'AccountConfigSettings' still inherits from the old-style `orm.TransientModel` 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 · sourceAccountConfigSettings— Class 'AccountConfigSettings' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountFiscalPosition— Class 'AccountFiscalPosition' 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 · sourceAccountFiscalPosition— Class 'AccountFiscalPosition' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountInvoice— Class 'AccountInvoice' 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 · sourceAccountInvoice— Class 'AccountInvoice' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceAccountJournal— Class 'AccountJournal' 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 · sourceAccountJournal— Class 'AccountJournal' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountMoveLine— Class 'AccountMoveLine' 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 · sourceAccountMoveLine— Class 'AccountMoveLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountTaxCode— Class 'AccountTaxCode' 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 · sourceAccountTaxCode— Class 'AccountTaxCode' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountVoucher— Class 'AccountVoucher' 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 · sourceAccountVoucher— Class 'AccountVoucher' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceResCompany— Class 'ResCompany' 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 · sourceResCompany— Class 'ResCompany' 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`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · 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
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) 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
See 'account_voucher_cash_basis' description.
To activate the VAT on payment behaviour, this module adds a checkbox on invoice form: 'Vat on payment'
Moreover, three things have to be configured:
- On account object, Related account used for real registrations on a VAT on payment basis
- On journal object, Related journal used for shadow registrations on a VAT on payment basis
- On tax code object, Related tax code used for real registrations on a VAT on payment basis
Requirements: http://goo.gl/Nu0wDf
Howto: http://planet.agilebg.com/en/2012/10/vat-on-payment-treatment-with-openerp/ Also, see demo and test data
Dependencies
- Odoo dependencies
- None
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form |
account.invoice.form | account.invoice | form | Inherits account.invoice_form |
invoice_supplier_form |
account.invoice.supplier.form | account.invoice | form | Inherits account.invoice_supplier_form |
view_account_form |
account.account.form | account.account | form | Inherits account.view_account_form |
view_account_journal_form |
account.journal.form | account.journal | form | Inherits account.view_account_journal_form |
view_account_settings_currency_xchange_form |
view_account_settings_currency_xchange_form | account.config.settings | form | Inherits account_voucher_cash_basis.view_account_config_settings |
view_move_line_form |
account.move.line.form | account.move.line | form | Inherits account.view_move_line_form |
view_partner_form |
account.fiscal.position.vat.default.view | account.fiscal.position | form | Inherits account.view_account_position_form |
view_tax_code_form |
account.tax.code.form | account.tax.code | form | Inherits account.view_tax_code_form |
view_vendor_payment_form_shadow_move |
account.voucher.payment.form.shadow.move | account.voucher | form | Inherits account_voucher.view_vendor_payment_form |
view_vendor_receipt_form_shadow_move |
account.voucher.receipt.form.shadow.move | account.voucher | form | Inherits account_voucher.view_vendor_receipt_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
onchange_company_id(self, cr, uid, ids, company_id, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
finalize_invoice_move_lines(self, cr, uid, ids, move_lines, context)Use shadow accounts for journal entry to be generated, according to account and tax code related records -
onchange_partner_id(self, cr, uid, ids, inv_type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False, context=False)@api.cr_uid_ids
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (3)-
action_move_line_create(self, cr, uid, ids, context=None) -
cancel_voucher(self, cr, uid, ids, context=None) -
is_vat_on_payment(self, voucher)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…