mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-27 14:37:25 +00:00
[12.0][MIG] account_ebics
This commit is contained in:
parent
abb222970e
commit
a1975ebeea
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'EBICS banking protocol',
|
'name': 'EBICS banking protocol',
|
||||||
'version': '11.0.1.7.0',
|
'version': '12.0.1.0.0',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'Noviat',
|
'author': 'Noviat',
|
||||||
'category': 'Accounting & Finance',
|
'category': 'Accounting & Finance',
|
||||||
|
@ -371,7 +371,7 @@ class EbicsConfig(models.Model):
|
|||||||
tmp_dir = os.path.normpath(self.ebics_files + '/tmp')
|
tmp_dir = os.path.normpath(self.ebics_files + '/tmp')
|
||||||
if not os.path.isdir(tmp_dir):
|
if not os.path.isdir(tmp_dir):
|
||||||
os.makedirs(tmp_dir, mode=0o700)
|
os.makedirs(tmp_dir, mode=0o700)
|
||||||
fn_date = fields.Date.today()
|
fn_date = fields.Date.today().isoformat()
|
||||||
fn = '_'.join([self.ebics_host, 'ini_letter', fn_date]) + '.pdf'
|
fn = '_'.join([self.ebics_host, 'ini_letter', fn_date]) + '.pdf'
|
||||||
full_tmp_fn = os.path.normpath(tmp_dir + '/' + fn)
|
full_tmp_fn = os.path.normpath(tmp_dir + '/' + fn)
|
||||||
user.create_ini_letter(
|
user.create_ini_letter(
|
||||||
@ -427,7 +427,7 @@ class EbicsConfig(models.Model):
|
|||||||
tmp_dir = os.path.normpath(self.ebics_files + '/tmp')
|
tmp_dir = os.path.normpath(self.ebics_files + '/tmp')
|
||||||
if not os.path.isdir(tmp_dir):
|
if not os.path.isdir(tmp_dir):
|
||||||
os.makedirs(tmp_dir, mode=0o700)
|
os.makedirs(tmp_dir, mode=0o700)
|
||||||
fn_date = fields.Date.today()
|
fn_date = fields.Date.today().isoformat()
|
||||||
fn = '_'.join([self.ebics_host, 'public_bank_keys', fn_date]) + '.txt'
|
fn = '_'.join([self.ebics_host, 'public_bank_keys', fn_date]) + '.txt'
|
||||||
self.write({
|
self.write({
|
||||||
'ebics_public_bank_keys': base64.encodestring(public_bank_keys),
|
'ebics_public_bank_keys': base64.encodestring(public_bank_keys),
|
||||||
|
@ -50,7 +50,6 @@
|
|||||||
</group>
|
</group>
|
||||||
<notebook>
|
<notebook>
|
||||||
<page string="Keys" groups="account_ebics.group_ebics_manager">
|
<page string="Keys" groups="account_ebics.group_ebics_manager">
|
||||||
<label string=""/>
|
|
||||||
<header>
|
<header>
|
||||||
<button name="ebics_init_1" states="draft" string="EBICS Initialisation" type="object" class="oe_highlight"
|
<button name="ebics_init_1" states="draft" string="EBICS Initialisation" type="object" class="oe_highlight"
|
||||||
groups="account.group_account_manager"
|
groups="account.group_account_manager"
|
||||||
@ -87,7 +86,9 @@
|
|||||||
<field name="ebics_public_bank_keys" filename="ebics_public_bank_keys_fn"/>
|
<field name="ebics_public_bank_keys" filename="ebics_public_bank_keys_fn"/>
|
||||||
</group>
|
</group>
|
||||||
<group col="4" name="dn" attrs="{'invisible': [('ebics_key_x509', '=', False)]}">
|
<group col="4" name="dn" attrs="{'invisible': [('ebics_key_x509', '=', False)]}">
|
||||||
<label string="Distinguished Name attributes used to create self-signed X.509 certificates:" colspan="4"/>
|
<group colspan="4" col="1">
|
||||||
|
<strong>Distinguished Name attributes used to create self-signed X.509 certificates:</strong>
|
||||||
|
</group>
|
||||||
<group name="dn_l" colspan="2">
|
<group name="dn_l" colspan="2">
|
||||||
<field name="ebics_key_x509_dn_cn"/>
|
<field name="ebics_key_x509_dn_cn"/>
|
||||||
<field name="ebics_key_x509_dn_o"/>
|
<field name="ebics_key_x509_dn_o"/>
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
</group>
|
</group>
|
||||||
<newline/>
|
<newline/>
|
||||||
<group expand="0" string="Group By">
|
<group expand="0" string="Group By">
|
||||||
<filter string="File Format" context="{'group_by':'format_id'}"/>
|
<filter string="File Format" name="file_format" context="{'group_by':'format_id'}"/>
|
||||||
<filter string="State" context="{'group_by':'state'}"/>
|
<filter string="State" name="state" context="{'group_by':'state'}"/>
|
||||||
<filter string="User" context="{'group_by':'user_id'}"/>
|
<filter string="User" name="user" context="{'group_by':'user_id'}"/>
|
||||||
<filter string="Company" domain="[]" groups="base.group_multi_company" context="{'group_by':'company_id'}"/>
|
<filter string="Company" name="domain" domain="[]" groups="base.group_multi_company" context="{'group_by':'company_id'}"/>
|
||||||
</group>
|
</group>
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
|
@ -48,7 +48,6 @@ class EbicsXfer(models.TransientModel):
|
|||||||
comodel_name='ebics.config',
|
comodel_name='ebics.config',
|
||||||
string='EBICS Configuration',
|
string='EBICS Configuration',
|
||||||
domain=[('state', '=', 'active')],
|
domain=[('state', '=', 'active')],
|
||||||
required=True,
|
|
||||||
default=lambda self: self._default_ebics_config_id())
|
default=lambda self: self._default_ebics_config_id())
|
||||||
ebics_passphrase = fields.Char(
|
ebics_passphrase = fields.Char(
|
||||||
string='EBICS Passphrase')
|
string='EBICS Passphrase')
|
||||||
@ -168,8 +167,12 @@ class EbicsXfer(models.TransientModel):
|
|||||||
params['filetype'] = df.name
|
params['filetype'] = df.name
|
||||||
if order_type in ['FDL', 'C53']:
|
if order_type in ['FDL', 'C53']:
|
||||||
params.update({
|
params.update({
|
||||||
'start': self.date_from or None,
|
'start':
|
||||||
'end': self.date_to or None,
|
self.date_from and self.date_from.isoformat()
|
||||||
|
or None,
|
||||||
|
'end':
|
||||||
|
self.date_to and self.date_to.isoformat()
|
||||||
|
or None,
|
||||||
})
|
})
|
||||||
kwargs = {k: v for k, v in params.items() if v}
|
kwargs = {k: v for k, v in params.items() if v}
|
||||||
try:
|
try:
|
||||||
@ -447,7 +450,7 @@ class EbicsXfer(models.TransientModel):
|
|||||||
fn_parts.append(docname)
|
fn_parts.append(docname)
|
||||||
else:
|
else:
|
||||||
fn_date = self.date_to or fields.Date.today()
|
fn_date = self.date_to or fields.Date.today()
|
||||||
fn_parts.append(fn_date)
|
fn_parts.append(fn_date.isoformat())
|
||||||
base_fn = '_'.join(fn_parts)
|
base_fn = '_'.join(fn_parts)
|
||||||
n = 1
|
n = 1
|
||||||
full_tmp_fn = os.path.normpath(tmp_dir + '/' + base_fn)
|
full_tmp_fn = os.path.normpath(tmp_dir + '/' + base_fn)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<form string="EBICS File Download">
|
<form string="EBICS File Download">
|
||||||
<group>
|
<group>
|
||||||
<separator string="Select your bank :" colspan="2"/>
|
<separator string="Select your bank :" colspan="2"/>
|
||||||
<field name="ebics_config_id" options="{'no_create': True, 'no_open': True}"/>
|
<field name="ebics_config_id" required="1" options="{'no_create': True, 'no_open': True}"/>
|
||||||
<field name="date_from"/>
|
<field name="date_from"/>
|
||||||
<field name="date_to"/>
|
<field name="date_to"/>
|
||||||
<field name="format_id"/>
|
<field name="format_id"/>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
<form string="EBICS File Upload">
|
<form string="EBICS File Upload">
|
||||||
<group>
|
<group>
|
||||||
<separator string="Select your bank :" colspan="2"/>
|
<separator string="Select your bank :" colspan="2"/>
|
||||||
<field name="ebics_config_id" options="{'no_create': True, 'no_open': True}"/>
|
<field name="ebics_config_id" required="1" options="{'no_create': True, 'no_open': True}"/>
|
||||||
<separator string="Select your file :" colspan="2"/>
|
<separator string="Select your file :" colspan="2"/>
|
||||||
<field name="upload_data" filename="upload_fname" required="1"/>
|
<field name="upload_data" filename="upload_fname" required="1"/>
|
||||||
<field name="upload_fname" invisible="1"/>
|
<field name="upload_fname" invisible="1"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user