Skip to content

Commit

Permalink
[ADD] product_variant_template_reassign: New module
Browse files Browse the repository at this point in the history
TT51495
  • Loading branch information
chienandalu committed Nov 5, 2024
1 parent e58e66d commit a15302c
Show file tree
Hide file tree
Showing 15 changed files with 715 additions and 0 deletions.
103 changes: 103 additions & 0 deletions product_variant_template_reassign/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
==================================
Product variant template Re-assign
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ddd8d22221dce3a8d71dc1c17660f015635e79cf6c4934c6f8fbec84fee1b183
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github
:target: https://github.com/OCA/product-variant/tree/15.0/product_variant_template_reassign
:alt: OCA/product-variant
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-variant-15-0/product-variant-15-0-product_variant_template_reassign
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-variant&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Be able to assign a unique variant to a multi-variant template.

**Table of contents**

.. contents::
:local:

Usage
=====

To assign variants, go to a single variant product template.

1. In actions, choose: *Reassign variant*.
2. Choose the new product template.
3. Click on *Reassign*.

Known issues / Roadmap
======================

- Filter multi-variant products only for the target template
- Filter products of the same type only for the target template
-

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-variant/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/product-variant/issues/new?body=module:%20product_variant_template_reassign%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://tecnativa.com>`__

- David Vidal
- Pedro M. Baeza

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-chienandalu|

This module is part of the `OCA/product-variant <https://github.com/OCA/product-variant/tree/15.0/product_variant_template_reassign>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_variant_template_reassign/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
19 changes: 19 additions & 0 deletions product_variant_template_reassign/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product variant template Re-assign",
"summary": "Reassign variants to templates",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Product",
"website": "https://github.com/OCA/product-variant",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["chienandalu"],
"license": "AGPL-3",
"depends": ["product"],
"external_dependencies": {"python": ["openupgradelib"]},
"data": [
"security/ir.model.access.csv",
"wizards/reassign_variant_views.xml",
],
}
3 changes: 3 additions & 0 deletions product_variant_template_reassign/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Tecnativa](https://tecnativa.com)
- David Vidal
- Pedro M. Baeza
1 change: 1 addition & 0 deletions product_variant_template_reassign/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Be able to assign a unique variant to a multi-variant template.
3 changes: 3 additions & 0 deletions product_variant_template_reassign/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Filter multi-variant products only for the target template
- Filter products of the same type only for the target template
-
5 changes: 5 additions & 0 deletions product_variant_template_reassign/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To assign variants, go to a single variant product template.

1. In actions, choose: *Reassign variant*.
2. Choose the new product template.
3. Click on *Reassign*.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
product_variant_template_reassign.access_reassign_variant,access_reassign_variant,product_variant_template_reassign.model_reassign_variant,stock.group_stock_manager,1,1,1,1
Loading

0 comments on commit a15302c

Please sign in to comment.