Take into accounts the remarks of Eric Caudal

This commit is contained in:
Alexis de Lattre
2016-05-23 10:42:28 +02:00
parent bf8b706f1d
commit d4d6a301b7
17 changed files with 44 additions and 87 deletions

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
=======================
Account Banking Mandate
=======================
@@ -46,11 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_banking_mandate%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -7,7 +7,7 @@
{
'name': 'Account Banking Mandate',
'summary': 'Banking mandates',
'version': '9.0.0.2.0',
'version': '9.0.1.0.0',
'license': 'AGPL-3',
'author': "Compassion CH, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
@@ -31,7 +31,6 @@
'security/mandate_security.xml',
'security/ir.model.access.csv',
],
'demo': [],
'test': ['test/banking_mandate.yml'],
'installable': True,
}

View File

@@ -54,7 +54,7 @@ class AccountBankingMandate(models.Model):
_sql_constraints = [(
'mandate_ref_company_uniq',
'unique(unique_mandate_reference, company_id)',
'A Mandate with the same reference already exists for this company !')]
'A Mandate with the same reference already exists for this company!')]
@api.multi
@api.constrains('signature_date', 'last_debit_date')
@@ -65,7 +65,7 @@ class AccountBankingMandate(models.Model):
mandate)):
raise ValidationError(
_("The date of signature of mandate '%s' "
"is in the future !")
"is in the future!")
% mandate.unique_mandate_reference)
if (mandate.signature_date and mandate.last_debit_date and
mandate.signature_date > mandate.last_debit_date):
@@ -108,7 +108,7 @@ class AccountBankingMandate(models.Model):
for mandate in self:
if mandate.state != 'draft':
raise UserError(
_('Mandate should be in draft state'))
_('Mandate should be in draft state.'))
self.write({'state': 'valid'})
return True
@@ -117,7 +117,7 @@ class AccountBankingMandate(models.Model):
for mandate in self:
if mandate.state not in ('draft', 'valid'):
raise UserError(
_('Mandate should be in draft or valid state'))
_('Mandate should be in draft or valid state.'))
self.write({'state': 'cancel'})
return True
@@ -129,6 +129,6 @@ class AccountBankingMandate(models.Model):
for mandate in self:
if mandate.state != 'cancel':
raise UserError(
_('Mandate should be in cancel state'))
_('Mandate should be in cancel state.'))
self.write({'state': 'draft'})
return True

View File

@@ -10,5 +10,5 @@ class AccountPaymentMethod(models.Model):
mandate_required = fields.Boolean(
string='Mandate Required',
help="Activate this option is this payment method requires your "
help="Activate this option if this payment method requires your "
"customer to sign a direct debit mandate with your company.")

View File

@@ -12,5 +12,5 @@ class ResPartnerBank(models.Model):
mandate_ids = fields.One2many(
comodel_name='account.banking.mandate', inverse_name='partner_bank_id',
string='Direct Debit Mandates',
help='Banking mandates represents an authorization that the bank '
'account owner gives to a company for a specific operation')
help='Banking mandates represent an authorization that the bank '
'account owner gives to a company for a specific operation.')

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
============================
Account Banking Mandate Sale
============================
@@ -34,11 +35,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_banking_mandate_sale%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
================================
Account Banking PAIN Base Module
================================
@@ -46,11 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_banking_pain_base%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -13,9 +13,9 @@ class AccountPaymentLine(models.Model):
('NORM', 'Normal'),
('HIGH', 'High')],
string='Priority', default='NORM',
help="This field will be used as the 'Instruction Priority' in "
help="This field will be used as 'Instruction Priority' in "
"the generated PAIN file.")
# PAIN allows 140 caracters
# PAIN allows 140 characters
communication = fields.Char(size=140)
# The field struct_communication_type has been dropped in v9
# We now use communication_type ; you should add an option

View File

@@ -12,9 +12,9 @@ class AccountPaymentMethod(models.Model):
pain_version = fields.Selection([], string='PAIN Version')
convert_to_ascii = fields.Boolean(
string='Convert to ASCII', default=True,
help="If active, Odoo will convert each accented caracter to "
"the corresponding unaccented caracter, so that only ASCII "
"caracters are used in the generated PAIN file.")
help="If active, Odoo will convert each accented character to "
"the corresponding unaccented character, so that only ASCII "
"characters are used in the generated PAIN file.")
@api.multi
def get_xsd_file_path(self):

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
====================================
Account Banking SEPA Credit Transfer
====================================
@@ -32,10 +33,12 @@ This module is part of the OCA/bank-payment suite.
Configuration
=============
Create a Payment Mode dedicated to SEPA Credit Transfer and select
the Payment Method *SEPA Credit Transfer to suppliers* (which is
automatically created upon module installation) and check that this
payment method uses the proper version of PAIN.
* Create a Payment Mode dedicated to SEPA Credit Transfer.
* Select the Payment Method *SEPA Credit Transfer to suppliers* (which is
automatically created upon module installation).
* Check that this payment method uses the proper version of PAIN.
Usage
=====
@@ -59,11 +62,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_banking_sepa_credit_transfer%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
=================================
Account Banking SEPA Direct Debit
=================================
@@ -59,11 +60,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_banking_sepa_direct_debit%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -21,7 +21,7 @@ def is_sepa_creditor_identifier_valid(sepa_creditor_identifier):
sci = str(sepa_creditor_identifier).lower()
except:
logger.warning(
"SEPA Creditor ID should contain only ASCII caracters.")
"SEPA Creditor ID should contain only ASCII characters.")
return False
if len(sci) < 9:
return False

View File

@@ -28,11 +28,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_payment_mode%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -1,27 +1,11 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
Account Banking - Payments Export Infrastructure
================================================
=====================
Account Payment Order
=====================
This module provide an infrastructure to export payment orders.
It includes some bug fixes and obvious enhancements to payment orders that will hopefully land in offical addons one
day.
This technical module provides the base infrastructure to export payment orders
for electronic banking. It provides the following technical features:
* a new payment.mode.type model
* payment.mode now has a mandatory type
* a better implementation of payment_mode.suitable_bank_types() based on
payment.mode.type
* the "make payment" button launches a wizard depending on the
payment.mode.type
* a manual payment mode type is provided as an example, with a default "do
nothing" wizard
To enable the use of payment order to collect money for customers,
it adds a payment_order_type (payment|debit) as a basis of direct debit support
(this field becomes visible when account_direct_debit is installed).
This module adds support for payment orders and debit orders.
Installation
============
@@ -30,6 +14,7 @@ This module depends on:
* account_payment_partner
* base_iban
* document
This modules is part of the OCA/bank-payment suite.
@@ -62,11 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_payment_order%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -15,8 +15,8 @@ class ResBank(models.Model):
for bank in self:
if bank.bic and len(bank.bic) not in (8, 11):
raise ValidationError(_(
"A valid BIC contains 8 or 11 caracters. The BIC '%s' "
"contains %d caracters, so it is not valid.")
"A valid BIC contains 8 or 11 characters. The BIC '%s' "
"contains %d characters, so it is not valid.")
% (bank.bic, len(bank.bic)))
# in v9, on res.partner.bank bank_bic is a related of bank_id.bic

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
=======================
Account Payment Partner
=======================
@@ -50,11 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_payment_partner%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======

View File

@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
====================
Account Payment Sale
====================
@@ -50,11 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
bank-payment/issues/new?body=module:%20
account_payment_sale%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======