mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-12-25 10:51:44 +00:00
[12.0][ENH]camt.052 support
This commit is contained in:
parent
f117483f96
commit
59127c8b0a
@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
'name': 'EBICS banking protocol',
|
||||
'version': '12.0.1.0.0',
|
||||
'version': '12.0.1.0.1',
|
||||
'license': 'LGPL-3',
|
||||
'author': 'Noviat',
|
||||
'category': 'Accounting & Finance',
|
||||
|
@ -14,6 +14,18 @@
|
||||
<field name="suffix">c53.xml</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
File format tested with the following banks:
|
||||
- Kreissparkasse Göppingen (Germany)
|
||||
-->
|
||||
<record id="ebics_ff_camt_052_001_02_stm" model="ebics.file.format">
|
||||
<field name="name">camt.052.001.02.stm</field>
|
||||
<field name="type">down</field>
|
||||
<field name="order_type">C52</field>
|
||||
<field name="description">Bank Statement in Format camt.052</field>
|
||||
<field name="suffix">c52.xml</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
File format tested with the following banks:
|
||||
- GLS Gemeinschaftsbank (Germany)
|
||||
@ -41,7 +53,7 @@
|
||||
<field name="description">Sepa Direct Debit (B2B) Order in Format pain.008.001.02</field>
|
||||
<field name="suffix">xml</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!--
|
||||
File format tested with the following banks:
|
||||
- Credit Suisse (Switzerland)
|
||||
|
@ -165,7 +165,7 @@ class EbicsXfer(models.TransientModel):
|
||||
params = {}
|
||||
if order_type == 'FDL':
|
||||
params['filetype'] = df.name
|
||||
if order_type in ['FDL', 'C53']:
|
||||
if order_type in ['FDL', 'C52', 'C53']:
|
||||
params.update({
|
||||
'start':
|
||||
self.date_from and self.date_from.isoformat()
|
||||
@ -399,6 +399,7 @@ class EbicsXfer(models.TransientModel):
|
||||
"""
|
||||
res = {
|
||||
'camt.xxx.cfonb120.stm': self._handle_cfonb120,
|
||||
'camt.052.001.02.stm': self._handle_camt052,
|
||||
'camt.053.001.02.stm': self._handle_camt053,
|
||||
}
|
||||
return res
|
||||
@ -535,6 +536,15 @@ class EbicsXfer(models.TransientModel):
|
||||
def _handle_cfonb240(self, data_in):
|
||||
return self._insert_line_terminator(data_in, 240)
|
||||
|
||||
def _handle_camt052(self, data_in):
|
||||
"""
|
||||
Use this method if you need to fix camt files received
|
||||
from your bank before passing them to the
|
||||
Odoo Community CAMT parser.
|
||||
Remark: Odoo Enterprise doesn't support camt.052.
|
||||
"""
|
||||
return data_in
|
||||
|
||||
def _handle_camt053(self, data_in):
|
||||
"""
|
||||
Use this method if you need to fix camt files received
|
||||
|
Loading…
Reference in New Issue
Block a user