21. ● Way too many fields on taxes ; unclear
○ base_code_id
○ ref_base_code_id
○ tax_code_id
○ ref_tax_code_id
○ tax_sign
○ ref_tax_sign
Tax codes were not so great
22.
23. ● tax_amount field
● Both credit and debit = 0 on some lines
○ For base lines, when multiple taxes need to apply
Tax codes were not so great
28. The Big Picture
● New model: account.tax.repartition.line
● tag_ids directly on account.move.line
● Generalize account.generic.tax.report
● New model: account.tax.report.line
31. Taxes Today
● Tags are signed
● Tax templates reference tax report lines through dedicated
fields, depending on the tag (+ or -) to be used
32. Taxes Today
● No more need to declare groups of taxes for complex taxes
33. Taxes Today
● No more need to declare tax groups for complex taxes
34. The New Tax Report
● Make tax report XML declaration more explicit
35. The New Tax Report
● One tag per line, no more domain
● Tags are now automatically created by report lines
36. The New Tax Report
● No more sum.balance / -sum.balance
● Signs are directly on tags
37. The New Tax Report
● No need to have the resulting move lines in mind anymore
○ Example: 1 refund + 1 invoice with base 100$
38. The New Tax Report
● No need to have the resulting move lines in mind anymore
○ Example: 1 refund + 1 invoice with base 100$
39. The New Tax Report
● No need to have the resulting move lines in mind anymore
○ Example: 1 refund + 1 invoice with base 100$
40. The New Tax Report
● No need to have the resulting move lines in mind anymore
○ Example: 1 refund + 1 invoice with base 100$
■ To do the same in v12, 3 financial report lines:
● An invisible subline with
● Another invisible subline with
● The actual line, summing both sublines with
41. The New Tax Report
● It is still possible to combine lines in a formula
42. The New Tax Report
● No additional menu items anymore
● The generic report now manages everything
45. Can we still use
the old way ?
● Financial and SQL-based reports are still possible
○ With a few minor changes
● But you should always ask yourself if it should be done so ;)
46. The Old Way, The New Way
● You can still define the tags directly in XML
47. The Old Way, The New Way
● A dedicated field in tax templates allows referencing XML tags
● No question of sign here, just like in v12
48. The Old Way, The New Way
● The tags are then assigned to move lines, as usual
● Referencing them can be done from financial reports using
their tag_ids field