summaryrefslogtreecommitdiff
path: root/addons/account_debit_note/tests/test_out_debit_note.py
AgeCommit message (Collapse)Author
2020-09-18[FIX] account: allow full reconciliation for tax lines on entries mixing ↵fw-bot
cash basis and regular taxes Solves https://github.com/odoo/odoo/issues/56803 Use case: 1) Create accounts ACC TAX A, ACC TAX B, with reconcile = True, internal_type = other 2) Create Tax A, with tax_exigibilty = on_invoice and account_id = ACC TAX A, 20% 3) Create Tax B, with tax_exigibilty = on_payment and account_id = ACC TAX B and cash_basic_account_id = ACC TAX A, 20% 4) Create invoice A, account_id = Tax A, unit_price = 1000, Valide invoice 5) Create invoice B, account_id = Tax B, unit_price = 500, Valide invoice, 6) Register full payment for invoice B. The cash basis tax creates a miscellaneous operation MISC A, containing a line on ACC TAX A. 7) Create a mis operation MISC TVA, like this: line 1 : account_id = ACC TAX A, credit = 300 line 2 : account_id = 401100, debit = 300 8) Reconcile the following move lines: line of MISC A with account ACC TAX A (300) line of invoice A with account ACC TAX A (200) line of MISC TVA with account ACC TAX A (100) ==> When doing that, not full reconcile object was created between the reconciled lines, while it should have been. X-original-commit: ff35a49 [IMP] account: reintroduce a test that should have been forward-ported … This test was made together with a bugfix by https://github.com/odoo/odoo/pull/51529 . The fix did not need to be forward-ported to 13.0, but the test should have been, so that we are sure it does not break again in the future. closes odoo/odoo#58051 X-original-commit: cbf2c1bc959b87ed2af7ca86202394e9520d177c Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-05[IMP] account: soft post entries in the futurewilliam
Add an easy way to not post the entries in the future when calling post() on it, but rather set it to be auto-posted at accounting date. This is useful when we are creating a lot of entries in batch and some might be in the future, some in the past, and we don't want to separate that in two batch every time. (asset, accrual, transfer,... )
2020-06-04[IMP] account,l10n_fi: Allow custom COA in accounting test suiteLaurent Smet
- A custom COA could be passed as parameter. - Merge the invoice setup to the generic suite like it is in master. forwart-port of https://github.com/odoo/odoo/commit/161498cf8a75d62f9a8e1a17c6dc62a142b85acc closes odoo/odoo#52378 X-original-commit: c0acebe2c55f7030df3bd10ad8058da6a070aa72 Related: odoo/enterprise#10921 Signed-off-by: Josse Colpaert <jco@openerp.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-02-19[IMP] account,* : Change type field to move_type in account.moveAnkita Raval
task-id: 2028z813
2020-02-17[ADD] account_debit_note: Debit Note functionalityJosse Colpaert
You might think that if the debit note is like the inverse of a credit note, that it is just a regular invoice. Well, it is, except that we had several localizations adding a link with the original invoice for the debit note. This way, we can share that many2one and add a wizard that is similar as the one for the credit once and for all. In order to keep things simple, we always create a draft debit note. The only option we give, is to copy the original invoice lines or not. You can also create a debit note from a credit note, in which case the type needs to change, but we don't copy the lines in that case (for now). opw-2181586 closes odoo/odoo#45542 X-original-commit: f1af011d0966fa6e436168879b7f18fabb955934 Signed-off-by: Josse Colpaert <jco@openerp.com>