mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX+IMP] account_statement_import: Several things post-migration:
* Read action with sudo. If not, other users from admin ones can't import statements. * Icon revamp. Now the icon is used (PNG export was needed), and a bit of tuning has been made for better appeal.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Import Statement Files",
|
"name": "Import Statement Files",
|
||||||
"category": "Accounting",
|
"category": "Accounting",
|
||||||
"version": "14.0.1.1.0",
|
"version": "14.0.1.1.1",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"depends": ["account"],
|
"depends": ["account"],
|
||||||
"author": "Odoo SA, Akretion, Odoo Community Association (OCA)",
|
"author": "Odoo SA, Akretion, Odoo Community Association (OCA)",
|
||||||
|
|||||||
@@ -25,8 +25,10 @@ class AccountJournal(models.Model):
|
|||||||
def import_statement(self):
|
def import_statement(self):
|
||||||
"""return action to import bank/cash statements.
|
"""return action to import bank/cash statements.
|
||||||
This button should be called only on journals with type =='bank'"""
|
This button should be called only on journals with type =='bank'"""
|
||||||
action = self.env.ref(
|
action = (
|
||||||
"account_statement_import.account_statement_import_action"
|
self.env.ref("account_statement_import.account_statement_import_action")
|
||||||
).read()[0]
|
.sudo()
|
||||||
|
.read()[0]
|
||||||
|
)
|
||||||
action["context"] = {"journal_id": self.id}
|
action["context"] = {"journal_id": self.id}
|
||||||
return action
|
return action
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 19 KiB |
78
account_statement_import/static/description/icon.svg
Normal file
78
account_statement_import/static/description/icon.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 426 KiB |
@@ -1,207 +0,0 @@
|
|||||||
<?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 /></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>
|
|
||||||
|
Before Width: | Height: | Size: 9.2 KiB |
Reference in New Issue
Block a user