TIP: You can type at any time to perform a new search.
VAT on payment
account_vat_on_payment · OCA/account-payment
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
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=`. migration-old-style-fields · sourceAccountInvoice— Class 'AccountInvoice' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. 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
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/account-payment · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Generic Modules/Accounting
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.agilebg.com
- Last tracking update
- 2026-08-07 07:17:47
- Authors
- Agile Business Group
- Maintainers
- Agile Business Group
- Committers
- Pedro M. Baeza, Stéphane Bidoul (ACSONE)
- Odoo dependencies
- None
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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
Code Analysis
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)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
onchange_company_id(self, cr, uid, ids, company_id, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
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
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
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)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…