From e9f81ca26d11119ab4780d624bc4732dd0966a72 Mon Sep 17 00:00:00 2001 From: Marc Wempe Date: Fri, 3 Apr 2026 23:08:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Initialize=20module=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 8 + __init__.py | 0 __manifest__.py | 34 ++++ data/product_category_data.xml | 231 ++++++++++++++++++++++++++ data/product_public_category_data.xml | 103 ++++++++++++ data/product_tag_data.xml | 170 +++++++++++++++++++ i18n/de.po | 26 +++ models/__init__.py | 0 security/ir.model.access.csv | 5 + security/security.xml | 26 +++ 10 files changed, 603 insertions(+) create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 data/product_category_data.xml create mode 100644 data/product_public_category_data.xml create mode 100644 data/product_tag_data.xml create mode 100644 i18n/de.po create mode 100644 models/__init__.py create mode 100644 security/ir.model.access.csv create mode 100644 security/security.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c5f867 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +__pycache__/ +*.py[cod] +.DS_Store +.pytest_cache/ +.ruff_cache/ +*.log +*.swp +*~ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..63b3787 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,34 @@ +{ + "name": "MVD TCG Commerce", + "summary": "Commerce taxonomy and catalog seed data for TCG products", + "version": "19.0.7.1.0", + "description": """ +Commerce taxonomy foundation for the MVD trading card game suite. + +This module intentionally stays data-focused. It does not create products, +import sources, or attach operational workflows yet. Instead it prepares the +commerce layer with: +- a dedicated commerce manager role +- a seeded internal product category tree for typical TCG products +- a seeded public shop category tree for eCommerce browsing +- curated product tags for common TCG merchandise and sealed products + +The category tree covers common product families such as singles, booster +packs, booster displays, bundles, preconstructed decks, collections, and +accessories. Product mapping, source handling, stock logic, and +card-to-product relationships will follow in later commerce modules. +""", + "category": "Inventory/Product", + "author": "Mantjeverse Digital", + "license": "LGPL-3", + "depends": ["mvd_tcg_base", "sale_management", "stock", "website_sale"], + "data": [ + "security/security.xml", + "security/ir.model.access.csv", + "data/product_category_data.xml", + "data/product_public_category_data.xml", + "data/product_tag_data.xml", + ], + "application": False, + "installable": True, +} diff --git a/data/product_category_data.xml b/data/product_category_data.xml new file mode 100644 index 0000000..fe6e862 --- /dev/null +++ b/data/product_category_data.xml @@ -0,0 +1,231 @@ + + + + TCG + + + + Magic: The Gathering + + + + + Zubehör + + + + + Singles + + + + + Einzelkarten + + + + + Playsets + + + + + Token & Embleme + + + + + Versiegelte Produkte + + + + + Booster-Packs + + + + + Play-Booster + + + + + Draft-Booster + + + + + Set-Booster + + + + + Collector-Booster + + + + + Jumpstart-Booster + + + + + Theme-Booster + + + + + Prerelease-Packs + + + + + Booster-Displays + + + + + Play-Booster-Displays + + + + + Draft-Booster-Displays + + + + + Set-Booster-Displays + + + + + Collector-Booster-Displays + + + + + Jumpstart-Displays + + + + + Theme-Booster-Displays + + + + + Bundles & Kits + + + + + Bundles + + + + + Geschenk-Bundles + + + + + Fat Packs + + + + + Prerelease-Kits + + + + + Starter-Kits + + + + + Vorkonstruierte Decks + + + + + Commander Decks + + + + + Starter-Decks + + + + + Challenger-Decks + + + + + Intro-Decks + + + + + Planeswalker-Decks + + + + + Sondereditionen + + + + + Secret-Lair-Drops + + + + + Anthologien & Box-Sets + + + + + Sammlungen & Lots + + + + + Bulk Lots + + + + + Sammlungen + + + + + Sleeves + + + + + Deckboxen + + + + + Binders + + + + + Playmats + + + + + Würfel & Marker + + + diff --git a/data/product_public_category_data.xml b/data/product_public_category_data.xml new file mode 100644 index 0000000..2076889 --- /dev/null +++ b/data/product_public_category_data.xml @@ -0,0 +1,103 @@ + + + + TCG + 10 + + + + Magic: The Gathering + + 10 + + + + Zubehör + + 20 + + + + Einzelkarten + + 10 + + + + Playsets + + 20 + + + + Token & Embleme + + 30 + + + + Booster + + 40 + + + + Displays + + 50 + + + + Bundles & Kits + + 60 + + + + Commander Decks + + 70 + + + + Sondereditionen + + 80 + + + + Sammlungen & Lots + + 90 + + + + Sleeves + + 10 + + + + Deckboxen + + 20 + + + + Binders + + 30 + + + + Playmats + + 40 + + + + Würfel & Marker + + 50 + + diff --git a/data/product_tag_data.xml b/data/product_tag_data.xml new file mode 100644 index 0000000..5379ba0 --- /dev/null +++ b/data/product_tag_data.xml @@ -0,0 +1,170 @@ + + + + Magic: The Gathering + 10 + #2563eb + True + + + + Einzelkarten + 20 + #0f766e + True + + + + Playset + 30 + #0891b2 + True + + + + Token & Embleme + 40 + #7c3aed + True + + + + Versiegelt + 50 + #1d4ed8 + True + + + + Booster + 60 + #1d4ed8 + True + + + + Play Booster + 70 + #2563eb + True + + + + Draft Booster + 80 + #2563eb + True + + + + Set Booster + 90 + #2563eb + True + + + + Collector Booster + 100 + #7c3aed + True + + + + Jumpstart + 110 + #9333ea + True + + + + Display + 120 + #0f766e + True + + + + Bundle + 130 + #ea580c + True + + + + Prerelease + 140 + #f97316 + True + + + + Commander + 150 + #dc2626 + True + + + + Vorkonstruiert + 160 + #b91c1c + True + + + + Secret Lair + 170 + #be185d + True + + + + Sammlung + 180 + #475569 + True + + + + Zubehör + 190 + #4b5563 + True + + + + Sleeves + 200 + #1f2937 + True + + + + Deckbox + 210 + #1f2937 + True + + + + Binder + 220 + #1f2937 + True + + + + Playmat + 230 + #1f2937 + True + + + + Würfel & Marker + 240 + #1f2937 + True + + diff --git a/i18n/de.po b/i18n/de.po new file mode 100644 index 0000000..47e0e1f --- /dev/null +++ b/i18n/de.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mvd_tcg_commerce +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 19.0\n" +"POT-Creation-Date: 2026-04-03 00:00+0000\n" +"PO-Revision-Date: 2026-04-03 00:00+0000\n" +"Last-Translator: Codex\n" +"Language-Team: German\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mvd_tcg_commerce +#: model:res.groups,name:mvd_tcg_commerce.mvd_tcg_commerce_group_manager +msgid "Commerce Manager" +msgstr "Commerce-Manager" + +#. module: mvd_tcg_commerce +#: model:res.groups,name:mvd_tcg_commerce.mvd_tcg_commerce_group_administrator +msgid "Commerce Administrator" +msgstr "Commerce-Administrator" diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv new file mode 100644 index 0000000..de5328a --- /dev/null +++ b/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_public_category_mvd_tcg_commerce_manager,product.public.category mvd_tcg_commerce manager,website_sale.model_product_public_category,mvd_tcg_commerce.mvd_tcg_commerce_group_manager,1,1,1,1 +access_product_tag_mvd_tcg_commerce_manager,product.tag mvd_tcg_commerce manager,product.model_product_tag,mvd_tcg_commerce.mvd_tcg_commerce_group_manager,1,1,1,1 +access_product_public_category_mvd_tcg_commerce_system,product.public.category mvd_tcg_commerce system,website_sale.model_product_public_category,base.group_system,1,1,1,1 +access_product_tag_mvd_tcg_commerce_system,product.tag mvd_tcg_commerce system,product.model_product_tag,base.group_system,1,1,1,1 diff --git a/security/security.xml b/security/security.xml new file mode 100644 index 0000000..a97af2d --- /dev/null +++ b/security/security.xml @@ -0,0 +1,26 @@ + + + + Commerce Manager + + + + + + Commerce Administrator + + + +