mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] Docstring
This commit is contained in:
@@ -36,17 +36,12 @@ def warning(title, message):
|
|||||||
|
|
||||||
class res_partner_bank(orm.Model):
|
class res_partner_bank(orm.Model):
|
||||||
'''
|
'''
|
||||||
This is a hack to circumvent the very limited but widely used base_iban
|
|
||||||
dependency. The usage of __mro__ requires inside information of
|
|
||||||
inheritence. This code is tested and works - it bypasses base_iban
|
|
||||||
altogether. Be sure to use 'super' for inherited classes from here though.
|
|
||||||
|
|
||||||
Extended functionality:
|
Extended functionality:
|
||||||
1. BBAN and IBAN are considered equal
|
1. BBAN and IBAN are considered equal
|
||||||
3. Banks are created on the fly when using IBAN
|
2. Online lookup when an API is available (providing NL in this module)
|
||||||
4. Storage is uppercase, not lowercase
|
3. Banks are created on the fly when using IBAN + online
|
||||||
5. Presentation is formal IBAN
|
4. IBAN formatting
|
||||||
6. BBAN's are generated from IBAN when possible
|
5. BBAN's are generated from IBAN when possible
|
||||||
'''
|
'''
|
||||||
_inherit = 'res.partner.bank'
|
_inherit = 'res.partner.bank'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user