Skip to content

Commit

Permalink
[MIG] stock_request_picking_type: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Jun 17, 2024
1 parent 265e0e1 commit cba2e94
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 180 deletions.
2 changes: 1 addition & 1 deletion stock_request_picking_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Stock Request Picking Type",
"summary": "Add Stock Requests to the Inventory App",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-request",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
Expand Down
12 changes: 11 additions & 1 deletion stock_request_picking_type/models/stock_picking_type.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2019 Open Source Integrators
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from odoo import fields, models
from odoo import api, fields, models


class StockPickingType(models.Model):
Expand Down Expand Up @@ -45,3 +45,13 @@ def _compute_sr_count(self):

def get_stock_request_order_picking_type_action(self):
return self._get_action("stock_request_picking_type.action_picking_dashboard")

Check warning on line 47 in stock_request_picking_type/models/stock_picking_type.py

View check run for this annotation

Codecov / codecov/patch

stock_request_picking_type/models/stock_picking_type.py#L47

Added line #L47 was not covered by tests

@api.depends("code")
def _compute_show_picking_type(self):
for record in self:
record.show_picking_type = record.code in [

Check warning on line 52 in stock_request_picking_type/models/stock_picking_type.py

View check run for this annotation

Codecov / codecov/patch

stock_request_picking_type/models/stock_picking_type.py#L52

Added line #L52 was not covered by tests
"incoming",
"outgoing",
"internal",
"stock_request_order",
]
Loading

0 comments on commit cba2e94

Please sign in to comment.