Skip to content

Commit

Permalink
shopinvader_base_url: pre-commit stuff, remove deprecated file and re…
Browse files Browse the repository at this point in the history
…name module
  • Loading branch information
sebastienbeau committed Jun 23, 2023
1 parent d4cb35f commit 9164e69
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 123 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
^base_url/|
^partner_contact_company/|
^product_online_category/|
^shopinvader/|
Expand Down
111 changes: 0 additions & 111 deletions base_url/tests/models_mixin.py

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# generated from manifests external_dependencies
python-slugify
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Base Url",
"version": "14.0.1.0.2",
"version": "16.0.1.0.2",
"category": "tools",
"license": "AGPL-3",
"summary": "keep history of url for products & categories ",
Expand All @@ -16,5 +16,5 @@
"external_dependencies": {"python": ["python-slugify"]},
"data": ["views/url_view.xml", "security/ir.model.access.csv"],
"url": "",
"installable": False,
"installable": True,
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AbstractUrl(models.AbstractModel):
compute="_compute_redirect_url_url_ids", comodel_name="url.url"
)
lang_id = fields.Many2one("res.lang", string="Lang", required=True)
active = fields.Boolean(string="Active", default=True)
active = fields.Boolean(default=True)

@api.constrains("url_builder", "manual_url_key")
def _check_manual_url_key(self):
Expand Down Expand Up @@ -183,14 +183,14 @@ def set_url(self, url_key):
raise UserError(
_(
"Url_key already exist in other model"
"\n- name: %s\n - id: %s\n"
"- url_key: %s\n - url_key_id %s"
"\n- name: %(model_name)s\n - id: %(model_id)s\n"
"- url_key: %(url_key)s\n - url_key_id %(url_id)s"
)
% (
existing_url.model_id.name,
existing_url.model_id.id,
existing_url.url_key,
existing_url.id,
% dict(
model_name=existing_url.model_id.name,
model_id=existing_url.model_id.id,
url_key=existing_url.url_key,
url_id=existing_url.id,
)
)
else:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<record id="url_view_tree" model="ir.ui.view">
<field name="model">url.url</field>
<field name="arch" type="xml">
<tree string="">
<tree>
<field name="url_key" />
<field name="model_id" />
<field name="redirect" />
Expand Down

0 comments on commit 9164e69

Please sign in to comment.