-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_report.xml
103 lines (94 loc) · 4.29 KB
/
account_report.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!--
<report
auto="False"
id="account_invoicesIII"
model="account.invoice"
name="account.invoice"
rml="l10n_se/report/account_print_invoice.rml"
string="Invoices"
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
usage="default"
multi="True"/>
-->
<record id="view_l10n_no_account_vat_declaration" model="ir.ui.view">
<field name="name">Account Tax Declaration</field>
<field name="model">l10n_no_vatreport.vat.declaration</field>
<field name="arch" type="xml">
<form string="Taxes Report">
<label colspan="4" string="This menu prints a tax declaration based on invoices or payments. Select one or several periods of the fiscal year. The information required for a tax declaration is automatically generated by Odoo from invoices (or payments, in some countries). This data is updated in real time. That’s very useful because it enables you to preview at any time the tax that you owe at the start and end of the month or quarter."/>
<group string="Taxes Report" col="4">
<field name="chart_tax_id" widget='selection'/>
<field name="fiscalyear_id"/>
<field name="display_detail"/>
<!--- <field name="based_on"/>--> <!-- the option based_on 'payment' is probably not fully compliant with what the users understand with that term. So, currently, it's seems better to remove it from the view to avoid further problems -->
</group>
<group string="Periods" col="4">
<field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
<field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
</group>
<footer>
<button name="create_vat" string="Print Tax Statement" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
<!-- report hadde model
model="l10n_no.vat.declaration"
-->
<report
id="action_report_vat"
model="account.tax.code"
report_type="qweb-html"
string="Account tax"
name="l10n_no_vatreport.report_vat"
file="l10n_no_vatreport.report_vat_file"
/>
<!--
<report
auto="False"
id="account_l10n_no_vat_declarationIII"
menu="True"
model="account.tax.code"
name="account.vat.declarationIII"
file="account.vat.declarationIIItemplate"
report_type="qweb-html"
string="Taxes Report III"/>
-->
<record id="action_l10n_no_account_vat_declaration" model="ir.actions.act_window">
<field name="name">Account Tax Declaration</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_no_vatreport.vat.declaration</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem name="Taxes report NO" parent="account.menu_tax_report" action="action_l10n_no_account_vat_declaration" id="menu_account_vat_decl3" />
<!--
<menuitem
name="Taxes Report NO"
parent="account.menu_tax_report"
action="action_account_vat_declaration"
id="menu_account_vat_declarationIII"
/> -->
<!-- gg
<menuitem
id="menu_tax_reportIII"
name="Taxes III"
groups="account.group_account_user,account.group_account_manager"
parent="account.menu_finance_generic_reporting" sequence="4"/>
-->
<!--
<menuitem
name="Taxes Report"
parent="menu_tax_report"
action="action_account_vat_declaration"
id="menu_account_vat_declaration"
icon="STOCK_PRINT"/>
-->
</data>
</openerp>