Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0] [MIG] apps_product_creator: Migration to v13.0 #74

Merged
merged 41 commits into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b3441cf
Rename module to apps_product_creator
tafaRU Oct 3, 2017
a2b61cd
[IMP] Replace openerp imports to odoo
tafaRU Oct 3, 2017
28ae1b0
[ADD] apps_product_creator: add cron_create_product
tafaRU Oct 3, 2017
82b67b4
[FIX] Changed field name for compatibility with base code
espo-tony Oct 3, 2017
bc7f5a7
[FIX] Refactoring of product.product form view definition
espo-tony Oct 3, 2017
2e4c4a8
[FIX] Implemented module image handling
espo-tony Oct 3, 2017
d2731c3
Improvements: Edit readme + improvement about code
acsonefho Oct 3, 2017
f09bd08
[ADD] apps_product_creator: add cron_create_product
tafaRU Oct 3, 2017
19c1d8f
[FIX] Changed product form view definition
espo-tony Oct 3, 2017
c08f8c2
FIX: licence
acsonefho Oct 3, 2017
75e14ab
FIX: fix readme
acsonefho Oct 3, 2017
7ab1a9d
[FIX] fix attr_xml_id and domain on cron search
Oct 3, 2017
52570d6
[FIX] Some small refactoring
espo-tony Oct 9, 2017
a7b7829
[FIX] Big refactoring
espo-tony Oct 11, 2017
ff8087f
[FIX] Adapted to recent changes in dependency module github_connector
espo-tony Oct 16, 2017
f965247
[FIX] Fixed Travis
espo-tony Oct 16, 2017
acb1577
Implemented Unit tests
espo-tony Nov 9, 2017
7a72c8b
[FIX] Refactoring
espo-tony Nov 21, 2017
3266ce3
[FIX] Bugfixing
espo-tony Nov 21, 2017
9297ea6
[FIX] Moved demo file in demo key within manifest
espo-tony Nov 22, 2017
70224fa
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
8321021
[MIG] apps_product_creator: Migration to 11.0
tarteo Apr 12, 2018
d1f1808
[IMP] Formatting xml, move product_attribute to data
tarteo May 3, 2018
4b57336
[UPD] Update apps_product_creator.pot
oca-travis Jun 26, 2018
df21d40
[WIP]partial commit for migration of apps-store
Aug 31, 2018
728a9f8
[FIX] Changes as per suggested
Sep 6, 2018
009249f
[FIX] add changes as per requested
Sep 17, 2018
3b258e1
11.0 Improvement for filters and product page description (#14)
bizzappdev Oct 2, 2018
a324ce7
[ADD] Add the Module maturity on the created product variant (#19)
RoelAdriaans Oct 2, 2018
a1f02cf
[IMP] apps-store (#15)
oscarolar Oct 2, 2018
2f97a8f
[FIX] solve problem in case of multiple version for the one module (#22)
bizzappdev Oct 2, 2018
50bac02
[IMP] Autopublish the modules on the website (#24)
RoelAdriaans Oct 4, 2018
1355def
[IMP] while clean the odoo module version archive the product (#36)
bizzappdev Oct 26, 2018
ec7cfd2
update products attributes and create attribute values (#40)
bizzappdev Nov 11, 2018
e41ccf1
Fix Bad rendering of links inside README (#42)
bizzappdev Nov 20, 2018
e4a3716
[MIG] apps_product_creator: Migration to 12.0
Apr 10, 2019
4cd3c94
[MIG] apps_product_creator: Migration scripts
pedrobaeza Jul 13, 2019
32848aa
Added translation using Weblate (Italian)
primes2h Jun 8, 2020
0ed4fb9
[IMP] apps_product_creator: black, isort, prettier
CarlosRoca13 Jul 7, 2020
81fe177
[MIG] apps_product_creator: Migration to v13.0
CarlosRoca13 Jul 10, 2020
3ec5654
[FIX] apps_product_creator: Config variable source_code_local_path
pedrobaeza Jul 16, 2020
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
139 changes: 139 additions & 0 deletions apps_product_creator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
======================
Github product creator
======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fapps--store-lightgray.png?logo=github
:target: https://github.com/OCA/apps-store/tree/13.0/apps_product_creator
:alt: OCA/apps-store
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/apps-store-13-0/apps-store-13-0-apps_product_creator
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/249/13.0
:alt: Try me on Runbot

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

This module extends the functionality of the module Github connector to create a product for every module found.
A variant is also created for every version of the module.

**Table of contents**

.. contents::
:local:

Configuration
=============

There's an scheduled action that creates the product, disabled by default. For enabling it:

#. Go to *Settings > Technical > Automation > Scheduled Actions*.
#. Locate "Create/Update product variants for each module version" and access its form.

Usage
=====

To see the module working

* Import some modules with `github_connector <https://odoo-community.org/shop/product/1024>`_

#. Run manually the scheduled action mentioned on the configure section or wait until its execution.
#. Go to *Website > Products > Products*.
#. Click on Filters > Add Custom Filter, and apply the filter "Odoo Module" > "is set".
#. You will see the created products in the list.

Now you can see the products created.

Changelog
=========

13.0.1.0.0 (2020-07-10)
~~~~~~~~~~~~~~~~~~~~~~~

* Migration to 13.0

12.0.1.0.0 (2019-04-10)
~~~~~~~~~~~~~~~~~~~~~~~

* Migration to 12.0

11.0.1.1.2 (2018-10-02)
~~~~~~~~~~~~~~~~~~~~~~~

* Publish the modules automatically on the website

11.0.1.1.0 (2018-10-02)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] Added dependency on github_connector_oca to display development_status
(`#19 <https://github.com/OCA/apps-store/pull/19>`_)

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/apps-store/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/apps-store/issues/new?body=module:%20apps_product_creator%0Aversion:%2013.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
~~~~~~~

* BizzAppDev

Contributors
~~~~~~~~~~~~

* Alex Comba <alex.comba@agilebg.com>
* Antonio Esposito <a.esposito@onestein.nl>
* Eric Caudal <eric.caudal@elico-corp.com>
* François Honoré <francois.honore@acsone.eu>
* Nicola Malcontenti <nicola.malcontenti@agilebg.com>
* Roel Adriaans <roel@road-support.nl>
* Ruchir Shukla <ruchir@bizzappdev.com>

* `Tecnativa <https://www.tecnativa.com>`_:

* Victor M.M. Torres
* Carlos Roca

Other credits
~~~~~~~~~~~~~

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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.

This module is part of the `OCA/apps-store <https://github.com/OCA/apps-store/tree/13.0/apps_product_creator>`_ 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 apps_product_creator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions apps_product_creator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2017-2018 Odoo Community Association (OCA)
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Github product creator",
"summary": "Create a product variant (by version) for every module found "
"in the Github repositories",
"version": "13.0.1.0.0",
"category": "Connector",
"website": "https://github.com/OCA/apps-store",
"license": "AGPL-3",
"author": "Odoo Community Association (OCA), BizzAppDev",
"depends": [
"github_connector_oca",
"github_connector_odoo",
"product",
"website_sale",
],
"data": [
"data/ir_cron.xml",
"data/product_attribute.xml",
"data/product_public_categ_data.xml",
"views/view_odoo_module.xml",
"views/view_product_product.xml",
],
"installable": True,
}
19 changes: 19 additions & 0 deletions apps_product_creator/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--Copyright (C) 2017-Today: Odoo Community Association (OCA)-->
<!--License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-->
<odoo noupdate="1">
<record id="cron_update_organization" model="ir.cron">
<field
name="name"
>Create/Update product variants for each module version</field>
<field name="interval_number">1</field>
<field name="active" eval="False" />
<field name="user_id" ref="base.user_root" />
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="model_id" ref="model_odoo_module" />
<field name="state">code</field>
<field name="code">model.cron_create_product()</field>
</record>
</odoo>
53 changes: 53 additions & 0 deletions apps_product_creator/data/product_attribute.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--Copyright 2017-Today Odoo Community Association (OCA)
Copyright 2019 Tecnativa - Pedro M. Baeza -->
<!--License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-->
<odoo noupdate="1">
<record id="attribute_odoo_version" model="product.attribute">
<field name="name">Odoo Version</field>
</record>
<record id="odoo_version_50" model="product.attribute.value">
<field name="name">5.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_60" model="product.attribute.value">
<field name="name">6.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_61" model="product.attribute.value">
<field name="name">6.1</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_70" model="product.attribute.value">
<field name="name">7.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_80" model="product.attribute.value">
<field name="name">8.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_90" model="product.attribute.value">
<field name="name">9.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_100" model="product.attribute.value">
<field name="name">10.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_110" model="product.attribute.value">
<field name="name">11.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_120" model="product.attribute.value">
<field name="name">12.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_130" model="product.attribute.value">
<field name="name">13.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
<record id="odoo_version_140" model="product.attribute.value">
<field name="name">14.0</field>
<field name="attribute_id" ref="attribute_odoo_version" />
</record>
</odoo>
76 changes: 76 additions & 0 deletions apps_product_creator/data/product_public_categ_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2016-Today: Odoo Community Association (OCA)
@author: Oscar Alcala (https://twitter.com/oscarolar)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record id="accounting" model="product.public.category">
<field name="name">Accounting</field>
<field name="sequence">1</field>
</record>
<record id="discuss" model="product.public.category">
<field name="name">Discuss</field>
<field name="sequence">2</field>
</record>
<record id="document_management" model="product.public.category">
<field name="name">Document Management</field>
<field name="sequence">3</field>
</record>
<record id="ecommerce" model="product.public.category">
<field name="name">eCommerce</field>
<field name="sequence">4</field>
</record>
<record id="human_resources" model="product.public.category">
<field name="name">Human Resources</field>
<field name="sequence">5</field>
</record>
<record id="industries" model="product.public.category">
<field name="name">Industries</field>
<field name="sequence">6</field>
</record>
<record id="localization" model="product.public.category">
<field name="name">Localization</field>
<field name="sequence">7</field>
</record>
<record id="manufacturing" model="product.public.category">
<field name="name">Manufacturing</field>
<field name="sequence">8</field>
</record>
<record id="point_of_sale" model="product.public.category">
<field name="name">Point of Sale</field>
<field name="sequence">9</field>
</record>
<record id="productivity" model="product.public.category">
<field name="name">Productivity</field>
<field name="sequence">10</field>
</record>
<record id="project" model="product.public.category">
<field name="name">Project</field>
<field name="sequence">11</field>
</record>
<record id="purchases" model="product.public.category">
<field name="name">Purchases</field>
<field name="sequence">12</field>
</record>
<record id="sales" model="product.public.category">
<field name="name">Sales</field>
<field name="sequence">13</field>
</record>
<record id="warehouse" model="product.public.category">
<field name="name">Warehouse</field>
<field name="sequence">14</field>
</record>
<record id="website" model="product.public.category">
<field name="name">Website</field>
<field name="sequence">15</field>
</record>
<record id="extra_tools" model="product.public.category">
<field name="name">Extra Tools</field>
<field name="sequence">16</field>
</record>
<record id="other" model="product.public.category">
<field name="name">Other</field>
<field name="sequence">17</field>
</record>
</odoo>
Loading