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 f9286a3 commit 9be4c64
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 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
2 changes: 1 addition & 1 deletion stock_picking_comment_template/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Picking Comments",
"summary": "Comments texts templates on Picking documents",
"version": "14.0.1.1.0",
"version": "17.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-reporting",
"author": "C2i Change 2 improve," "Odoo Community Association (OCA)",
Expand Down
5 changes: 5 additions & 0 deletions stock_picking_comment_template/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
- [C2i Change 2 improve](http://www.c2i.es):
- Eduardo Magdalena \<<emagdalena@c2i.es>\>

- [NextERP Romania](https://www.nexterp.ro):
- 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.
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
Expand Up @@ -5,14 +5,18 @@


class TestStockPickingReport(TransactionCase):
def setUp(self):
super().setUp()
def setUpClass(self):
super().setUpClass()
self.company = self.env.ref("base.main_company")
self.base_comment_model = self.env["base.comment.template"]
# Create comment related to sale model
self.picking_obj = self.env.ref("stock.model_stock_picking")
self.before_comment = self._create_comment(self.picking_obj, "before_lines")
self.after_comment = self._create_comment(self.picking_obj, "after_lines")
self.before_comment = self._create_comment_template_test(
self.picking_obj, "before_lines"
)
self.after_comment = self._create_comment_template_test(
self.picking_obj, "after_lines"
)
# Create partner
self.partner = self.env["res.partner"].create({"name": "Partner Test"})
self.partner.base_comment_template_ids = [
Expand All @@ -29,7 +33,7 @@ def setUp(self):
}
)

def _create_comment(self, model, position):
def _create_comment_template_test(self, model, position):
return self.base_comment_model.create(
{
"name": "Comment " + position,
Expand Down

0 comments on commit 9be4c64

Please sign in to comment.