Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
25 changed files with 469 additions and 195 deletions
-
3README.md
-
1account_bank_statement_import/README.rst
-
3account_bank_statement_import/__openerp__.py
-
54account_bank_statement_import/i18n/de.po
-
54account_bank_statement_import/i18n/es.po
-
54account_bank_statement_import/i18n/fi.po
-
56account_bank_statement_import/i18n/fr.po
-
52account_bank_statement_import/i18n/it.po
-
67account_bank_statement_import/i18n/lt_LT.po
-
54account_bank_statement_import/i18n/nl.po
-
56account_bank_statement_import/i18n/pt_BR.po
-
56account_bank_statement_import/i18n/pt_PT.po
-
56account_bank_statement_import/i18n/sl.po
-
3account_bank_statement_import/models/__init__.py
-
17account_bank_statement_import/models/account_bank_statement.py
-
6account_bank_statement_import/models/account_bank_statement_import.py
-
14account_bank_statement_import/models/account_journal.py
-
8account_bank_statement_import/models/res_partner_bank.py
-
5account_bank_statement_import/tests/test_import_bank_statement.py
-
17account_bank_statement_import/views/account_journal.xml
-
8account_bank_statement_import_camt/camt.py
-
4account_bank_statement_import_camt/tests/test_import_bank_statement.py
-
6account_bank_statement_import_ofx/account_bank_statement_import_ofx.py
-
4account_bank_statement_import_ofx/tests/test_import_bank_statement.py
-
6account_bank_statement_import_save_file/i18n/de.po
@ -1,5 +1,6 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from . import res_partner_bank |
|||
from . import account_bank_statement |
|||
from . import account_bank_statement_import |
|||
from . import account_config_settings |
|||
from . import account_journal |
@ -0,0 +1,17 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2009-2016 Noviat |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
from openerp import api, models |
|||
|
|||
|
|||
class AccountBankStatement(models.Model): |
|||
_inherit = 'account.bank.statement' |
|||
|
|||
@api.model |
|||
def create(self, vals): |
|||
if vals.get('name'): |
|||
journal = self.env['account.journal'].browse( |
|||
vals.get('journal_id')) |
|||
if journal.enforce_sequence: |
|||
vals['name'] = '/' |
|||
return super(AccountBankStatement, self).create(vals) |
@ -0,0 +1,14 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2009-2016 Noviat |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
from openerp import models, fields |
|||
|
|||
|
|||
class account_journal(models.Model): |
|||
_inherit = 'account.journal' |
|||
|
|||
enforce_sequence = fields.Boolean( |
|||
string="Enforce Sequence", |
|||
help="If checked, the Journal Sequence will determine " |
|||
"the statement naming policy even if the name is already " |
|||
"set manually or by the statement import software.") |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="view_account_journal_form" model="ir.ui.view"> |
|||
<field name="name">account.journal.enforce_sequence</field> |
|||
<field name="model">account.journal</field> |
|||
<field name="inherit_id" ref="account.view_account_journal_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="sequence_id" position="after"> |
|||
<field name="enforce_sequence" attrs="{'invisible': [('type', '!=', 'bank')]}"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue