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

[11.0][MIG] apps_product_creator: Migration to 11.0 #9

Merged
merged 26 commits into from
Jun 26, 2018
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3f73eef
Rename module to apps_product_creator
tafaRU Oct 3, 2017
af184a2
[IMP] Replace openerp imports to odoo
tafaRU Oct 3, 2017
8ebe126
[ADD] apps_product_creator: add cron_create_product
tafaRU Oct 3, 2017
7e09fc4
[FIX] Changed field name for compatibility with base code
espo-tony Oct 3, 2017
6d3a5c2
[FIX] Refactoring of product.product form view definition
espo-tony Oct 3, 2017
ae40845
[FIX] Implemented module image handling
espo-tony Oct 3, 2017
a99aaaf
Improvements: Edit readme + improvement about code
acsonefho Oct 3, 2017
0f91333
[ADD] apps_product_creator: add cron_create_product
tafaRU Oct 3, 2017
c76b790
[FIX] Changed product form view definition
espo-tony Oct 3, 2017
d0ab2e5
FIX: licence
acsonefho Oct 3, 2017
4074ffb
FIX: fix readme
acsonefho Oct 3, 2017
94fda3e
[FIX] fix attr_xml_id and domain on cron search
Oct 3, 2017
0c12557
[FIX] Some small refactoring
espo-tony Oct 9, 2017
fc58421
[FIX] Big refactoring
espo-tony Oct 11, 2017
e061c09
[FIX] Adapted to recent changes in dependency module github_connector
espo-tony Oct 16, 2017
7e0be06
[FIX] Fixed Travis
espo-tony Oct 16, 2017
5c866d9
Implemented Unit tests
espo-tony Nov 9, 2017
fb8d509
[FIX] Refactoring
espo-tony Nov 21, 2017
9be5206
[FIX] Bugfixing
espo-tony Nov 21, 2017
493777b
[FIX] Moved demo file in demo key within manifest
espo-tony Nov 22, 2017
52c0af9
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
bc2e76a
OCA Transbot updated translations from Transifex
oca-transbot Feb 24, 2018
4630edd
[MIG] apps_product_creator: Migration to 11.0
tarteo Apr 12, 2018
57d7aff
[IMP] Formatting xml, move product_attribute to data
tarteo May 3, 2018
c49b6f1
[IMP] Formatting xml, move product_attribute to data
tarteo May 3, 2018
5d683c6
[ADD] oca_dependencies.txt
tarteo Jun 12, 2018
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
53 changes: 53 additions & 0 deletions apps_product_creator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

====================
Apps Product creator
====================

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.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/249/11.0

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 smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

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

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>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
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
22 changes: 22 additions & 0 deletions apps_product_creator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2017-Today: Odoo Community Association (OCA)
# 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': '11.0.1.0.0',
'category': 'Connector',
'license': 'AGPL-3',
'author': 'Odoo Community Association (OCA)',
'depends': [
'github_connector_odoo',
'product',
],
'data': [
'data/ir_cron.xml',
'data/product_attribute.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 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>
50 changes: 50 additions & 0 deletions apps_product_creator/data/product_attribute.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?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="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>

</odoo>
149 changes: 149 additions & 0 deletions apps_product_creator/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * apps_product_creator
#
# Translators:
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-10 01:37+0000\n"
"PO-Revision-Date: 2018-02-10 01:37+0000\n"
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module_product_qty
msgid "# of Products"
msgstr "Nº de productos"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_100
msgid "10.0"
msgstr "10.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_110
msgid "11.0"
msgstr "11.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_50
msgid "5.0"
msgstr "5.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_60
msgid "6.0"
msgstr "6.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_61
msgid "6.1"
msgstr "6.1"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_70
msgid "7.0"
msgstr "7.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_80
msgid "8.0"
msgstr "8.0"

#. module: apps_product_creator
#: model:product.attribute.value,name:apps_product_creator.odoo_version_90
msgid "9.0"
msgstr "9.0"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids
msgid "Authors"
msgstr "Autores"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url
msgid "Github URL"
msgstr "URL de github"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_description_rst_html
msgid "HTML of the RST Description"
msgstr ""

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_image_module
#: model:ir.model.fields,field_description:apps_product_creator.field_product_template_image_module
msgid "Icon Image"
msgstr "Icono"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id
msgid "License"
msgstr "Licencia"

#. module: apps_product_creator
#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view
msgid "Module Informations"
msgstr "Informaciones del módulo"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_odoo_module_id
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_odoo_module_version_id
#: model:ir.model.fields,field_description:apps_product_creator.field_product_template_odoo_module_id
msgid "Odoo Module"
msgstr "Módulo Odoo"

#. module: apps_product_creator
#: model:product.attribute,name:apps_product_creator.attribute_odoo_version
msgid "Odoo Version"
msgstr "Versión Odoo"

#. module: apps_product_creator
#: model:ir.model,name:apps_product_creator.model_product_product
msgid "Product"
msgstr "Producto"

#. module: apps_product_creator
#: model:ir.model,name:apps_product_creator.model_product_template
#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module_product_template_id
msgid "Product Template"
msgstr "Plantilla de producto"

#. module: apps_product_creator
#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view
msgid "Products"
msgstr "Productos"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary
msgid "Summary (Manifest)"
msgstr "Resumen (Manifiesto)"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_technical_name
#: model:ir.model.fields,field_description:apps_product_creator.field_product_template_technical_name
msgid "Technical Name"
msgstr "Nombre técnic"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_version
msgid "Version (Manifest)"
msgstr "Versión (Manifiesto)"

#. module: apps_product_creator
#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website
msgid "Website (Manifest)"
msgstr "Página web (Manifiesto)"

#. module: apps_product_creator
#: model:ir.model,name:apps_product_creator.model_odoo_module
msgid "odoo.module"
msgstr "odoo.module"
Loading