Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions deltatech_website_rmv_sort_new/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# © 2008-2021 Deltatech
# Cojocaru Cosmin-Andrei <cosminandreicojocaru(@)gmail(.)com
# See README.rst file on addons root folder for license details

<<<<<<< HEAD

=======
from . import models
>>>>>>> c76e110 ([19.0][ADD] added module deltatech_website_rmv_sort_new)
22 changes: 22 additions & 0 deletions deltatech_website_rmv_sort_new/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# © 2008-2021 Deltatech
# Cojocaru Cosmin-Andrei <cosminandreicojocaru(@)gmail(.)com
# See README.rst file on addons root folder for license details

{
"name": "Deltatech website rmv sort new",
"version": "19.0.0.0.0",
"author": "Terrabit, Cojocaru Cosmin-Andrei",
"website": "https://www.terrabit.ro",
"summary": "Generic module",
"category": "Tools",
<<<<<<< HEAD
"depends": ["web", "base"],
=======
"depends": ["web", "base","website_sale"],
>>>>>>> c76e110 ([19.0][ADD] added module deltatech_website_rmv_sort_new)
"data": ["views/rmv_sort_new.xml"],
"license": "OPL-1",
"images": ["images/main_screenshot.png"],
"development_status": "Mature",
"maintainers": ["CosminAndreiCojocaru"],
}
2 changes: 2 additions & 0 deletions deltatech_website_rmv_sort_new/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

from . import main
15 changes: 15 additions & 0 deletions deltatech_website_rmv_sort_new/models/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from odoo import models


class Website(models.Model):
_inherit = "website"

def _get_product_sort_mapping(self):
rem = super()._get_product_sort_mapping()

filtered = [
item for item in rem
if 'date' not in item[0] and 'id' not in item[0]
]

return filtered
8 changes: 8 additions & 0 deletions deltatech_website_rmv_sort_new/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = [
"whool",
]
build-backend = "whool.buildapi"

[project]
name = "odoo-addon-deltatech-website-rmv-sort-new"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading