summaryrefslogtreecommitdiff
path: root/addons/l10n_ae/data
diff options
context:
space:
mode:
authorOlivier Colson <oco@odoo.com>2019-04-19 10:06:07 +0000
committerOlivier Colson <oco@odoo.com>2019-05-10 11:52:58 +0000
commit3936d655c4bfd845b6ead724cecdc8e7c62816eb (patch)
tree402e137e0fa09b06c1b237ab6a346670dea480c2 /addons/l10n_ae/data
parent574295df57d8da78ca6109f277a5a2332bf38101 (diff)
[IMP] account, l10n_*: v13 taxes
- Add repartition lines on taxes - Link account tags directly to account.move.line; remove the tag_ids field from account.tag - Add a new report engine dedicated to tax reports, directly generating account tags. It is called as an alternate mode of generic tax report, with a dedicated "Use tax grids" toggle. >> The biggest change lies in the way the new tax report computes its values. Everything is now aggregated directly using the tags set on the account move lines. Thanks to that, modifying the configuration of a tax today will not impact the report for the previous periods anymore. This is a big improvement, as it means the report will keep on reflecting the values that were submitted to the state before, whatever the configuration change. - Add an audit char field to account.move.line telling with tax grids are impacted by the line, with the corresponding amount - Modify the behavior of cash basis taxes: the cash basis account is now used as the transition account, while the regular account given in tax declaration is used to store the final entry (it was the opposite before) - Modify every l10n_* module in order to keep them consistent with these changes closes odoo/odoo#32833 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/l10n_ae/data')
-rw-r--r--addons/l10n_ae/data/account_tax_template_data.xml52
1 files changed, 48 insertions, 4 deletions
diff --git a/addons/l10n_ae/data/account_tax_template_data.xml b/addons/l10n_ae/data/account_tax_template_data.xml
index eb60fb97ba8..198d573bc10 100644
--- a/addons/l10n_ae/data/account_tax_template_data.xml
+++ b/addons/l10n_ae/data/account_tax_template_data.xml
@@ -5,17 +5,61 @@
<field name="name">Tax 10%</field>
<field name="amount">10</field>
<field name="type_tax_use">sale</field>
- <field name="account_id" ref="uae_account_3785"/>
- <field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="tax_group_15"/>
+ <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'base',
+ }),
+
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'tax',
+ 'account_id': ref('uae_account_3785'),
+ }),
+ ]"/>
+ <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'base',
+ }),
+
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'tax',
+ 'account_id': ref('uae_account_3785'),
+ }),
+ ]"/>
</record>
<record id="purchase_tax_template" model="account.tax.template">
<field name="chart_template_id" ref="uae_chart_template_standard"/>
<field name="name">Purchase Tax 10%</field>
<field name="amount">10</field>
<field name="type_tax_use">purchase</field>
- <field name="account_id" ref="uae_account_3726"/>
- <field name="refund_account_id" ref="uae_account_3726"/>
<field name="tax_group_id" ref="tax_group_15"/>
+ <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'base',
+ }),
+
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'tax',
+ 'account_id': ref('uae_account_3726'),
+ }),
+ ]"/>
+ <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'base',
+ }),
+
+ (0,0, {
+ 'factor_percent': 100,
+ 'repartition_type': 'tax',
+ 'account_id': ref('uae_account_3726'),
+ }),
+ ]"/>
</record>
</odoo>