Browse Source
Merge pull request #6 from akretion/8.0-new-backport-from-master
Merge pull request #6 from akretion/8.0-new-backport-from-master
New backport from odoo/masterpull/8/head
Pedro M. Baeza
10 years ago
16 changed files with 597 additions and 199 deletions
-
5account_bank_statement_import/__openerp__.py
-
322account_bank_statement_import/account_bank_statement_import.py
-
29account_bank_statement_import/account_bank_statement_import_view.xml
-
178account_bank_statement_import/static/description/icon_src.svg
-
7account_bank_statement_import_ofx/__openerp__.py
-
71account_bank_statement_import_ofx/account_bank_statement_import_ofx.py
-
27account_bank_statement_import_ofx/demo/demo_data.xml
-
BINaccount_bank_statement_import_ofx/static/description/icon.png
-
4account_bank_statement_import_ofx/tests/__init__.py
-
11account_bank_statement_import_ofx/tests/test_import_bank_statement.py
-
22account_bank_statement_import_qif/__openerp__.py
-
81account_bank_statement_import_qif/account_bank_statement_import_qif.py
-
24account_bank_statement_import_qif/account_bank_statement_import_qif_view.xml
-
BINaccount_bank_statement_import_qif/static/description/icon.png
-
4account_bank_statement_import_qif/tests/__init__.py
-
11account_bank_statement_import_qif/tests/test_import_bank_statement.py
@ -0,0 +1,178 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<svg |
|||
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|||
xmlns:cc="http://creativecommons.org/ns#" |
|||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|||
xmlns:svg="http://www.w3.org/2000/svg" |
|||
xmlns="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
|||
enable-background="new 0 0 100 100" |
|||
height="100px" |
|||
id="Layer_1" |
|||
version="1.1" |
|||
viewBox="0 0 100 100" |
|||
width="100px" |
|||
xml:space="preserve" |
|||
inkscape:version="0.48.2 r9819" |
|||
sodipodi:docname="1409271720_Noun_Project_100Icon_10px_grid-17.svg" |
|||
inkscape:export-filename="/Users/arthurmaniet/Desktop/icon.png" |
|||
inkscape:export-xdpi="115.2" |
|||
inkscape:export-ydpi="115.2"><metadata |
|||
id="metadata9"><rdf:RDF><cc:Work |
|||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type |
|||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs |
|||
id="defs7" /><sodipodi:namedview |
|||
pagecolor="#ffffff" |
|||
bordercolor="#666666" |
|||
borderopacity="1" |
|||
objecttolerance="10" |
|||
gridtolerance="10" |
|||
guidetolerance="10" |
|||
inkscape:pageopacity="0" |
|||
inkscape:pageshadow="2" |
|||
inkscape:window-width="1733" |
|||
inkscape:window-height="1001" |
|||
id="namedview5" |
|||
showgrid="false" |
|||
inkscape:zoom="11.62" |
|||
inkscape:cx="21.99675" |
|||
inkscape:cy="56.127828" |
|||
inkscape:window-x="76" |
|||
inkscape:window-y="0" |
|||
inkscape:window-maximized="0" |
|||
inkscape:current-layer="Layer_1" /><path |
|||
d="M79.043,31.615l-5.742,5.742V13h-58v74h58V48.67l11.398-11.399L79.043,31.615z M71.301,39.357L50.758,59.898l-1.414,4.242 l-1.414,4.244l8.486-2.828L71.301,50.67V85h-54V15h54V39.357z M54.564,65.119l-3.182,1.06l-1.248-1.248l1.061-3.182l3.1,3.099 L54.564,65.119z" |
|||
id="path3" /><text |
|||
xml:space="preserve" |
|||
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" |
|||
x="18.006462" |
|||
y="17.887218" |
|||
id="text2986" |
|||
sodipodi:linespacing="125%"><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="17.887218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3520">08/12/13 1000.00 Delta PC</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="21.637218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3731">08/15/13 75.46 Walts Drugs</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="25.387218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3733">03/03/13 379.00 Epic Technologies</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="29.137218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3735">03/04/13 20.28 YOUR LOCAL SU</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="32.887218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3737">03/03/13 421.35 SPRINGFIELD WA</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="36.637218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3739">03/03/13 379.00 Epic Technologies</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="40.387218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3743">03/04/13 20.28 YOUR LOCAL SUP</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="44.137218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3846">08/15/13 75.46 Walts Drugs</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="47.887218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3745">08/12/13 1000.00 Delta PC</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="51.637218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3747">03/03/13 421.35 SPRINGFIELD WA</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="55.387218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3749">03/04/13 20.28 YOUR LOCAL SU</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="59.137218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3751">03/03/13 379.00 Epic Technologies</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="62.887218" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3753">08/12/13 1000.00 De a PC</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="66.637222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3755">03/03/13 379.00 E Technologies</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="70.387222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3757">08/15/13 75.46 Walts Drugs</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="74.137222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3759">03/04/13 20.28 YOUR LOCAL SU</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="77.887222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3761">03/03/13 379.00 Epic Technologies</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="81.637222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3763">08/12/13 1000.00 Delta PC</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="85.387222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3765">08/15/13 75.46 Walts Drugs</tspan><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="89.137222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3783" /><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="92.887222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3799" /><tspan |
|||
sodipodi:role="line" |
|||
x="18.006462" |
|||
y="96.637222" |
|||
style="font-size:3px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold" |
|||
id="tspan3801" /></text> |
|||
<text |
|||
xml:space="preserve" |
|||
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" |
|||
x="43.851177" |
|||
y="32.13871" |
|||
id="text3838" |
|||
sodipodi:linespacing="125%" |
|||
inkscape:export-filename="/Users/arthurmaniet/Desktop/icon.png" |
|||
inkscape:export-xdpi="115.2" |
|||
inkscape:export-ydpi="115.2"><tspan |
|||
sodipodi:role="line" |
|||
id="tspan3840" |
|||
x="43.851177" |
|||
y="32.13871" |
|||
style="font-size:16px;font-weight:bold;text-align:center;text-anchor:middle;-inkscape-font-specification:Sans Bold" /></text> |
|||
</svg> |
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="ofx_bank_journal" model="account.journal"> |
|||
<field name="name">Bank Journal - (test ofx)</field> |
|||
<field name="code">TBNKOFX</field> |
|||
<field name="type">bank</field> |
|||
<field name="sequence_id" ref="account.sequence_bank_journal"/> |
|||
<field name="default_debit_account_id" ref="account.usd_bnk"/> |
|||
<field name="default_credit_account_id" ref="account.usd_bnk"/> |
|||
<field name="user_id" ref="base.user_root"/> |
|||
<field name="currency" ref="base.USD"/> |
|||
</record> |
|||
|
|||
<record id="ofx_company_bank" model="res.partner.bank"> |
|||
<field name="owner_name">Your Company</field> |
|||
<field name="acc_number">123456</field> |
|||
<field name="partner_id" ref="base.partner_root"></field> |
|||
<field name="company_id" ref="base.main_company"></field> |
|||
<field name="journal_id" ref="ofx_bank_journal"></field> |
|||
<field name="state">bank</field> |
|||
<field name="bank" ref="base.res_bank_1"/> |
|||
</record> |
|||
</data> |
|||
|
|||
</openerp> |
After Width: 128 | Height: 128 | Size: 6.1 KiB |
@ -1,32 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# noqa: This is a backport from Odoo. OCA has no control over style here. |
|||
# flake8: noqa |
|||
|
|||
{ |
|||
'name': 'Import QIF Bank Statement', |
|||
'category' : 'Accounting & Finance', |
|||
'version': '1.0', |
|||
'author': 'OpenERP SA', |
|||
'description': ''' |
|||
Module to import QIF bank statements. |
|||
====================================== |
|||
|
|||
This module allows you to import the machine readable QIF Files in Odoo: they are parsed and stored in human readable format in |
|||
This module allows you to import the machine readable QIF Files in Odoo: they are parsed and stored in human readable format in |
|||
Accounting \ Bank and Cash \ Bank Statements. |
|||
|
|||
Bank Statements may be generated containing a subset of the QIF information (only those transaction lines that are required for the |
|||
creation of the Financial Accounting records). |
|||
|
|||
Backported from Odoo 9.0 |
|||
|
|||
When testing with the provided test file, make sure the demo data from the |
|||
base account_bank_statement_import module has been imported, or manually |
|||
create periods for the year 2013. |
|||
Important Note |
|||
--------------------------------------------- |
|||
Because of the QIF format limitation, we cannot ensure the same transactions aren't imported several times or handle multicurrency. |
|||
Whenever possible, you should use a more appropriate file format like OFX. |
|||
''', |
|||
'images' : [], |
|||
'images': [], |
|||
'depends': ['account_bank_statement_import'], |
|||
'demo': [], |
|||
'data': [], |
|||
'data': ['account_bank_statement_import_qif_view.xml'], |
|||
'auto_install': False, |
|||
'installable': True, |
|||
} |
|||
|
|||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" ?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="account_bank_statement_import_view_inherited" model="ir.ui.view"> |
|||
<field name="name">Import Bank Statements Inherited</field> |
|||
<field name="model">account.bank.statement.import</field> |
|||
<field name="priority" eval="20"/> |
|||
<field name="inherit_id" ref="account_bank_statement_import.account_bank_statement_import_view" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='data_file']" position="after"> |
|||
<field name="hide_journal_field" invisible="1"/> |
|||
<label for="journal_id"/> |
|||
<field name="journal_id" |
|||
domain="[('type', '=', 'bank')]" |
|||
attrs="{'invisible': [('hide_journal_field', '=', True)]}" |
|||
context="{'default_type':'bank'}"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
|||
|
After Width: 128 | Height: 128 | Size: 6.0 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue