mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[9.0][IMP] account_payment_partner: Allow hide bank account in report invoice
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
'views/res_partner_view.xml',
|
||||
'views/account_invoice_view.xml',
|
||||
'views/account_move_line.xml',
|
||||
'views/account_payment_mode.xml',
|
||||
'views/report_invoice.xml',
|
||||
],
|
||||
'demo': ['demo/partner_demo.xml'],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_payment_partner
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2016
|
||||
# Rafael Blasco <rafabn@antiun.com>, 2016
|
||||
@@ -10,15 +10,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-12-29 09:35+0000\n"
|
||||
"PO-Revision-Date: 2016-12-29 09:35+0000\n"
|
||||
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2016\n"
|
||||
"POT-Creation-Date: 2017-03-02 09:18+0100\n"
|
||||
"PO-Revision-Date: 2017-03-02 09:19+0100\n"
|
||||
"Last-Translator: Sergio Teruel <sergio.teruel@tecnativa.com>\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: es\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 1.8.7.1\n"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.ui.view,arch_db:account_payment_partner.report_invoice_payment_mode
|
||||
@@ -36,8 +37,8 @@ msgid ""
|
||||
"Activate this option if this payment method requires you to know the bank "
|
||||
"account number of your customer or supplier."
|
||||
msgstr ""
|
||||
"Activa esta opción si este método de pago debe requerirte informar el número"
|
||||
" de cuenta bancaria de tu cliente o proveedor"
|
||||
"Activa esta opción si este método de pago debe requerirte informar el número "
|
||||
"de cuenta bancaria de tu cliente o proveedor"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.model.fields,field_description:account_payment_partner.field_account_invoice_bank_account_required
|
||||
@@ -71,11 +72,21 @@ msgstr "Empresa"
|
||||
msgid "Payment Mode"
|
||||
msgstr "Modo de pago"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.model,name:account_payment_partner.model_account_payment_mode
|
||||
msgid "Payment Modes"
|
||||
msgstr "Modo de pago"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.ui.view,arch_db:account_payment_partner.view_move_line_form
|
||||
msgid "Payments"
|
||||
msgstr "Pagos"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.model.fields,field_description:account_payment_partner.field_account_payment_mode_bank_invoice_report
|
||||
msgid "Print Bank Account"
|
||||
msgstr "Imprimir cuenta bancaria"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.model.fields,help:account_payment_partner.field_res_partner_customer_payment_mode_id
|
||||
msgid "Select the default payment mode for this customer."
|
||||
@@ -94,3 +105,9 @@ msgstr ""
|
||||
#: model:ir.model.fields,field_description:account_payment_partner.field_res_partner_supplier_payment_mode_id
|
||||
msgid "Supplier Payment Mode"
|
||||
msgstr "Modo de pago de proveedor"
|
||||
|
||||
#. module: account_payment_partner
|
||||
#: model:ir.model.fields,help:account_payment_partner.field_account_payment_mode_bank_invoice_report
|
||||
msgid "Uncheck this option to hide bank account in invoice report"
|
||||
msgstr ""
|
||||
"Desmarca esta opción para ocultar la cuenta bancaria en el informe de factura"
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
from . import res_partner
|
||||
from . import account_invoice
|
||||
from . import account_move_line
|
||||
from . import account_payment_mode
|
||||
|
||||
15
account_payment_partner/models/account_payment_mode.py
Normal file
15
account_payment_partner/models/account_payment_mode.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openerp import models, fields
|
||||
|
||||
|
||||
class AccountPaymentMode(models.Model):
|
||||
_inherit = 'account.payment.mode'
|
||||
|
||||
bank_invoice_report = fields.Boolean(
|
||||
string="Print Bank Account",
|
||||
default=True,
|
||||
help="Uncheck this option to hide bank account in invoice report",
|
||||
)
|
||||
22
account_payment_partner/views/account_payment_mode.xml
Normal file
22
account_payment_partner/views/account_payment_mode.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
© 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="account_payment_mode_form" model="ir.ui.view">
|
||||
<field name="model">account.payment.mode</field>
|
||||
<field name="inherit_id"
|
||||
ref="account_payment_mode.account_payment_mode_form" />
|
||||
<field name="arch" type="xml">
|
||||
<group name="main" position="inside">
|
||||
<field name="bank_invoice_report"/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -7,7 +7,7 @@
|
||||
<strong>Payment Mode:</strong>
|
||||
<span t-field="o.payment_mode_id.note" />
|
||||
</p>
|
||||
<p t-if="o.partner_bank_id">
|
||||
<p t-if="o.partner_bank_id and o.payment_mode_id.bank_invoice_report">
|
||||
<strong>Bank Account:</strong>
|
||||
<span t-field="o.partner_bank_id.acc_number" />
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user