~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to pxgo_account_admin_tools/account_move_importer_wizard.xml

  • Committer: Borja L.S.
  • Date: 2010-05-20 17:10:42 UTC
  • Revision ID: borjals@pexego.es-20100520171042-iot70m8r9b80uyko
[ADD] pxgo_account_admin_tools: New accounting wizards for administrators
  
  Account Adminitration Tools:
  
- Adds a wizard to import accounts from CSV files. This may be useful
  to import the initial accounts into OpenERP.

- Adds a wizard to import account moves from CSV files. This may be 
  useful to import the initial balance into OpenERP.

- Adds a wizard to set the receivable/payable account of the partners,
  in moves and invoices where a generic receivable/payable account
  was used instead.

- Adds a wizard to revalidate confirmed account moves so their analytic
  lines are regenerated. This may be used to fix the data after bugs 
  like https://bugs.launchpad.net/openobject-addons/+bug/582988
  The wizard also lets you find account moves missing their analytic 
  lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
        <record id="view_pxgo_account_move_importer_wizard_form" model="ir.ui.view">
 
6
            <field name="name">pxgo_account_move_importer_wizard.form</field>
 
7
            <field name="model">pxgo_account_move_importer_wizard</field>
 
8
            <field name="type">form</field>
 
9
            <field name="arch" type="xml">
 
10
                <form string="Account move importer">
 
11
                    <label string="This wizard will import one account move from a CSV file." colspan="4"/>
 
12
                    <label string="Note: It will fail if any of the accounts do not exist in OpenERP." colspan="4"/>
 
13
                    <label string=""/>
 
14
                    <newline/>
 
15
                    <group string="Account move parameters" colspan="4">
 
16
                        <label string="Select the parameters for the account move"/>
 
17
                        <group colspan="4">
 
18
                            <field name="ref"/>
 
19
                            <field name="company_id"/>
 
20
                            <newline/>
 
21
                            <field name="journal_id"/>
 
22
                            <field name="type"/>
 
23
                            <newline/>
 
24
                            <field name="period_id"/>
 
25
                            <field name="date"/>
 
26
                        </group>
 
27
                    </group>
 
28
                    <group string="Input file" colspan="4">
 
29
                        <label string="Select the CSV file with the lines for the account move"/>
 
30
                        <group colspan="4">
 
31
                            <field name="input_file_name" string="File"/>
 
32
                            <field name="input_file" filename="input_file_name" nolabel="1"/>
 
33
                            <group colspan="2">
 
34
                                <separator string="File format" colspan="4"/>
 
35
                                <field name="csv_delimiter"/>
 
36
                                <field name="csv_quotechar"/>
 
37
                                <field name="csv_thousands_separator"/>
 
38
                                <field name="csv_decimal_separator"/>
 
39
                            </group>
 
40
                            <group colspan="2">
 
41
                                <separator string="Record format" colspan="4"/>
 
42
                                <field name="csv_code_index"/>
 
43
                                <field name="csv_code_regexp"/>
 
44
                                <field name="csv_ref_index"/>
 
45
                                <field name="csv_ref_regexp"/>
 
46
                                <field name="csv_debit_index"/>
 
47
                                <field name="csv_debit_regexp"/>
 
48
                                <field name="csv_credit_index"/>
 
49
                                <field name="csv_credit_regexp"/>
 
50
                            </group>
 
51
                        </group>
 
52
                    </group>
 
53
                    <group colspan="4">
 
54
                        <button string="Cancel" special="cancel" icon="gtk-cancel"/>
 
55
                        <button string="Import" name="action_import" type="object" icon="gtk-ok"/>
 
56
                    </group>
 
57
                </form>
 
58
            </field>
 
59
        </record>
 
60
 
 
61
        <record id="action_pxgo_account_move_importer_wizard" model="ir.actions.act_window">
 
62
            <field name="name">Import Account Move from CSV</field>
 
63
            <field name="res_model">pxgo_account_move_importer_wizard</field>
 
64
            <field name="view_type">form</field>
 
65
            <field name="view_mode">form</field>
 
66
            <field name="target">new</field>
 
67
        </record>
 
68
        <menuitem id="menu_action_pxgo_account_move_importer_wizard"
 
69
            parent="menu_action_pxgo_account_admin_tools"
 
70
            action="action_pxgo_account_move_importer_wizard"
 
71
            sequence="20"/>
 
72
 
 
73
    </data>
 
74
</openerp>
 
 
b'\\ No newline at end of file'