Skip to content

Commit

Permalink
[MIG]stock_picking_comment_template: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger committed Jul 30, 2024
1 parent 29bddc5 commit 11c98f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions stock_picking_comment_template/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ Contributors

- Fekete Mihai <feketemihai@nexterp.ro>

- `Sygel <http://www.sygel.es>`__:

- Valentín Vinagre <valentin.vinagre@sygel.es>
- Roger Sans <roger.sans@sygel.es>

Do not contact contributors directly about support or help with
technical issues.

Expand Down
5 changes: 5 additions & 0 deletions stock_picking_comment_template/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;nexterp.ro">feketemihai&#64;nexterp.ro</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="http://www.sygel.es">Sygel</a>:<ul>
<li>Valentín Vinagre &lt;<a class="reference external" href="mailto:valentin.vinagre&#64;sygel.es">valentin.vinagre&#64;sygel.es</a>&gt;</li>
<li>Roger Sans &lt;<a class="reference external" href="mailto:roger.sans&#64;sygel.es">roger.sans&#64;sygel.es</a>&gt;</li>
</ul>
</li>
</ul>
<p>Do not contact contributors directly about support or help with
technical issues.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Copyright 2019 C2i Change 2 improve - Eduardo Magdalena <emagdalena@c2i.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

import odoo
from odoo.tests import Form, tagged
from odoo.tests.common import TransactionCase


Expand Down Expand Up @@ -45,17 +43,15 @@ def _create_comment_template_test(self, position):
)

def test_comments_in_deliveryslip(self):
res = (
self.env["ir.actions.report"]
._render_qweb_html("stock.report_deliveryslip", self.picking.ids)
res = self.env["ir.actions.report"]._render_qweb_html(
"stock.report_deliveryslip", self.picking.ids
)
self.assertRegex(str(res[0]), self.before_comment.text)
self.assertRegex(str(res[0]), self.after_comment.text)

def test_comments_in_report_picking(self):
res = (
self.env["ir.actions.report"]
._render_qweb_html("stock.report_picking", self.picking.ids)
res = self.env["ir.actions.report"]._render_qweb_html(
"stock.report_picking", self.picking.ids
)
self.assertRegex(str(res[0]), self.before_comment.text)
self.assertRegex(str(res[0]), self.after_comment.text)

0 comments on commit 11c98f4

Please sign in to comment.