| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="l10n_hu_edi_tax_audit_export_form" model="ir.ui.view"> |
| 5 | <field name="name">l10n_hu_edi.tax_audit_export.form</field> |
| 6 | <field name="model">l10n_hu_edi.tax_audit_export</field> |
| 7 | <field name="arch" type="xml"> |
| 8 | <form> |
| 9 | <group> |
| 10 | <field name="selection_mode" widget="radio"/> |
| 11 | <group> |
| 12 | <field name="date_from" invisible="selection_mode != 'date'"/> |
| 13 | <field name="name_from" invisible="selection_mode != 'name'"/> |
| 14 | </group> |
| 15 | <group> |
| 16 | <field name="date_to" invisible="selection_mode != 'date'"/> |
| 17 | <field name="name_to" invisible="selection_mode != 'name'"/> |
| 18 | </group> |
| 19 | </group> |
| 20 | <div invisible="not export_file"> |
| 21 | <field name="export_file" widget="binary" filename="filename" readonly="1"/> |
| 22 | <field name="filename" invisible="1"/> |
| 23 | </div> |
| 24 | <footer> |
| 25 | <button string="Export" name="action_export" type="object" default_focus="1" class="btn-primary"/> |
| 26 | <button string="Close" special="cancel" default_focus="1" class="btn-primary"/> |
| 27 | </footer> |
| 28 | </form> |
| 29 | </field> |
| 30 | </record> |
| 31 | |
| 32 | <record id="action_l10n_hu_edi_tax_audit_export_form" model="ir.actions.act_window"> |
| 33 | <field name="name">Tax audit export - Adóhatósági Ellenőrzési Adatszolgáltatás</field> |
| 34 | <field name="res_model">l10n_hu_edi.tax_audit_export</field> |
| 35 | <field name="view_mode">form</field> |
| 36 | <field name="view_id" ref="l10n_hu_edi.l10n_hu_edi_tax_audit_export_form"/> |
| 37 | <field name="target">new</field> |
| 38 | </record> |
| 39 | |
| 40 | <menuitem id="menu_finance_reports_hu" name="Hungary" parent="account.menu_finance_reports" sequence="30"/> |
| 41 | <menuitem id="menu_hu_tax_audit_export" |
| 42 | name="Tax audit export - Adóhatósági Ellenőrzési Adatszolgáltatás" |
| 43 | parent="menu_finance_reports_hu" |
| 44 | sequence="40" |
| 45 | action="action_l10n_hu_edi_tax_audit_export_form"/> |
| 46 | |
| 47 | </odoo> |