[MIG] account_payment_order_notification: Migration to 14.0

TT40457
This commit is contained in:
Víctor Martínez
2022-11-14 08:29:43 +01:00
committed by Yadier A. De Quesada
parent 143f2a7e2b
commit d0f4e1b67c
11 changed files with 36 additions and 29 deletions

View File

@@ -14,13 +14,13 @@ Account Payment Order Notification
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github
:target: https://github.com/OCA/bank-payment/tree/13.0/account_payment_order_notification :target: https://github.com/OCA/bank-payment/tree/14.0/account_payment_order_notification
:alt: OCA/bank-payment :alt: OCA/bank-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_order_notification :target: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order_notification
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/173/13.0 :target: https://runbot.odoo-community.org/runbot/173/14.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -37,22 +37,22 @@ Configuration
To configure this module, you need to: To configure this module, you need to:
#. Go to *Invoicing > Configuration > Payment Modes* and create a payment mode if you wish. #. Go to *Invoicing > Configuration > Payment Modes* and create a payment mode, if you wish.
#. Go to *Invoicing > Customers > Customers* and creates a new record as follows: #. Go to *Invoicing > Customers > Customers* and create a new record as follows:
* Name: Test customer 1 * Name: Test customer 1
* Email: customer1@test.com * Email: customer1@test.com
#. Go to *Invoicing > Customers > Customers* and creates a new record as follows: #. Go to *Invoicing > Customers > Customers* and create a new record as follows:
* Name: Test customer 2 * Name: Test customer 2
* Email: (empty) * Email: (empty)
Usage Usage
===== =====
#. Go to *Invoicing > Customers > Invoices* and creates one or more invoices linked to the payment mode. #. Go to *Invoicing > Customers > Invoices* and create one or more invoices linked to the payment mode.
#. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Post entries". #. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Post entries".
#. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Add to Payment/Debit Order" and creates a payment order. #. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Add to Payment/Debit Order" and create a payment order.
#. Click on "Confirm Payments" button. #. Click on "Confirm Payments" button.
#. Click on "Generate Payment File" button. #. Click on "Generate Payment File" button.
#. Click on "File Successfully Uploaded" button. #. Click on "File Successfully Uploaded" button.
@@ -68,7 +68,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/issues>`_. 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. 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 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:%20account_payment_order_notification%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_payment_order_notification%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@@ -109,6 +109,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-victoralmau| |maintainer-victoralmau|
This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/13.0/account_payment_order_notification>`_ project on GitHub. This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/14.0/account_payment_order_notification>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{ {
"name": "Account Payment Order Notification", "name": "Account Payment Order Notification",
"version": "13.0.1.0.1", "version": "14.0.1.0.0",
"category": "Banking addons", "category": "Banking addons",
"website": "https://github.com/OCA/bank-payment", "website": "https://github.com/OCA/bank-payment",
"author": "Tecnativa, Odoo Community Association (OCA)", "author": "Tecnativa, Odoo Community Association (OCA)",

View File

@@ -42,7 +42,6 @@
</div> </div>
]]></field> ]]></field>
<field name="lang">${object.partner_id.lang}</field> <field name="lang">${object.partner_id.lang}</field>
<field name="user_signature" eval="False" />
<field name="auto_delete" eval="True" /> <field name="auto_delete" eval="True" />
</record> </record>
</data> </data>

View File

@@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -93,6 +93,7 @@ msgid "Created on"
msgstr "" msgstr ""
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__display_name
@@ -131,6 +132,7 @@ msgid "Group By"
msgstr "" msgstr ""
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__id
@@ -155,6 +157,7 @@ msgid "Is Follower"
msgstr "" msgstr ""
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line____last_update

View File

@@ -136,6 +136,7 @@ msgid "Created on"
msgstr "Creado el" msgstr "Creado el"
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__display_name
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__display_name #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__display_name
@@ -174,6 +175,7 @@ msgid "Group By"
msgstr "Agrupar por" msgstr "Agrupar por"
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification__id
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__id #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line__id
@@ -198,6 +200,7 @@ msgid "Is Follower"
msgstr "Es seguidor" msgstr "Es seguidor"
#. module: account_payment_order_notification #. module: account_payment_order_notification
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_account_payment_order_notification____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification____last_update
#: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line____last_update #: model:ir.model.fields,field_description:account_payment_order_notification.field_wizard_account_payment_order_notification_line____last_update

View File

@@ -30,7 +30,7 @@ class AccountPaymentOrder(models.Model):
"account_payment_order_notification", "account_payment_order_notification",
"account_payment_order_notification_action", "account_payment_order_notification_action",
) )
action = self.env.ref(xml_id).read()[0] action = self.env["ir.actions.act_window"]._for_xml_id(xml_id)
action["domain"] = [("order_id", "=", self.id)] action["domain"] = [("order_id", "=", self.id)]
return action return action

View File

@@ -1,11 +1,11 @@
To configure this module, you need to: To configure this module, you need to:
#. Go to *Invoicing > Configuration > Payment Modes* and create a payment mode if you wish. #. Go to *Invoicing > Configuration > Payment Modes* and create a payment mode, if you wish.
#. Go to *Invoicing > Customers > Customers* and creates a new record as follows: #. Go to *Invoicing > Customers > Customers* and create a new record as follows:
* Name: Test customer 1 * Name: Test customer 1
* Email: customer1@test.com * Email: customer1@test.com
#. Go to *Invoicing > Customers > Customers* and creates a new record as follows: #. Go to *Invoicing > Customers > Customers* and create a new record as follows:
* Name: Test customer 2 * Name: Test customer 2
* Email: (empty) * Email: (empty)

View File

@@ -1,6 +1,6 @@
#. Go to *Invoicing > Customers > Invoices* and creates one or more invoices linked to the payment mode. #. Go to *Invoicing > Customers > Invoices* and create one or more invoices linked to the payment mode.
#. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Post entries". #. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Post entries".
#. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Add to Payment/Debit Order" and creates a payment order. #. Go to *Invoicing > Customers > Invoices* select the invoices created and execute the action called "Add to Payment/Debit Order" and create a payment order.
#. Click on "Confirm Payments" button. #. Click on "Confirm Payments" button.
#. Click on "Generate Payment File" button. #. Click on "Generate Payment File" button.
#. Click on "File Successfully Uploaded" button. #. Click on "File Successfully Uploaded" button.

View File

@@ -1,2 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_payment_order_notification,account.payment.order.notification.manager,model_account_payment_order_notification,account_payment_order.group_account_payment,1,1,1,1 access_account_payment_order_notification,account.payment.order.notification.manager,model_account_payment_order_notification,account_payment_order.group_account_payment,1,1,1,1
access_wizard_account_payment_order_notification,access_wizard_account_payment_order_notification,model_wizard_account_payment_order_notification,account_payment_order.group_account_payment,1,1,1,1
access_wizard_account_payment_order_notification_line,access_wizard_account_payment_order_notification_line,model_wizard_account_payment_order_notification_line,account_payment_order.group_account_payment,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_account_payment_order_notification account.payment.order.notification.manager model_account_payment_order_notification account_payment_order.group_account_payment 1 1 1 1
3 access_wizard_account_payment_order_notification access_wizard_account_payment_order_notification model_wizard_account_payment_order_notification account_payment_order.group_account_payment 1 1 1 1
4 access_wizard_account_payment_order_notification_line access_wizard_account_payment_order_notification_line model_wizard_account_payment_order_notification_line account_payment_order.group_account_payment 1 1 1 1

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/bank-payment/tree/13.0/account_payment_order_notification"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_order_notification"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/173/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/bank-payment/tree/14.0/account_payment_order_notification"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order_notification"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/173/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module adds a button on debit / payment orders to send an email to each related partner with the details of their transactions.</p> <p>This module adds a button on debit / payment orders to send an email to each related partner with the details of their transactions.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
@@ -387,9 +387,9 @@ ul.auto-toc {
<h1><a class="toc-backref" href="#id1">Configuration</a></h1> <h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>To configure this module, you need to:</p> <p>To configure this module, you need to:</p>
<ol class="arabic simple"> <ol class="arabic simple">
<li>Go to <em>Invoicing &gt; Configuration &gt; Payment Modes</em> and create a payment mode if you wish.</li> <li>Go to <em>Invoicing &gt; Configuration &gt; Payment Modes</em> and create a payment mode, if you wish.</li>
<li><dl class="first docutils"> <li><dl class="first docutils">
<dt>Go to <em>Invoicing &gt; Customers &gt; Customers</em> and creates a new record as follows:</dt> <dt>Go to <em>Invoicing &gt; Customers &gt; Customers</em> and create a new record as follows:</dt>
<dd><ul class="first last"> <dd><ul class="first last">
<li>Name: Test customer 1</li> <li>Name: Test customer 1</li>
<li>Email: <a class="reference external" href="mailto:customer1&#64;test.com">customer1&#64;test.com</a></li> <li>Email: <a class="reference external" href="mailto:customer1&#64;test.com">customer1&#64;test.com</a></li>
@@ -398,7 +398,7 @@ ul.auto-toc {
</dl> </dl>
</li> </li>
<li><dl class="first docutils"> <li><dl class="first docutils">
<dt>Go to <em>Invoicing &gt; Customers &gt; Customers</em> and creates a new record as follows:</dt> <dt>Go to <em>Invoicing &gt; Customers &gt; Customers</em> and create a new record as follows:</dt>
<dd><ul class="first last"> <dd><ul class="first last">
<li>Name: Test customer 2</li> <li>Name: Test customer 2</li>
<li>Email: (empty)</li> <li>Email: (empty)</li>
@@ -411,9 +411,9 @@ ul.auto-toc {
<div class="section" id="usage"> <div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1> <h1><a class="toc-backref" href="#id2">Usage</a></h1>
<ol class="arabic simple"> <ol class="arabic simple">
<li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> and creates one or more invoices linked to the payment mode.</li> <li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> and create one or more invoices linked to the payment mode.</li>
<li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> select the invoices created and execute the action called “Post entries”.</li> <li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> select the invoices created and execute the action called “Post entries”.</li>
<li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> select the invoices created and execute the action called “Add to Payment/Debit Order” and creates a payment order.</li> <li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em> select the invoices created and execute the action called “Add to Payment/Debit Order” and create a payment order.</li>
<li>Click on “Confirm Payments” button.</li> <li>Click on “Confirm Payments” button.</li>
<li>Click on “Generate Payment File” button.</li> <li>Click on “Generate Payment File” button.</li>
<li>Click on “File Successfully Uploaded” button.</li> <li>Click on “File Successfully Uploaded” button.</li>
@@ -429,7 +429,7 @@ ul.auto-toc {
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-payment/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-payment/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/bank-payment/issues/new?body=module:%20account_payment_order_notification%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/bank-payment/issues/new?body=module:%20account_payment_order_notification%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@@ -459,7 +459,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p> <p><a class="reference external" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-payment/tree/13.0/account_payment_order_notification">OCA/bank-payment</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-payment/tree/14.0/account_payment_order_notification">OCA/bank-payment</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@@ -20,9 +20,9 @@ class TestAccountPaymentOrderNotification(common.SavepointCase):
) )
cls.mt_comment = cls.env.ref("mail.mt_comment") cls.mt_comment = cls.env.ref("mail.mt_comment")
def _create_invoice(self, partner, invoice_type="out_invoice"): def _create_invoice(self, partner, move_type="out_invoice"):
invoice_form = Form( invoice_form = Form(
self.env["account.move"].with_context(default_type=invoice_type) self.env["account.move"].with_context(default_move_type=move_type)
) )
invoice_form.partner_id = partner invoice_form.partner_id = partner
invoice_form.payment_mode_id = self.payment_mode invoice_form.payment_mode_id = self.payment_mode