mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO
- Only issue a warning message if the PO had a non-blank payment mode or bank.
This commit is contained in:
committed by
OCA-git-bot
parent
1336b4f38f
commit
d56decad30
@@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
"name": "Account Payment Purchase Stock",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "14.0.1.0.1",
|
||||
"category": "Banking addons",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Integrate Account Payment Purchase with Stock",
|
||||
|
||||
37
account_payment_purchase_stock/i18n/it.po
Normal file
37
account_payment_purchase_stock/i18n/it.po
Normal file
@@ -0,0 +1,37 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_payment_purchase_stock
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-12-03 12:36+0000\n"
|
||||
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: account_payment_purchase_stock
|
||||
#: model:ir.model.fields,field_description:account_payment_purchase_stock.field_stock_rule__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome da visualizzare"
|
||||
|
||||
#. module: account_payment_purchase_stock
|
||||
#: model:ir.model.fields,field_description:account_payment_purchase_stock.field_stock_rule__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: account_payment_purchase_stock
|
||||
#: model:ir.model.fields,field_description:account_payment_purchase_stock.field_stock_rule____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima modifica il"
|
||||
|
||||
#. module: account_payment_purchase_stock
|
||||
#: model:ir.model,name:account_payment_purchase_stock.model_stock_rule
|
||||
msgid "Stock Rule"
|
||||
msgstr "Regola"
|
||||
@@ -12,6 +12,7 @@ from odoo.addons.account_payment_purchase.tests.test_account_payment_purchase im
|
||||
|
||||
class TestAccountPaymentPurchaseStock(TestAccountPaymentPurchase):
|
||||
def test_purchase_stock_order_invoicing(self):
|
||||
self.purchase.onchange_partner_id()
|
||||
self.purchase.button_confirm()
|
||||
picking = self.purchase.picking_ids[0]
|
||||
picking.action_confirm()
|
||||
@@ -65,7 +66,6 @@ class TestAccountPaymentPurchaseStock(TestAccountPaymentPurchase):
|
||||
{"name": "Test stockable product", "type": "product"}
|
||||
)
|
||||
self.purchase.order_line[0].product_id = stockable_product
|
||||
self.purchase.payment_mode_id = False
|
||||
self.purchase.supplier_partner_bank_id = self.bank
|
||||
self.purchase.button_confirm()
|
||||
picking = self.purchase.picking_ids[0]
|
||||
|
||||
Reference in New Issue
Block a user