diff --git a/account_payment_mode/README.rst b/account_payment_mode/README.rst index f14538699..1ec3e4ce4 100644 --- a/account_payment_mode/README.rst +++ b/account_payment_mode/README.rst @@ -14,13 +14,13 @@ Account Payment Mode :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github - :target: https://github.com/OCA/bank-payment/tree/12.0/account_payment_mode + :target: https://github.com/OCA/bank-payment/tree/13.0/account_payment_mode :alt: OCA/bank-payment .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_mode + :target: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_mode :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/173/12.0 + :target: https://runbot.odoo-community.org/runbot/173/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -52,7 +52,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -68,6 +68,7 @@ Contributors ~~~~~~~~~~~~ * Alexis de Lattre +* Eric Lembregts Maintainers ~~~~~~~~~~~ @@ -82,6 +83,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_mode/__manifest__.py b/account_payment_mode/__manifest__.py index fcb4d2f1f..d041c44b6 100644 --- a/account_payment_mode/__manifest__.py +++ b/account_payment_mode/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Account Payment Mode', - 'version': '12.0.1.0.0', + 'version': '13.0.1.0.0', 'license': 'AGPL-3', 'author': "Akretion,Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/bank-payment', diff --git a/account_payment_mode/models/account_payment_method.py b/account_payment_mode/models/account_payment_method.py index 3e6140322..4e0d3f94b 100644 --- a/account_payment_mode/models/account_payment_method.py +++ b/account_payment_mode/models/account_payment_method.py @@ -12,16 +12,14 @@ class AccountPaymentMethod(models.Model): help="This code is used in the code of the Odoo module that handles " "this payment method. Therefore, if you change it, " "the generation of the payment file may fail.") - active = fields.Boolean(string='Active', default=True) + active = fields.Boolean(default=True) bank_account_required = fields.Boolean( - string='Bank Account Required', help="Activate this option if this payment method requires you to " "know the bank account number of your customer or supplier.") payment_mode_ids = fields.One2many( comodel_name='account.payment.mode', inverse_name='payment_method_id', string='Payment modes') - @api.multi @api.depends('code', 'name', 'payment_type') def name_get(self): result = [] diff --git a/account_payment_mode/models/account_payment_mode.py b/account_payment_mode/models/account_payment_mode.py index ca0a248a7..27df7c61d 100644 --- a/account_payment_mode/models/account_payment_mode.py +++ b/account_payment_mode/models/account_payment_mode.py @@ -13,7 +13,7 @@ class AccountPaymentMode(models.Model): _description = 'Payment Modes' _order = 'name' - name = fields.Char(string='Name', required=True, translate=True) + name = fields.Char(required=True, translate=True) company_id = fields.Many2one( 'res.company', string='Company', required=True, ondelete='restrict', default=lambda self: self.env['res.company']._company_default_get( @@ -44,18 +44,16 @@ class AccountPaymentMode(models.Model): 'account.payment.method', string='Payment Method', required=True, ondelete='restrict') # equivalent v8 field : type payment_type = fields.Selection( - related='payment_method_id.payment_type', readonly=True, store=True, - string="Payment Type") + related='payment_method_id.payment_type', readonly=True, store=True) payment_method_code = fields.Char( - related='payment_method_id.code', readonly=True, store=True, - string='Payment Method Code') - active = fields.Boolean(string='Active', default=True) + related='payment_method_id.code', readonly=True, store=True) + active = fields.Boolean(default=True) # I dropped sale_ok and purchase_ok fields, because it is replaced by # payment_type = 'inbound' or 'outbound' # In fact, with the new v9 datamodel, you MUST create 2 payment modes # for wire transfer : one for wire transfer from your customers (inbound) # and one for wire transfer to your suppliers (outbound) - note = fields.Text(string="Note", translate=True) + note = fields.Text(translate=True) @api.onchange('company_id') def _onchange_company_id(self): diff --git a/account_payment_mode/readme/CONTRIBUTORS.rst b/account_payment_mode/readme/CONTRIBUTORS.rst index ff65d68ce..e1a9f6eb0 100644 --- a/account_payment_mode/readme/CONTRIBUTORS.rst +++ b/account_payment_mode/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Alexis de Lattre +* Eric Lembregts diff --git a/account_payment_mode/static/description/index.html b/account_payment_mode/static/description/index.html index c5dd91399..ed0f85909 100644 --- a/account_payment_mode/static/description/index.html +++ b/account_payment_mode/static/description/index.html @@ -3,7 +3,7 @@ - + Account Payment Mode