From 0ef5952c1420ab22dbf8716caa81585b5314fc50 Mon Sep 17 00:00:00 2001 From: Alex Comba Date: Tue, 3 Oct 2017 13:56:03 +0200 Subject: [PATCH 01/61] Rename module to apps_product_creator --- apps_product_creator/README.rst | 92 +++++++++++++++++++ apps_product_creator/__init__.py | 2 + apps_product_creator/__manifest__.py | 24 +++++ .../data/product_attribute.xml | 28 ++++++ apps_product_creator/models/__init__.py | 4 + apps_product_creator/models/odoo_module.py | 52 +++++++++++ .../models/product_product.py | 62 +++++++++++++ .../models/product_template.py | 15 +++ .../views/view_odoo_module.xml | 19 ++++ .../views/view_product_product.xml | 26 ++++++ .../views/view_product_template.xml | 20 ++++ 11 files changed, 344 insertions(+) create mode 100644 apps_product_creator/README.rst create mode 100644 apps_product_creator/__init__.py create mode 100644 apps_product_creator/__manifest__.py create mode 100644 apps_product_creator/data/product_attribute.xml create mode 100644 apps_product_creator/models/__init__.py create mode 100644 apps_product_creator/models/odoo_module.py create mode 100644 apps_product_creator/models/product_product.py create mode 100644 apps_product_creator/models/product_template.py create mode 100644 apps_product_creator/views/view_odoo_module.xml create mode 100644 apps_product_creator/views/view_product_product.xml create mode 100644 apps_product_creator/views/view_product_template.xml diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst new file mode 100644 index 00000000..bfe9fb91 --- /dev/null +++ b/apps_product_creator/README.rst @@ -0,0 +1,92 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +====================== +Github Product Creator +====================== + +This module extends the functionality of github_connector_odoomodule +and allow to create product variants for each module version + +Installation +============ + +To install this module, you need to: + +#. Do this ... + +Configuration +============= + +To configure this module, you need to: + +#. Go to ... + +.. figure:: path/to/local/image.png + :alt: alternative description + :width: 600 px + +Usage +===== + +To use this module, you need to: + +#. Go to ... + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch} + + +Known issues / Roadmap +====================== + +* ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Contributors +------------ + +* Antonio Esposito (http://www.onestein.eu) +* Alex Comba (https://www.agilebg.com/) + +Do not contact contributors directly about support or help with technical issues. + +Funders +------- + +The development of this module has been financially supported by: + +* Company 1 name +* Company 2 name + +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. diff --git a/apps_product_creator/__init__.py b/apps_product_creator/__init__.py new file mode 100644 index 00000000..402ac47e --- /dev/null +++ b/apps_product_creator/__init__.py @@ -0,0 +1,2 @@ +# -#- coding: utf-8 -#- +from . import models diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py new file mode 100644 index 00000000..49b1e467 --- /dev/null +++ b/apps_product_creator/__manifest__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Onestein () +# Copyright 2017 Alex Comba - Agile Business Group +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + 'name': 'Github Product Creator', + 'summary': 'Creates product variants for each module version', + 'version': '10.0.1.0.0', + 'category': 'Extra Tools', + 'license': 'AGPL-3', + 'author': 'Onestein, Agile Business Group,' + 'Odoo Community Association (OCA),', + 'depends': [ + 'github_connector_odoo', + 'product', + ], + 'data': [ + 'data/product_attribute.xml', + 'views/view_odoo_module.xml', + 'views/view_product_template.xml', + 'views/view_product_product.xml', + ], + 'installable': True, +} diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/data/product_attribute.xml new file mode 100644 index 00000000..26d2ae86 --- /dev/null +++ b/apps_product_creator/data/product_attribute.xml @@ -0,0 +1,28 @@ + + + + + + Odoo Version + + + + 8.0 + + + + + 9.0 + + + + + 10.0 + + + + diff --git a/apps_product_creator/models/__init__.py b/apps_product_creator/models/__init__.py new file mode 100644 index 00000000..ea213537 --- /dev/null +++ b/apps_product_creator/models/__init__.py @@ -0,0 +1,4 @@ +# -#- coding: utf-8 -#- +from . import product_template +from . import product_product +from . import odoo_module diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py new file mode 100644 index 00000000..92118eb8 --- /dev/null +++ b/apps_product_creator/models/odoo_module.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Onestein () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openerp import models, fields, api + + +class OdooModule(models.Model): + _inherit = 'odoo.module' + + product_template_id = fields.Many2one( + 'product.template', string="Product Template") + + @api.multi + def action_create_product(self): + self._create_product() + + @api.multi + def _create_product(self): + for module in self: + if module.product_template_id: + continue + matching_template = self.env['product.template'].search( + [('odoo_module_id', '=', module.id)], limit=1) + if matching_template: + module.product_template_id = matching_template + continue + template_dict = module._get_template_values() + new_template = self.env['product.template'].create(template_dict) + module.product_template_id = new_template + + @api.multi + def _get_template_values(self): + self.ensure_one() + + milestones = self.module_version_ids.mapped( + 'repository_branch_id').mapped( + 'organization_milestone_id').mapped('name') + value_ids = self.env['product.attribute.value'].search( + [('name', 'in', milestones)]).ids + + res = { + 'odoo_module_id': self.id, + 'type': 'service', + 'name': self.name, + 'attribute_line_ids': [(0, 0, { + 'attribute_id': self.env.ref( + 'github_product_creator.attribute_odoo_version').id, + 'value_ids': [(6, 0, value_ids)], + })] + } + return res diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py new file mode 100644 index 00000000..fb2b340e --- /dev/null +++ b/apps_product_creator/models/product_product.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Onestein () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openerp import models, fields, api + + +class ProductProduct(models.Model): + _inherit = 'product.product' + + @api.model + def create(self, values): + if values.get('product_tmpl_id') and values.get('attribute_value_ids'): + template = self.env['product.template'].browse( + values['product_tmpl_id']) + attribute = self.env['product.attribute.value'].browse( + values['attribute_value_ids'][0][2]).filtered( + lambda x: x.attribute_id == self.env.ref( + 'github_product_creator.attribute_odoo_version')) + + if attribute: + version = template.odoo_module_id.module_version_ids.filtered( + lambda x: + x.organization_milestone_id.name == attribute.name) + if version: + values.update({'odoo_module_version_id': version.id}) + return super(ProductProduct, self).create(values) + + odoo_module_version_id = fields.Many2one( + 'odoo.module.version', 'Odoo Module') + + license = fields.Char( + string='License (Manifest)', readonly=True, + related="odoo_module_version_id.license", store=True) + summary = fields.Char( + string='Summary (Manifest)', readonly=True, + related="odoo_module_version_id.summary", store=True) + website = fields.Char( + string='Website (Manifest)', readonly=True, + related="odoo_module_version_id.website", store=True) + external_dependencies = fields.Char( + string='External Dependencies (Manifest)', + readonly=True, related="odoo_module_version_id.external_dependencies", + store=True) + description_rst = fields.Char( + string='RST Description (Manifest)', readonly=True, + related="odoo_module_version_id.description_rst", store=True) + description_rst_html = fields.Html( + string='HTML the RST Description', readonly=True, + related="odoo_module_version_id.description_rst_html", store=True) + version = fields.Char( + string='Version (Manifest)', readonly=True, + related="odoo_module_version_id.version", store=True) + author = fields.Char( + string='Author (Manifest)', readonly=True, + related="odoo_module_version_id.author", store=True) + image = fields.Binary( + string='Icon Image', reaonly=True, + related="odoo_module_version_id.image", store=True) + github_url = fields.Char( + string='Github URL', readonly=True, + related="odoo_module_version_id.github_url", store=True) diff --git a/apps_product_creator/models/product_template.py b/apps_product_creator/models/product_template.py new file mode 100644 index 00000000..20d48a72 --- /dev/null +++ b/apps_product_creator/models/product_template.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Onestein () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openerp import models, fields + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + odoo_module_id = fields.Many2one( + 'odoo.module', 'Odoo Module', readonly=True) + technical_name = fields.Char( + string="Technical Name", related="odoo_module_id.technical_name", + store=True) diff --git a/apps_product_creator/views/view_odoo_module.xml b/apps_product_creator/views/view_odoo_module.xml new file mode 100644 index 00000000..c01ddb28 --- /dev/null +++ b/apps_product_creator/views/view_odoo_module.xml @@ -0,0 +1,19 @@ + + + + + + odoo.module + + + + diff --git a/apps_product_creator/views/view_product_product.xml b/apps_product_creator/views/view_product_product.xml index e3627352..b080a9f4 100644 --- a/apps_product_creator/views/view_product_product.xml +++ b/apps_product_creator/views/view_product_product.xml @@ -4,9 +4,7 @@ - product.product.form (in github_product_creator) product.product - @@ -14,17 +12,19 @@ - - - + + + - - - - + + + + + + From 4eba95f3a17143e1fa365ac96de43b065697500b Mon Sep 17 00:00:00 2001 From: antonio Date: Mon, 16 Oct 2017 09:54:05 +0200 Subject: [PATCH 15/61] [FIX] Adapted to recent changes in dependency module github_connector --- apps_product_creator/__init__.py | 2 +- apps_product_creator/__manifest__.py | 2 +- apps_product_creator/data/ir_cron.xml | 2 +- apps_product_creator/data/product_attribute.xml | 2 +- apps_product_creator/models/__init__.py | 2 +- apps_product_creator/models/odoo_module.py | 8 ++++---- apps_product_creator/models/product_product.py | 6 +++--- apps_product_creator/models/product_template.py | 2 +- apps_product_creator/views/view_odoo_module.xml | 2 +- apps_product_creator/views/view_product_product.xml | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps_product_creator/__init__.py b/apps_product_creator/__init__.py index 402ac47e..a0fdc10f 100644 --- a/apps_product_creator/__init__.py +++ b/apps_product_creator/__init__.py @@ -1,2 +1,2 @@ -# -#- coding: utf-8 -#- +# -*- coding: utf-8 -*- from . import models diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 7849f063..95cf45f5 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2016-Today: Odoo Community Association (OCA) +# 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', diff --git a/apps_product_creator/data/ir_cron.xml b/apps_product_creator/data/ir_cron.xml index c6da7317..81b04fa2 100644 --- a/apps_product_creator/data/ir_cron.xml +++ b/apps_product_creator/data/ir_cron.xml @@ -1,5 +1,5 @@ - + diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/data/product_attribute.xml index cc314e53..6a47c29c 100644 --- a/apps_product_creator/data/product_attribute.xml +++ b/apps_product_creator/data/product_attribute.xml @@ -1,5 +1,5 @@ - + diff --git a/apps_product_creator/models/__init__.py b/apps_product_creator/models/__init__.py index ea213537..d3fc90df 100644 --- a/apps_product_creator/models/__init__.py +++ b/apps_product_creator/models/__init__.py @@ -1,4 +1,4 @@ -# -#- coding: utf-8 -#- +# -*- coding: utf-8 -*- from . import product_template from . import product_product from . import odoo_module diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 971947b1..253a0a64 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2016-Today: Odoo Community Association (OCA) +# Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models, fields, api @@ -84,9 +84,9 @@ def _get_template_values(self): """ self.ensure_one() attribute_obj = self.env['product.attribute.value'] - milestones = self.module_version_ids.mapped( - 'repository_branch_id.organization_milestone_id.name') - attributes = attribute_obj.search([('name', 'in', milestones)]) + series = self.module_version_ids.mapped( + 'repository_branch_id.organization_serie_id.name') + attributes = attribute_obj.search([('name', 'in', series)]) attribute = self.env.ref( 'apps_product_creator.attribute_odoo_version') attribute_line_values = { diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 87562e17..9747b4d2 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2016-Today: Odoo Community Association (OCA) +# Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models @@ -112,11 +112,11 @@ def _get_version_with_attribute(self, versions, attribute): :param attribute: product.attribute.value recordset :return: odoo.module.version recordset """ - # Attribute value (so the name field) must be the milestone name + # Attribute value (so the name field) must be the serie name # (so the version). So we can compare name without managing # translations. version = versions.filtered( - lambda x: x.organization_milestone_id.name == attribute.name) + lambda x: x.organization_serie_id.name == attribute.name) return version @api.model diff --git a/apps_product_creator/models/product_template.py b/apps_product_creator/models/product_template.py index c2739921..90ce0979 100644 --- a/apps_product_creator/models/product_template.py +++ b/apps_product_creator/models/product_template.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2016-Today: Odoo Community Association (OCA) +# Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/apps_product_creator/views/view_odoo_module.xml b/apps_product_creator/views/view_odoo_module.xml index 163432a1..a5466cd6 100644 --- a/apps_product_creator/views/view_odoo_module.xml +++ b/apps_product_creator/views/view_odoo_module.xml @@ -1,5 +1,5 @@ - + diff --git a/apps_product_creator/views/view_product_product.xml b/apps_product_creator/views/view_product_product.xml index b080a9f4..4d62ea26 100644 --- a/apps_product_creator/views/view_product_product.xml +++ b/apps_product_creator/views/view_product_product.xml @@ -1,5 +1,5 @@ - + From d71675ccd3e81def4c6b747198112070ed6897dd Mon Sep 17 00:00:00 2001 From: antonio Date: Mon, 16 Oct 2017 10:14:46 +0200 Subject: [PATCH 16/61] [FIX] Fixed Travis --- apps_product_creator/__manifest__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 95cf45f5..2453c9b2 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -3,7 +3,8 @@ # 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', + 'summary': 'Create a product variant (by version) for every module found ' + 'in the Github repositories', 'version': '10.0.1.0.0', 'category': 'Connector', 'license': 'AGPL-3', From 554d8b0c4e513e3f183f2aded66043afbc6f73a1 Mon Sep 17 00:00:00 2001 From: antonio Date: Thu, 9 Nov 2017 15:46:26 +0100 Subject: [PATCH 17/61] Implemented Unit tests --- apps_product_creator/models/odoo_module.py | 2 +- apps_product_creator/tests/__init__.py | 4 ++ .../tests/test_apps_product_creator.py | 54 +++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 apps_product_creator/tests/__init__.py create mode 100644 apps_product_creator/tests/test_apps_product_creator.py diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 253a0a64..6a67a404 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -57,7 +57,7 @@ def _create_product(self): products = self.env['product.template'] modules = self.filtered(lambda m: not m.product_template_id) domain = [ - ('odoo_module_id', '=', modules.ids), + ('odoo_module_id', 'in', modules.ids), ] matching_products = product_obj.search(domain) for odoo_module in modules: diff --git a/apps_product_creator/tests/__init__.py b/apps_product_creator/tests/__init__.py new file mode 100644 index 00000000..9efd936f --- /dev/null +++ b/apps_product_creator/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2017-Today: Odoo Community Association (OCA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import test_apps_product_creator diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py new file mode 100644 index 00000000..c2ebf001 --- /dev/null +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2017-Today: Odoo Community Association (OCA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo.tests.common import TransactionCase + + +class TestAppsProductCreator(TransactionCase): + + def setUp(self): + super(TestAppsProductCreator, self).setUp() + + self.organization1 = self.env['github.organization'].create({ + 'name': 'Organization 1', + 'github_login': 'login', + }) + + self.repository1 = self.env['github.repository'].create({ + 'name': 'Repository1', + 'organization_id': self.organization1.id, + }) + + self.branch1 = self.env['github.repository.branch'].create({ + 'name': 'master', + 'repository_id': self.repository1.id, + }) + + self.odoo_module1 = self.env['odoo.module'].create({ + 'technical_name': 'odoo_module1', + }) + + self.odoo_module1_version1 = self.env['odoo.module.version'].create({ + 'name': 'Odoo Module 1', + 'technical_name': 'odoo_module1', + 'module_id': self.odoo_module1.id, + 'repository_branch_id': self.branch1.id, + 'license': 'AGPL-3', + 'summary': 'Summary Test', + 'website': 'Website Test', + 'description_rst': 'Description Test', + 'version': '10.0', + 'author': 'OCA', + 'depends': 'base', + 'external_dependencies': '{}', + }) + + def test1_product_create(self): + self.assertFalse(self.odoo_module1.product_template_id) + self.odoo_module1.action_create_product() + self.assertTrue(self.odoo_module1.product_template_id) + action = self.odoo_module1.action_view_rel_products() + self.assertEqual( + self.odoo_module1.product_template_id.product_variant_ids.ids[0], + action['res_id'] + ) From 35eb21f620166d503600b7e2085ed0a826558b46 Mon Sep 17 00:00:00 2001 From: antonio Date: Tue, 21 Nov 2017 11:23:57 +0100 Subject: [PATCH 18/61] [FIX] Refactoring --- apps_product_creator/__manifest__.py | 2 +- .../{data => demo}/product_attribute.xml | 2 +- apps_product_creator/models/odoo_module.py | 19 +++++++------------ .../models/product_product.py | 5 ----- .../views/view_odoo_module.xml | 4 ++-- 5 files changed, 11 insertions(+), 21 deletions(-) rename apps_product_creator/{data => demo}/product_attribute.xml (98%) diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 2453c9b2..146ca0fe 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -14,7 +14,7 @@ 'product', ], 'data': [ - 'data/product_attribute.xml', + 'demo/product_attribute.xml', 'data/ir_cron.xml', 'views/view_odoo_module.xml', 'views/view_product_product.xml', diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/demo/product_attribute.xml similarity index 98% rename from apps_product_creator/data/product_attribute.xml rename to apps_product_creator/demo/product_attribute.xml index 6a47c29c..f9279af5 100644 --- a/apps_product_creator/data/product_attribute.xml +++ b/apps_product_creator/demo/product_attribute.xml @@ -1,7 +1,7 @@ - + Odoo Version diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 6a67a404..9b79da67 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -11,22 +11,22 @@ class OdooModule(models.Model): 'product_template_id', 'product_template_id.product_variant_ids' ) - def _get_rel_product_count(self): + def _compute_product_qty(self): for module in self: - module.rel_product_count = len( + module.product_qty = len( module.product_template_id.product_variant_ids) product_template_id = fields.Many2one( 'product.template', "Product Template", ) - rel_product_count = fields.Integer( + product_qty = fields.Integer( '# of Products', - compute='_get_rel_product_count', + compute='_compute_product_qty', store=True) @api.multi - def action_view_rel_products(self): + def action_view_products(self): action = self.env.ref('product.product_normal_action_sell') result = action.read()[0] product_ids = sum( @@ -64,7 +64,7 @@ def _create_product(self): product = matching_products.filtered( lambda p: p.odoo_module_id == odoo_module) if not product: - product_values = odoo_module._get_template_values() + product_values = odoo_module._prepare_template() new_product = product_obj.create(product_values) odoo_module.write({ 'product_template_id': new_product.id, @@ -73,7 +73,7 @@ def _create_product(self): return products @api.multi - def _get_template_values(self): + def _prepare_template(self): """ Create the dict to create a product.template recordset based on the current recordset. @@ -109,11 +109,6 @@ def _get_template_values(self): @api.multi def write(self, values): - """ - - :param values: dict - :return: bool - """ to_update = bool(values.get('image', False)) result = super(OdooModule, self).write(values) if to_update: diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 9747b4d2..a4925028 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -58,11 +58,6 @@ class ProductProduct(models.Model): @api.model def create(self, values): - """ - Apply the behaviour to product used to save modules. - :param values: dict - :return: self recordset - """ self._manage_product_module(values) return super(ProductProduct, self).create(values) diff --git a/apps_product_creator/views/view_odoo_module.xml b/apps_product_creator/views/view_odoo_module.xml index a5466cd6..3e48a048 100644 --- a/apps_product_creator/views/view_odoo_module.xml +++ b/apps_product_creator/views/view_odoo_module.xml @@ -10,8 +10,8 @@ - From 93dc6cf6ca6a4081c93a27da5036b1a8cc272642 Mon Sep 17 00:00:00 2001 From: antonio Date: Tue, 21 Nov 2017 11:44:06 +0100 Subject: [PATCH 19/61] [FIX] Bugfixing --- apps_product_creator/tests/test_apps_product_creator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index c2ebf001..6cba18b3 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -47,7 +47,7 @@ def test1_product_create(self): self.assertFalse(self.odoo_module1.product_template_id) self.odoo_module1.action_create_product() self.assertTrue(self.odoo_module1.product_template_id) - action = self.odoo_module1.action_view_rel_products() + action = self.odoo_module1.action_view_products() self.assertEqual( self.odoo_module1.product_template_id.product_variant_ids.ids[0], action['res_id'] From ce977eb879a479a2daef2a5611d988bbcd9348c4 Mon Sep 17 00:00:00 2001 From: antonio Date: Wed, 22 Nov 2017 08:50:36 +0100 Subject: [PATCH 20/61] [FIX] Moved demo file in demo key within manifest --- apps_product_creator/__manifest__.py | 4 +- apps_product_creator/i18n/es.po | 149 +++++++++++++++++++++++++++ apps_product_creator/i18n/fr.po | 149 +++++++++++++++++++++++++++ 3 files changed, 301 insertions(+), 1 deletion(-) create mode 100644 apps_product_creator/i18n/es.po create mode 100644 apps_product_creator/i18n/fr.po diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 146ca0fe..1e5099e6 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -14,10 +14,12 @@ 'product', ], 'data': [ - 'demo/product_attribute.xml', 'data/ir_cron.xml', 'views/view_odoo_module.xml', 'views/view_product_product.xml', ], + 'demo': [ + 'demo/product_attribute.xml', + ], 'installable': True, } diff --git a/apps_product_creator/i18n/es.po b/apps_product_creator/i18n/es.po new file mode 100644 index 00000000..cc8a6461 --- /dev/null +++ b/apps_product_creator/i18n/es.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * apps_product_creator +# +# Translators: +# enjolras , 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 , 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" diff --git a/apps_product_creator/i18n/fr.po b/apps_product_creator/i18n/fr.po new file mode 100644 index 00000000..caae57d2 --- /dev/null +++ b/apps_product_creator/i18n/fr.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * apps_product_creator +# +# Translators: +# Quentin THEURET , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-08 01:39+0000\n" +"PO-Revision-Date: 2018-02-08 01:39+0000\n" +"Last-Translator: Quentin THEURET , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\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 "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_100 +msgid "10.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_110 +msgid "11.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_50 +msgid "5.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_60 +msgid "6.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_61 +msgid "6.1" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_70 +msgid "7.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_80 +msgid "8.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_90 +msgid "9.0" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids +msgid "Authors" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url +msgid "Github URL" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id +msgid "License" +msgstr "" + +#. module: apps_product_creator +#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view +msgid "Module Informations" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:product.attribute,name:apps_product_creator.attribute_odoo_version +msgid "Odoo Version" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_product_product +msgid "Product" +msgstr "Produit" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view +msgid "Products" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary +msgid "Summary (Manifest)" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_version +msgid "Version (Manifest)" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website +msgid "Website (Manifest)" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module +msgid "odoo.module" +msgstr "" From 4313026d4cf3f884bcdb18669ece1d8bda10a7fb Mon Sep 17 00:00:00 2001 From: tarteo Date: Thu, 12 Apr 2018 12:37:43 +0200 Subject: [PATCH 21/61] [MIG] apps_product_creator: Migration to 11.0 --- apps_product_creator/README.rst | 2 +- apps_product_creator/__init__.py | 1 - apps_product_creator/__manifest__.py | 3 +-- apps_product_creator/data/ir_cron.xml | 6 +++--- apps_product_creator/models/__init__.py | 1 - apps_product_creator/models/odoo_module.py | 1 - .../models/product_product.py | 19 ++++++++++--------- .../models/product_template.py | 1 - apps_product_creator/tests/__init__.py | 1 - .../tests/test_apps_product_creator.py | 1 - 10 files changed, 15 insertions(+), 21 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index ca78c677..26f76891 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -11,7 +11,7 @@ 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/10.0 + :target: https://runbot.odoo-community.org/runbot/249/11.0 Bug Tracker =========== diff --git a/apps_product_creator/__init__.py b/apps_product_creator/__init__.py index a0fdc10f..0650744f 100644 --- a/apps_product_creator/__init__.py +++ b/apps_product_creator/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import models diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 1e5099e6..7e9c3f5e 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- # 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': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Connector', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA)', diff --git a/apps_product_creator/data/ir_cron.xml b/apps_product_creator/data/ir_cron.xml index 81b04fa2..e06785f2 100644 --- a/apps_product_creator/data/ir_cron.xml +++ b/apps_product_creator/data/ir_cron.xml @@ -11,9 +11,9 @@ days -1 - - - + + code + model.cron_create_product() diff --git a/apps_product_creator/models/__init__.py b/apps_product_creator/models/__init__.py index d3fc90df..547d77b9 100644 --- a/apps_product_creator/models/__init__.py +++ b/apps_product_creator/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import product_template from . import product_product from . import odoo_module diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 9b79da67..2462f8e6 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models, fields, api diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index a4925028..0b9b5df9 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -1,7 +1,7 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models +from odoo import tools class ProductProduct(models.Model): @@ -42,14 +42,15 @@ class ProductProduct(models.Model): related="odoo_module_version_id.version", store=True, ) - - author = fields.Char( - 'Author (Manifest)', - readonly=True, - related="odoo_module_version_id.author", - store=True, - ) - github_url = fields.Char( + app_author_ids = fields.Many2many( + string='Authors', comodel_name='odoo.author', + relation='product_module_author_rel', + column1='product_id', + column2='author_id', + multi='author', + related="odoo_module_version_id.author_ids", + store=True,) + app_github_url = fields.Char( 'Github URL', readonly=True, related="odoo_module_version_id.github_url", diff --git a/apps_product_creator/models/product_template.py b/apps_product_creator/models/product_template.py index 90ce0979..399451e3 100644 --- a/apps_product_creator/models/product_template.py +++ b/apps_product_creator/models/product_template.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/apps_product_creator/tests/__init__.py b/apps_product_creator/tests/__init__.py index 9efd936f..9ada0316 100644 --- a/apps_product_creator/tests/__init__.py +++ b/apps_product_creator/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_apps_product_creator diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index 6cba18b3..2807d669 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase From 844925df503e93e0fbd3c2ea6ac9405b58b8018f Mon Sep 17 00:00:00 2001 From: tarteo Date: Thu, 3 May 2018 11:50:33 +0200 Subject: [PATCH 22/61] [IMP] Formatting xml, move product_attribute to data --- apps_product_creator/__manifest__.py | 4 +- .../{demo => data}/product_attribute.xml | 0 .../i18n/apps_product_creator.pot | 152 ++++++++++++++++++ apps_product_creator/i18n/es.po | 11 +- apps_product_creator/i18n/fr.po | 11 +- .../views/view_odoo_module.xml | 6 +- .../views/view_product_product.xml | 4 +- 7 files changed, 179 insertions(+), 9 deletions(-) rename apps_product_creator/{demo => data}/product_attribute.xml (100%) create mode 100644 apps_product_creator/i18n/apps_product_creator.pot diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 7e9c3f5e..3c7c4913 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -14,11 +14,9 @@ ], 'data': [ 'data/ir_cron.xml', + 'data/product_attribute.xml', 'views/view_odoo_module.xml', 'views/view_product_product.xml', ], - 'demo': [ - 'demo/product_attribute.xml', - ], 'installable': True, } diff --git a/apps_product_creator/demo/product_attribute.xml b/apps_product_creator/data/product_attribute.xml similarity index 100% rename from apps_product_creator/demo/product_attribute.xml rename to apps_product_creator/data/product_attribute.xml diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot new file mode 100644 index 00000000..027ddb36 --- /dev/null +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -0,0 +1,152 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * apps_product_creator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module_product_qty +msgid "# of Products" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_100 +msgid "10.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_110 +msgid "11.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_50 +msgid "5.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_60 +msgid "6.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_61 +msgid "6.1" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_70 +msgid "7.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_80 +msgid "8.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_90 +msgid "9.0" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids +msgid "Authors" +msgstr "" + +#. module: apps_product_creator +#: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server +#: model:ir.cron,cron_name:apps_product_creator.cron_update_organization +#: model:ir.cron,name:apps_product_creator.cron_update_organization +msgid "Create product variants for each module version" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url +msgid "Github URL" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id +msgid "License" +msgstr "" + +#. module: apps_product_creator +#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view +msgid "Module Informations" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:product.attribute,name:apps_product_creator.attribute_odoo_version +msgid "Odoo Version" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_product_product +msgid "Product" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view +msgid "Products" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary +msgid "Summary (Manifest)" +msgstr "" + +#. 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 "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_version +msgid "Version (Manifest)" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website +msgid "Website (Manifest)" +msgstr "" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module +msgid "odoo.module" +msgstr "" + diff --git a/apps_product_creator/i18n/es.po b/apps_product_creator/i18n/es.po index cc8a6461..a0f62518 100644 --- a/apps_product_creator/i18n/es.po +++ b/apps_product_creator/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * apps_product_creator -# +# # Translators: # enjolras , 2018 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2018-02-10 01:37+0000\n" "Last-Translator: enjolras , 2018\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: 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 @@ -68,6 +68,13 @@ msgstr "9.0" msgid "Authors" msgstr "Autores" +#. module: apps_product_creator +#: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server +#: model:ir.cron,cron_name:apps_product_creator.cron_update_organization +#: model:ir.cron,name:apps_product_creator.cron_update_organization +msgid "Create product variants for each module version" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url msgid "Github URL" diff --git a/apps_product_creator/i18n/fr.po b/apps_product_creator/i18n/fr.po index caae57d2..2c1967ce 100644 --- a/apps_product_creator/i18n/fr.po +++ b/apps_product_creator/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * apps_product_creator -# +# # Translators: # Quentin THEURET , 2018 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2018-02-08 01:39+0000\n" "Last-Translator: Quentin THEURET , 2018\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: apps_product_creator @@ -68,6 +68,13 @@ msgstr "" msgid "Authors" msgstr "" +#. module: apps_product_creator +#: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server +#: model:ir.cron,cron_name:apps_product_creator.cron_update_organization +#: model:ir.cron,name:apps_product_creator.cron_update_organization +msgid "Create product variants for each module version" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url msgid "Github URL" diff --git a/apps_product_creator/views/view_odoo_module.xml b/apps_product_creator/views/view_odoo_module.xml index 3e48a048..2cce3988 100644 --- a/apps_product_creator/views/view_odoo_module.xml +++ b/apps_product_creator/views/view_odoo_module.xml @@ -10,7 +10,11 @@ - diff --git a/apps_product_creator/views/view_product_product.xml b/apps_product_creator/views/view_product_product.xml index 4d62ea26..7467461d 100644 --- a/apps_product_creator/views/view_product_product.xml +++ b/apps_product_creator/views/view_product_product.xml @@ -8,7 +8,9 @@ - + From 880727d02cb18f3d5244bbfe3bfe2a86397dac9c Mon Sep 17 00:00:00 2001 From: Divya Modi Date: Fri, 31 Aug 2018 19:26:08 +0530 Subject: [PATCH 23/61] [WIP]partial commit for migration of apps-store --- apps_product_creator/models/odoo_module.py | 13 ++--- .../models/product_product.py | 54 +++++++++++++++++-- .../tests/test_apps_product_creator.py | 21 ++++++++ 3 files changed, 77 insertions(+), 11 deletions(-) diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 2462f8e6..f089c170 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -63,12 +63,13 @@ def _create_product(self): product = matching_products.filtered( lambda p: p.odoo_module_id == odoo_module) if not product: - product_values = odoo_module._prepare_template() - new_product = product_obj.create(product_values) - odoo_module.write({ - 'product_template_id': new_product.id, - }) - products |= new_product + if not odoo_module.product_template_id: + product_values = odoo_module._prepare_template() + new_product = product_obj.create(product_values) + odoo_module.write({ + 'product_template_id': new_product.id, + }) + products |= new_product return products @api.multi diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 0b9b5df9..da46c80b 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -87,16 +87,60 @@ def _manage_product_module(self, values): # Check if mandatory keys (for product module) are given if all([k in values_keys for k in check_keys]): product_obj = self.env['product.template'] + module_version = self.env['odoo.module.version'] + product_variant = self.env['product.product'] product = product_obj.browse(values.get(product_tmpl_key, [])) # If the product template is used to save an Odoo module if self._check_related_to_module(product): attribute = self._get_version_attribute(values) - version = self._get_version_with_attribute( + versions = self._get_version_with_attribute( product.odoo_module_id.module_version_ids, attribute) - # If we don't have a result, the ID will be False - values.update({ - 'odoo_module_version_id': version.id, - }) + for version in versions: + module_id = version.module_id + mod_ver_ids = module_id.dependence_module_version_ids.ids + dependency_modules = module_version.search([ + ('id', 'in', mod_ver_ids), + ('repository_branch_id', '=', + version.repository_branch_id.id) + ]) + product_ids = [] + for dep in dependency_modules: + product_variant_data = product_variant.search([ + ('name', '=', dep.name), + ('odoo_module_version_id.module_id', '=', + dep.module_id.id), + ('attribute_value_ids.name', '=', + dep.repository_branch_id.name), + ]) + if product_variant_data: + for pro in product_variant_data: + product_ids.append(pro.id) + if not product_variant_data: + product_data = dep.module_id._create_product() + product_variant_data = \ + product_data.product_variant_ids.search([ + ('attribute_value_ids.name', '=', + dep.repository_branch_id.name), + ('odoo_module_version_id.module_id', + '=', dep.module_id.id), ]) + if product_variant_data: + product_ids.append(product_variant_data.id) + values.update({ + 'dependent_product_ids': [ + (6, 0, product_ids) + ] if product_ids else False, + }) + else: + values.update({ + 'dependent_product_ids': [ + (6, 0, product_ids) + ] if product_ids else False, + }) + + # If we don't have a result, the ID will be False + values.update({ + 'odoo_module_version_id': version.id, + }) return True @api.model diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index 2807d669..5fe1d76f 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -23,8 +23,29 @@ def setUp(self): 'repository_id': self.repository1.id, }) + self.odoo_module2 = self.env['odoo.module'].create({ + 'technical_name': 'odoo_module2', + }) + + self.odoo_module1_version2 = self.env['odoo.module.version'].create({ + 'name': 'Odoo Module 2', + 'technical_name': 'odoo_module2', + 'module_id': self.odoo_module2.id, + 'repository_branch_id': self.branch1.id, + 'license': 'AGPL-3', + 'summary': 'Summary Test', + 'website': 'Website Test', + 'description_rst': 'Description Test', + 'version': '10.0', + 'author': 'OCA', + 'depends': 'base', + 'external_dependencies': '{}', + }) + self.odoo_module1 = self.env['odoo.module'].create({ 'technical_name': 'odoo_module1', + 'dependence_module_version_ids': [ + (6, 0, [self.odoo_module1_version2.id])], }) self.odoo_module1_version1 = self.env['odoo.module.version'].create({ From 78b27c61f8f917f47311ab1c4db998d5cf9a234a Mon Sep 17 00:00:00 2001 From: Divya Modi Date: Thu, 6 Sep 2018 15:41:56 +0530 Subject: [PATCH 24/61] [FIX] Changes as per suggested --- apps_product_creator/models/product_product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index da46c80b..e2661d06 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -93,9 +93,9 @@ def _manage_product_module(self, values): # If the product template is used to save an Odoo module if self._check_related_to_module(product): attribute = self._get_version_attribute(values) - versions = self._get_version_with_attribute( + version_ids = self._get_version_with_attribute( product.odoo_module_id.module_version_ids, attribute) - for version in versions: + for version in version_ids: module_id = version.module_id mod_ver_ids = module_id.dependence_module_version_ids.ids dependency_modules = module_version.search([ From e7dc83f298ec6df1d69f8b0b35218cc1ab1459a9 Mon Sep 17 00:00:00 2001 From: Divya Modi Date: Mon, 17 Sep 2018 16:16:41 +0530 Subject: [PATCH 25/61] [FIX] add changes as per requested --- apps_product_creator/models/product_product.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index e2661d06..5088000c 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -93,11 +93,11 @@ def _manage_product_module(self, values): # If the product template is used to save an Odoo module if self._check_related_to_module(product): attribute = self._get_version_attribute(values) - version_ids = self._get_version_with_attribute( + versions = self._get_version_with_attribute( product.odoo_module_id.module_version_ids, attribute) - for version in version_ids: - module_id = version.module_id - mod_ver_ids = module_id.dependence_module_version_ids.ids + for version in versions: + module = version.module_id + mod_ver_ids = module.dependence_module_version_ids.ids dependency_modules = module_version.search([ ('id', 'in', mod_ver_ids), ('repository_branch_id', '=', From bb169ec2a71cf663e0dbb8a87e9c7db672ef402c Mon Sep 17 00:00:00 2001 From: BizzAppDev Date: Tue, 2 Oct 2018 16:55:42 +0530 Subject: [PATCH 26/61] 11.0 Improvement for filters and product page description (#14) * [IMP] website_apps_store: remove author filter from shop * [FIX]apps_product_creator: fix the broken image path problem with github direct link * [FIX]rename method with proper name * [FIX] solve the problem for renaming function * [FIX] reoved the author test cases --- .../models/product_product.py | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 5088000c..0254cfe5 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -2,6 +2,28 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models from odoo import tools +import lxml + + +def urljoin(*args): + """ + Joins given arguments into an url. Trailing but not leading slashes are + stripped for each argument. + """ + + return "/".join(map(lambda x: str(x).rstrip('/'), args)) + + +def hook_github_image_url(rst_desc, github_url): + html_node = lxml.html.fromstring(rst_desc) + github_url = github_url.replace('/tree/', '/blob/') + for node in html_node.xpath('//img'): + if not node.attrib['src'].startswith("/"): + continue + node.attrib['src'] = urljoin( + github_url, '/'.join(node.attrib['src'].split("/")[2:]), + '?raw=true') + return lxml.html.tostring(html_node) class ProductProduct(models.Model): @@ -32,8 +54,8 @@ class ProductProduct(models.Model): ) app_description_rst_html = fields.Html( 'HTML of the RST Description', + compute='_compute_app_description_rst_html', readonly=True, - related="odoo_module_version_id.description_rst_html", store=True, ) app_version = fields.Char( @@ -57,6 +79,17 @@ class ProductProduct(models.Model): store=True, ) + @api.depends('odoo_module_version_id', + 'odoo_module_version_id.description_rst_html') + @api.multi + def _compute_app_description_rst_html(self): + for product in self: + rst_desc = product.odoo_module_version_id.description_rst_html + if rst_desc and ' Date: Tue, 2 Oct 2018 13:26:14 +0200 Subject: [PATCH 27/61] [ADD] Add the Module maturity on the created product variant (#19) * [ADD] Add the Module maturity on the created product variant * [UPD] Update readme to new format, add changelog --- apps_product_creator/README.rst | 80 +++- apps_product_creator/__manifest__.py | 3 +- .../models/product_product.py | 6 + apps_product_creator/readme/CONTRIBUTORS.rst | 6 + apps_product_creator/readme/CREDITS.rst | 4 + apps_product_creator/readme/DESCRIPTION.rst | 2 + apps_product_creator/readme/HISTORY.rst | 5 + .../static/description/index.html | 445 ++++++++++++++++++ .../views/view_product_product.xml | 1 + 9 files changed, 530 insertions(+), 22 deletions(-) create mode 100644 apps_product_creator/readme/CONTRIBUTORS.rst create mode 100644 apps_product_creator/readme/CREDITS.rst create mode 100644 apps_product_creator/readme/DESCRIPTION.rst create mode 100644 apps_product_creator/readme/HISTORY.rst create mode 100644 apps_product_creator/static/description/index.html diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index 26f76891..d90ac4a7 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -1,53 +1,91 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 +====================== +Github product creator +====================== -==================== -Apps 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/11.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-11-0/apps-store-11-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/11.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. -.. 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 +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + +11.0.1.1.0 (2018-10-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [ADD] Added dependency on github_connector_oca to display development_status + (`#19 `_) Bug Tracker =========== Bugs are tracked on `GitHub 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. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- - -* Odoo Community Association: `Icon `_. - Contributors ------------- +~~~~~~~~~~~~ * Alex Comba * Antonio Esposito * Eric Caudal * François Honoré * Nicola Malcontenti +* Roel Adriaans -Maintainer ----------- +Other credits +~~~~~~~~~~~~~ + +Images +------ + +* Odoo Community Association: `Icon `_. + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. 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. +This module is part of the `OCA/apps-store `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 3c7c4913..e1066a18 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -4,11 +4,12 @@ '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', + 'version': '11.0.1.1.0', 'category': 'Connector', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA)', 'depends': [ + 'github_connector_oca', 'github_connector_odoo', 'product', ], diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 0254cfe5..5744275f 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -78,6 +78,12 @@ class ProductProduct(models.Model): related="odoo_module_version_id.github_url", store=True, ) + app_development_status = fields.Selection( + 'Module maturity', + readonly=True, + related="odoo_module_version_id.development_status", + store=True, + ) @api.depends('odoo_module_version_id', 'odoo_module_version_id.description_rst_html') diff --git a/apps_product_creator/readme/CONTRIBUTORS.rst b/apps_product_creator/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..dc35b64b --- /dev/null +++ b/apps_product_creator/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Alex Comba +* Antonio Esposito +* Eric Caudal +* François Honoré +* Nicola Malcontenti +* Roel Adriaans \ No newline at end of file diff --git a/apps_product_creator/readme/CREDITS.rst b/apps_product_creator/readme/CREDITS.rst new file mode 100644 index 00000000..9baa7efb --- /dev/null +++ b/apps_product_creator/readme/CREDITS.rst @@ -0,0 +1,4 @@ +Images +------ + +* Odoo Community Association: `Icon `_. diff --git a/apps_product_creator/readme/DESCRIPTION.rst b/apps_product_creator/readme/DESCRIPTION.rst new file mode 100644 index 00000000..174d9098 --- /dev/null +++ b/apps_product_creator/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +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. diff --git a/apps_product_creator/readme/HISTORY.rst b/apps_product_creator/readme/HISTORY.rst new file mode 100644 index 00000000..cc201dcb --- /dev/null +++ b/apps_product_creator/readme/HISTORY.rst @@ -0,0 +1,5 @@ +11.0.1.1.0 (2018-10-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [ADD] Added dependency on github_connector_oca to display development_status + (`#19 `_) diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html new file mode 100644 index 00000000..49cffb97 --- /dev/null +++ b/apps_product_creator/static/description/index.html @@ -0,0 +1,445 @@ + + + + + + +Github product creator + + + +
+

Github product creator

+ + +

Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runbot

+

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

+ +
+

Changelog

+
+

11.0.1.1.0 (2018-10-02)

+
    +
  • [ADD] Added dependency on github_connector_oca to display development_status +(#19)
  • +
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Contributors

+ +
+
+

Other credits

+
+

Images

+
    +
  • Odoo Community Association: Icon.
  • +
+
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/apps_product_creator/views/view_product_product.xml b/apps_product_creator/views/view_product_product.xml index 7467461d..a4384401 100644 --- a/apps_product_creator/views/view_product_product.xml +++ b/apps_product_creator/views/view_product_product.xml @@ -21,6 +21,7 @@ +
From 3704f20574c0fcba015c0c71944b26d1bc2a6d9a Mon Sep 17 00:00:00 2001 From: "Olar Alca [Vauxoo]" Date: Tue, 2 Oct 2018 13:33:05 +0200 Subject: [PATCH 28/61] [IMP] apps-store (#15) * [IMP] apps-store: - Shop: * Removed filter by author. * Added a more informative placeholder to the searchbox * Added categories of apps to public categories. * Added a filter `All` option for categories dropdown. * Removed sort by price. - Changed the way products are created, now products are related to their correspondant category. (used the ones from Odoo.com/apps) - On PDP added the version of the app if it has no variants. * [REF] if no category found will defailt to 'Other' category --- apps_product_creator/__manifest__.py | 2 + .../data/product_public_categ_data.xml | 76 +++++++++++++++++++ apps_product_creator/models/odoo_module.py | 9 ++- 3 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 apps_product_creator/data/product_public_categ_data.xml diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index e1066a18..28a72622 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -12,10 +12,12 @@ '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', ], diff --git a/apps_product_creator/data/product_public_categ_data.xml b/apps_product_creator/data/product_public_categ_data.xml new file mode 100644 index 00000000..213e77e6 --- /dev/null +++ b/apps_product_creator/data/product_public_categ_data.xml @@ -0,0 +1,76 @@ + + + + + Accounting + 1 + + + Discuss + 2 + + + Document Management + 3 + + + eCommerce + 4 + + + Human Resources + 5 + + + Industries + 6 + + + Localization + 7 + + + Manufacturing + 8 + + + Point of Sale + 9 + + + Productivity + 10 + + + Project + 11 + + + Purchases + 12 + + + Sales + 13 + + + Warehouse + 14 + + + Website + 15 + + + Extra Tools + 16 + + + Other + 17 + + diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index f089c170..74610a95 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -84,6 +84,7 @@ def _prepare_template(self): """ self.ensure_one() attribute_obj = self.env['product.attribute.value'] + categ_obj = self.env['product.public.category'] series = self.module_version_ids.mapped( 'repository_branch_id.organization_serie_id.name') attributes = attribute_obj.search([('name', 'in', series)]) @@ -93,6 +94,11 @@ def _prepare_template(self): 'attribute_id': attribute.id, 'value_ids': [(6, 0, attributes.ids)], } + version_categ = self.module_version_ids.mapped('category_id') + category = categ_obj.search( + [('name', '=', version_categ.name)], limit=1) + if not category: + category = self.env.ref('apps_product_creator.other') values = { 'odoo_module_id': self.id, 'type': 'service', @@ -103,7 +109,8 @@ def _prepare_template(self): 'image': self.image, 'attribute_line_ids': [ (0, 0, attribute_line_values), - ] + ], + 'public_categ_ids': [(4, category._ids)] or None, } return values From c6a601f50997b3d54f17618717a4aefff9855b05 Mon Sep 17 00:00:00 2001 From: BizzAppDev Date: Tue, 2 Oct 2018 19:58:17 +0530 Subject: [PATCH 29/61] [FIX] solve problem in case of multiple version for the one module (#22) * [FIX] solve problem in case of multiple version for the one module * Dump version number --- apps_product_creator/__manifest__.py | 2 +- .../i18n/apps_product_creator.pot | 90 +++++++++++++++++++ apps_product_creator/models/odoo_module.py | 6 +- 3 files changed, 95 insertions(+), 3 deletions(-) diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 28a72622..d8038313 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -4,7 +4,7 @@ 'name': 'Github product creator', 'summary': 'Create a product variant (by version) for every module found ' 'in the Github repositories', - 'version': '11.0.1.1.0', + 'version': '11.0.1.1.1', 'category': 'Connector', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA)', diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot index 027ddb36..14e0b07b 100644 --- a/apps_product_creator/i18n/apps_product_creator.pot +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -58,6 +58,11 @@ msgstr "" msgid "9.0" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.accounting +msgid "Accounting" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids msgid "Authors" @@ -70,6 +75,21 @@ msgstr "" msgid "Create product variants for each module version" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.discuss +msgid "Discuss" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.document_management +msgid "Document Management" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.extra_tools +msgid "Extra Tools" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url msgid "Github URL" @@ -80,22 +100,47 @@ msgstr "" msgid "HTML of the RST Description" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.human_resources +msgid "Human Resources" +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 "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.industries +msgid "Industries" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id msgid "License" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.localization +msgid "Localization" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.manufacturing +msgid "Manufacturing" +msgstr "" + #. module: apps_product_creator #: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view msgid "Module Informations" msgstr "" +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_development_status +msgid "Module maturity" +msgstr "" + #. 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 @@ -108,6 +153,16 @@ msgstr "" msgid "Odoo Version" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.other +msgid "Other" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.point_of_sale +msgid "Point of Sale" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_product_product msgid "Product" @@ -119,11 +174,31 @@ msgstr "" msgid "Product Template" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.productivity +msgid "Productivity" +msgstr "" + #. module: apps_product_creator #: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view msgid "Products" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.project +msgid "Project" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.purchases +msgid "Purchases" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.sales +msgid "Sales" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary msgid "Summary (Manifest)" @@ -140,11 +215,26 @@ msgstr "" msgid "Version (Manifest)" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.warehouse +msgid "Warehouse" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.website +msgid "Website" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website msgid "Website (Manifest)" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.ecommerce +msgid "eCommerce" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_odoo_module msgid "odoo.module" diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 74610a95..dd467b77 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -95,8 +95,10 @@ def _prepare_template(self): 'value_ids': [(6, 0, attributes.ids)], } version_categ = self.module_version_ids.mapped('category_id') - category = categ_obj.search( - [('name', '=', version_categ.name)], limit=1) + category = False + if version_categ: + category = categ_obj.search( + [('name', '=', version_categ[0].name)], limit=1) if not category: category = self.env.ref('apps_product_creator.other') values = { From 46cc3e1b78c4a3e6b7b998c4848e061e7e14fa50 Mon Sep 17 00:00:00 2001 From: Roel Adriaans Date: Thu, 4 Oct 2018 11:52:31 +0200 Subject: [PATCH 30/61] [IMP] Autopublish the modules on the website (#24) --- apps_product_creator/README.rst | 5 +++ apps_product_creator/__manifest__.py | 2 +- apps_product_creator/models/odoo_module.py | 1 + apps_product_creator/readme/HISTORY.rst | 5 +++ .../static/description/index.html | 39 +++++++++++-------- 5 files changed, 35 insertions(+), 17 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index d90ac4a7..772a9108 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -36,6 +36,11 @@ A variant is also created for every version of the module. Changelog ========= +11.0.1.1.2 (2018-10-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Publish the modules automatically on the website + 11.0.1.1.0 (2018-10-02) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index d8038313..26b47d6a 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -4,7 +4,7 @@ 'name': 'Github product creator', 'summary': 'Create a product variant (by version) for every module found ' 'in the Github repositories', - 'version': '11.0.1.1.1', + 'version': '11.0.1.1.2', 'category': 'Connector', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA)', diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index dd467b77..9b291466 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -113,6 +113,7 @@ def _prepare_template(self): (0, 0, attribute_line_values), ], 'public_categ_ids': [(4, category._ids)] or None, + 'website_published': True, } return values diff --git a/apps_product_creator/readme/HISTORY.rst b/apps_product_creator/readme/HISTORY.rst index cc201dcb..3bd87f66 100644 --- a/apps_product_creator/readme/HISTORY.rst +++ b/apps_product_creator/readme/HISTORY.rst @@ -1,3 +1,8 @@ +11.0.1.1.2 (2018-10-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Publish the modules automatically on the website + 11.0.1.1.0 (2018-10-02) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index 49cffb97..d55c9292 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -373,26 +373,33 @@

Github product creator

Table of contents

-

Changelog

+

Changelog

-

11.0.1.1.0 (2018-10-02)

+

11.0.1.1.2 (2018-10-02)

+
    +
  • Publish the modules automatically on the website
  • +
+
+
+

11.0.1.1.0 (2018-10-02)

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub 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 @@ -408,9 +415,9 @@

Bug Tracker

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

-

Credits

+

Credits

-

Contributors

+

Contributors

-

Other credits

+

Other credits

-

Images

+

Images

  • Odoo Community Association: Icon.
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose From 25c0296ed449bb83a2f34158dd7629564aa87e61 Mon Sep 17 00:00:00 2001 From: BizzAppDev Date: Fri, 26 Oct 2018 12:06:14 +0530 Subject: [PATCH 31/61] [IMP] while clean the odoo module version archive the product (#36) * [IMP] while clean the odoo module version archive the product * [FIX]Added new line at the end of file * [FIX] fix some typo * [IMP]improve logic with less iterations --- apps_product_creator/README.rst | 5 ++++ apps_product_creator/__manifest__.py | 4 +-- .../i18n/apps_product_creator.pot | 5 ++++ apps_product_creator/models/__init__.py | 1 + .../models/odoo_module_version.py | 25 +++++++++++++++++++ .../static/description/index.html | 23 +++++++++++------ 6 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 apps_product_creator/models/odoo_module_version.py diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index 772a9108..82041b42 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -60,6 +60,11 @@ Do not contact contributors directly about support or help with technical issues Credits ======= +Authors +~~~~~~~ + +* BizzAppDev + Contributors ~~~~~~~~~~~~ diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 26b47d6a..63dd8fec 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -4,10 +4,10 @@ 'name': 'Github product creator', 'summary': 'Create a product variant (by version) for every module found ' 'in the Github repositories', - 'version': '11.0.1.1.2', + 'version': '11.0.1.1.3', 'category': 'Connector', 'license': 'AGPL-3', - 'author': 'Odoo Community Association (OCA)', + 'author': 'Odoo Community Association (OCA), BizzAppDev', 'depends': [ 'github_connector_oca', 'github_connector_odoo', diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot index 14e0b07b..c076be16 100644 --- a/apps_product_creator/i18n/apps_product_creator.pot +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -240,3 +240,8 @@ msgstr "" msgid "odoo.module" msgstr "" +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +msgid "odoo.module.version" +msgstr "" + diff --git a/apps_product_creator/models/__init__.py b/apps_product_creator/models/__init__.py index 547d77b9..16115c1e 100644 --- a/apps_product_creator/models/__init__.py +++ b/apps_product_creator/models/__init__.py @@ -1,3 +1,4 @@ from . import product_template from . import product_product from . import odoo_module +from . import odoo_module_version diff --git a/apps_product_creator/models/odoo_module_version.py b/apps_product_creator/models/odoo_module_version.py new file mode 100644 index 00000000..66f39ba6 --- /dev/null +++ b/apps_product_creator/models/odoo_module_version.py @@ -0,0 +1,25 @@ +# Copyright (C) 2017-Today: Odoo Community Association (OCA), BizzAppDev +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo import models, api + + +class OdooModuleVersion(models.Model): + _inherit = 'odoo.module.version' + + @api.multi + def _process_clean_module_version(self): + product_obj = self.env['product.product'] + for module_version in self: + product = product_obj.search( + [('odoo_module_version_id', '=', module_version.id)]) + product.write({'active': False}) + active_variants = product_obj.search_count( + [ + ('product_tmpl_id', '=', product.product_tmpl_id.id), + ('active', '=', True) + ] + ) + if not active_variants: + product.product_tmpl_id.write( + {'active': False, 'website_published': False}) + return super(OdooModuleVersion, self)._process_clean_module_version() diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index d55c9292..19b17efd 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -380,12 +380,13 @@

Github product creator

  • Bug Tracker
  • Credits @@ -416,8 +417,14 @@

    Bug Tracker

  • Credits

    +
    +

    Authors

    +
      +
    • BizzAppDev
    • +
    +
    -

    Contributors

    +

    Contributors

    -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

    • Odoo Community Association: Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    OCA, or the Odoo Community Association, is a nonprofit organization whose From d9ab637784d982de34f9ef326842d9109209f5b5 Mon Sep 17 00:00:00 2001 From: BizzAppDev Date: Sun, 11 Nov 2018 23:18:27 +0530 Subject: [PATCH 32/61] update products attributes and create attribute values (#40) * [FIX]update the product for the new version * [FIX]max version problem and also rewrite logic so the from fronend if the version is not selected manually then the default(with less sequence) will be downloaded * [IMP]added technical name search functionality * change version number * [IMP]Merged create and update product cron job * [FIX]fix variable names --- apps_product_creator/data/ir_cron.xml | 2 +- .../i18n/apps_product_creator.pot | 2 +- apps_product_creator/models/odoo_module.py | 50 +++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/apps_product_creator/data/ir_cron.xml b/apps_product_creator/data/ir_cron.xml index e06785f2..777cc4ff 100644 --- a/apps_product_creator/data/ir_cron.xml +++ b/apps_product_creator/data/ir_cron.xml @@ -4,7 +4,7 @@ - Create product variants for each module version + Create/Update product variants for each module version 1 diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot index c076be16..f9583655 100644 --- a/apps_product_creator/i18n/apps_product_creator.pot +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -72,7 +72,7 @@ msgstr "" #: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server #: model:ir.cron,cron_name:apps_product_creator.cron_update_organization #: model:ir.cron,name:apps_product_creator.cron_update_organization -msgid "Create product variants for each module version" +msgid "Create/Update product variants for each module version" msgstr "" #. module: apps_product_creator diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 9b291466..37794e81 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -46,6 +46,10 @@ def action_view_products(self): def action_create_product(self): self._create_product() + @api.multi + def action_update_product(self): + self._update_product() + @api.multi def _create_product(self): """ @@ -72,6 +76,44 @@ def _create_product(self): products |= new_product return products + @api.multi + def _update_product(self): + attribute = self.env.ref( + 'apps_product_creator.attribute_odoo_version') + attribute_val = self.env['product.attribute.value'] + modules = self.filtered(lambda m: m.product_template_id) + self._update_series_product_attribute_values() + for module in modules: + series = module.module_version_ids.mapped( + 'repository_branch_id.organization_serie_id.name') + product = module.product_template_id + att_line = product.attribute_line_ids.filtered( + lambda a: a.attribute_id.id == attribute.id) + att_vals = att_line.mapped('value_ids.name') + to_update_vals = list(set(series) - set(att_vals)) + for to_update_val in to_update_vals: + att_val = attribute_val.search( + [('name', '=', to_update_val), + ('attribute_id', '=', attribute.id)], + limit=1) + att_line.write({'value_ids': [[4, att_val.id]]}) + product.create_variant_ids() + + @api.model + def _update_series_product_attribute_values(self): + attribute = self.env.ref( + 'apps_product_creator.attribute_odoo_version') + attribute_val = self.env['product.attribute.value'] + series = self.env['github.organization.serie'].search([]) + for serie in series: + attribute_val = attribute_val.search( + [('name', '=', serie.name)], limit=1) + if not attribute_val: + attribute_val.create({ + 'name': serie.name, + 'attribute_id': attribute.id + }) + @api.multi def _prepare_template(self): """ @@ -133,4 +175,12 @@ def cron_create_product(self): modules = self.search([('product_template_id', '=', False), ('module_version_qty', '!=', 0)]) modules.action_create_product() + # Calling Update product for updating/creating new product Variants + # based on new versions added + modules = self.search([('module_version_qty', '!=', 0)]) + modules.action_update_product() + return True + + @api.model + def cron_update_product(self): return True From 4d9a6f2ee5df86facc14bd9592489ad25f6ff633 Mon Sep 17 00:00:00 2001 From: BizzAppDev Date: Tue, 20 Nov 2018 07:46:28 +0530 Subject: [PATCH 33/61] Fix Bad rendering of links inside README (#42) * [FIX][#37]fix rendering from README * [ADD]added CONTRIBUTORS * [FIX] Sorting problem. sorted(for getting default version) as similar as it is sorted from website view --- apps_product_creator/README.rst | 1 + apps_product_creator/i18n/es.po | 100 +++++++++++++++++- apps_product_creator/i18n/fr.po | 98 ++++++++++++++++- apps_product_creator/readme/CONTRIBUTORS.rst | 3 +- .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 1 + 6 files changed, 200 insertions(+), 3 deletions(-) create mode 100644 apps_product_creator/static/description/icon.png diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index 82041b42..b2bf638f 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -74,6 +74,7 @@ Contributors * François Honoré * Nicola Malcontenti * Roel Adriaans +* Ruchir Shukla Other credits ~~~~~~~~~~~~~ diff --git a/apps_product_creator/i18n/es.po b/apps_product_creator/i18n/es.po index a0f62518..38642ef5 100644 --- a/apps_product_creator/i18n/es.po +++ b/apps_product_creator/i18n/es.po @@ -63,6 +63,11 @@ msgstr "8.0" msgid "9.0" msgstr "9.0" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.accounting +msgid "Accounting" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids msgid "Authors" @@ -72,7 +77,22 @@ msgstr "Autores" #: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server #: model:ir.cron,cron_name:apps_product_creator.cron_update_organization #: model:ir.cron,name:apps_product_creator.cron_update_organization -msgid "Create product variants for each module version" +msgid "Create/Update product variants for each module version" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.discuss +msgid "Discuss" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.document_management +msgid "Document Management" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.extra_tools +msgid "Extra Tools" msgstr "" #. module: apps_product_creator @@ -85,22 +105,48 @@ msgstr "URL de github" msgid "HTML of the RST Description" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.human_resources +msgid "Human Resources" +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:product.public.category,name:apps_product_creator.industries +msgid "Industries" +msgstr "" + #. 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:product.public.category,name:apps_product_creator.localization +msgid "Localization" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.manufacturing +msgid "Manufacturing" +msgstr "" + #. 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_app_development_status +#, fuzzy +msgid "Module maturity" +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 @@ -113,6 +159,16 @@ msgstr "Módulo Odoo" msgid "Odoo Version" msgstr "Versión Odoo" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.other +msgid "Other" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.point_of_sale +msgid "Point of Sale" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_product_product msgid "Product" @@ -124,11 +180,32 @@ msgstr "Producto" msgid "Product Template" msgstr "Plantilla de producto" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.productivity +#, fuzzy +msgid "Productivity" +msgstr "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:product.public.category,name:apps_product_creator.project +msgid "Project" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.purchases +msgid "Purchases" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.sales +msgid "Sales" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary msgid "Summary (Manifest)" @@ -145,12 +222,33 @@ msgstr "Nombre técnic" msgid "Version (Manifest)" msgstr "Versión (Manifiesto)" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.warehouse +msgid "Warehouse" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.website +msgid "Website" +msgstr "" + #. 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:product.public.category,name:apps_product_creator.ecommerce +msgid "eCommerce" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_odoo_module msgid "odoo.module" msgstr "odoo.module" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +#, fuzzy +msgid "odoo.module.version" +msgstr "odoo.module" diff --git a/apps_product_creator/i18n/fr.po b/apps_product_creator/i18n/fr.po index 2c1967ce..05337e2d 100644 --- a/apps_product_creator/i18n/fr.po +++ b/apps_product_creator/i18n/fr.po @@ -63,6 +63,11 @@ msgstr "" msgid "9.0" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.accounting +msgid "Accounting" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids msgid "Authors" @@ -72,7 +77,22 @@ msgstr "" #: model:ir.actions.server,name:apps_product_creator.cron_update_organization_ir_actions_server #: model:ir.cron,cron_name:apps_product_creator.cron_update_organization #: model:ir.cron,name:apps_product_creator.cron_update_organization -msgid "Create product variants for each module version" +msgid "Create/Update product variants for each module version" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.discuss +msgid "Discuss" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.document_management +msgid "Document Management" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.extra_tools +msgid "Extra Tools" msgstr "" #. module: apps_product_creator @@ -85,22 +105,47 @@ msgstr "" msgid "HTML of the RST Description" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.human_resources +msgid "Human Resources" +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 "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.industries +msgid "Industries" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id msgid "License" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.localization +msgid "Localization" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.manufacturing +msgid "Manufacturing" +msgstr "" + #. module: apps_product_creator #: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view msgid "Module Informations" msgstr "" +#. module: apps_product_creator +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_development_status +msgid "Module maturity" +msgstr "" + #. 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 @@ -113,6 +158,16 @@ msgstr "" msgid "Odoo Version" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.other +msgid "Other" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.point_of_sale +msgid "Point of Sale" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_product_product msgid "Product" @@ -124,11 +179,32 @@ msgstr "Produit" msgid "Product Template" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.productivity +#, fuzzy +msgid "Productivity" +msgstr "Produit" + #. module: apps_product_creator #: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view msgid "Products" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.project +msgid "Project" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.purchases +msgid "Purchases" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.sales +msgid "Sales" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary msgid "Summary (Manifest)" @@ -145,12 +221,32 @@ msgstr "" msgid "Version (Manifest)" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.warehouse +msgid "Warehouse" +msgstr "" + +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.website +msgid "Website" +msgstr "" + #. module: apps_product_creator #: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website msgid "Website (Manifest)" msgstr "" +#. module: apps_product_creator +#: model:product.public.category,name:apps_product_creator.ecommerce +msgid "eCommerce" +msgstr "" + #. module: apps_product_creator #: model:ir.model,name:apps_product_creator.model_odoo_module msgid "odoo.module" msgstr "" + +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +msgid "odoo.module.version" +msgstr "" diff --git a/apps_product_creator/readme/CONTRIBUTORS.rst b/apps_product_creator/readme/CONTRIBUTORS.rst index dc35b64b..d1692dbc 100644 --- a/apps_product_creator/readme/CONTRIBUTORS.rst +++ b/apps_product_creator/readme/CONTRIBUTORS.rst @@ -3,4 +3,5 @@ * Eric Caudal * François Honoré * Nicola Malcontenti -* Roel Adriaans \ No newline at end of file +* Roel Adriaans +* Ruchir Shukla diff --git a/apps_product_creator/static/description/icon.png b/apps_product_creator/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz# z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K= z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C zuVl&0duN<;uOsB3%T9Fp8t{ED108<+W(nOZd?gDnfNBC3>M8WE61$So|P zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1 zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_ zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8 zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ> zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD z#z-)AXwSRY?OPefw^iI+ z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$ z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6 zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+ z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC) zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x! zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8 z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n= z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@ zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y< zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6 zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6% z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(| z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6 z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d} z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB z z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index 19b17efd..cf60ce69 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -432,6 +432,7 @@

    Contributors

  • François Honoré <francois.honore@acsone.eu>
  • Nicola Malcontenti <nicola.malcontenti@agilebg.com>
  • Roel Adriaans <roel@road-support.nl>
  • +
  • Ruchir Shukla <ruchir@bizzappdev.com>
  • From 48fb44bc6362890924ce95a3f0617ff773f3f964 Mon Sep 17 00:00:00 2001 From: Victor Martin Date: Wed, 10 Apr 2019 12:16:55 +0200 Subject: [PATCH 34/61] [MIG] apps_product_creator: Migration to 12.0 --- apps_product_creator/README.rst | 16 +++-- apps_product_creator/__manifest__.py | 3 +- .../data/product_attribute.xml | 4 ++ .../i18n/apps_product_creator.pot | 61 +++++++++--------- apps_product_creator/i18n/es.po | 63 +++++++++++-------- apps_product_creator/i18n/fr.po | 59 ++++++++--------- .../models/product_product.py | 2 +- apps_product_creator/readme/CONTRIBUTORS.rst | 1 + apps_product_creator/readme/HISTORY.rst | 5 ++ .../static/description/index.html | 56 ++++++++++------- .../tests/test_apps_product_creator.py | 10 ++- 11 files changed, 162 insertions(+), 118 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index b2bf638f..7f8c351b 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -14,13 +14,13 @@ Github product creator :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/11.0/apps_product_creator + :target: https://github.com/OCA/apps-store/tree/12.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-11-0/apps-store-11-0-apps_product_creator + :target: https://translation.odoo-community.org/projects/apps-store-12-0/apps-store-12-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/11.0 + :target: https://runbot.odoo-community.org/runbot/249/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -36,6 +36,11 @@ A variant is also created for every version of the module. Changelog ========= +12.0.1.0.0 (2019-04-10) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Migration to 12.0 + 11.0.1.1.2 (2018-10-02) ~~~~~~~~~~~~~~~~~~~~~~~ @@ -53,7 +58,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -75,6 +80,7 @@ Contributors * Nicola Malcontenti * Roel Adriaans * Ruchir Shukla +* Victor M.M. Torres Other credits ~~~~~~~~~~~~~ @@ -97,6 +103,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/apps-store `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 63dd8fec..2bd553ed 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -4,8 +4,9 @@ 'name': 'Github product creator', 'summary': 'Create a product variant (by version) for every module found ' 'in the Github repositories', - 'version': '11.0.1.1.3', + 'version': '12.0.1.0.0', 'category': 'Connector', + 'website': 'https://github.com/OCA/apps-store', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA), BizzAppDev', 'depends': [ diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/data/product_attribute.xml index f9279af5..c2236fbd 100644 --- a/apps_product_creator/data/product_attribute.xml +++ b/apps_product_creator/data/product_attribute.xml @@ -46,5 +46,9 @@ 11.0 + + 12.0 + + diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot index f9583655..c4d38fc8 100644 --- a/apps_product_creator/i18n/apps_product_creator.pot +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,7 +14,7 @@ msgstr "" "Plural-Forms: \n" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module_product_qty +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_qty msgid "# of Products" msgstr "" @@ -28,6 +28,11 @@ msgstr "" msgid "11.0" msgstr "" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_120 +msgid "12.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" @@ -64,7 +69,7 @@ msgid "Accounting" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_author_ids msgid "Authors" msgstr "" @@ -91,12 +96,12 @@ msgid "Extra Tools" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_github_url msgid "Github URL" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_description_rst_html +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_description_rst_html msgid "HTML of the RST Description" msgstr "" @@ -106,8 +111,8 @@ msgid "Human Resources" 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 +#: 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 "" @@ -117,7 +122,7 @@ msgid "Industries" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_license_id msgid "License" msgstr "" @@ -132,22 +137,28 @@ msgid "Manufacturing" msgstr "" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view +#: model_terms:ir.ui.view,arch_db:apps_product_creator.product_product_form_view msgid "Module Informations" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_development_status +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_development_status msgid "Module maturity" msgstr "" #. 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 +#: model:ir.model,name:apps_product_creator.model_odoo_module +#: 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_template__odoo_module_id msgid "Odoo Module" msgstr "" +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__odoo_module_version_id +msgid "Odoo Module Version" +msgstr "" + #. module: apps_product_creator #: model:product.attribute,name:apps_product_creator.attribute_odoo_version msgid "Odoo Version" @@ -170,7 +181,7 @@ msgstr "" #. 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 +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_template_id msgid "Product Template" msgstr "" @@ -180,7 +191,7 @@ msgid "Productivity" msgstr "" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view +#: model_terms:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view msgid "Products" msgstr "" @@ -200,18 +211,18 @@ msgid "Sales" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_summary msgid "Summary (Manifest)" msgstr "" #. 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 +#: 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 "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_version +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_version msgid "Version (Manifest)" msgstr "" @@ -226,7 +237,7 @@ msgid "Website" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_website msgid "Website (Manifest)" msgstr "" @@ -235,13 +246,3 @@ msgstr "" msgid "eCommerce" msgstr "" -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module -msgid "odoo.module" -msgstr "" - -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module_version -msgid "odoo.module.version" -msgstr "" - diff --git a/apps_product_creator/i18n/es.po b/apps_product_creator/i18n/es.po index 38642ef5..91d38660 100644 --- a/apps_product_creator/i18n/es.po +++ b/apps_product_creator/i18n/es.po @@ -19,7 +19,7 @@ msgstr "" "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 +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_qty msgid "# of Products" msgstr "Nº de productos" @@ -33,6 +33,11 @@ msgstr "10.0" msgid "11.0" msgstr "11.0" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_120 +msgid "12.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" @@ -69,7 +74,7 @@ msgid "Accounting" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_author_ids msgid "Authors" msgstr "Autores" @@ -96,12 +101,12 @@ msgid "Extra Tools" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url +#: 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 +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_description_rst_html msgid "HTML of the RST Description" msgstr "" @@ -111,8 +116,8 @@ msgid "Human Resources" 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 +#: 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" @@ -122,7 +127,7 @@ msgid "Industries" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_license_id msgid "License" msgstr "Licencia" @@ -137,23 +142,31 @@ msgid "Manufacturing" msgstr "" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view +#: model_terms: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_app_development_status +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_development_status #, fuzzy msgid "Module maturity" 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 +#: model:ir.model,name:apps_product_creator.model_odoo_module +#: 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_template__odoo_module_id msgid "Odoo Module" msgstr "Módulo Odoo" +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__odoo_module_version_id +#, fuzzy +#| msgid "Odoo Version" +msgid "Odoo Module Version" +msgstr "Versión Odoo" + #. module: apps_product_creator #: model:product.attribute,name:apps_product_creator.attribute_odoo_version msgid "Odoo Version" @@ -176,7 +189,7 @@ 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 +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_template_id msgid "Product Template" msgstr "Plantilla de producto" @@ -187,7 +200,7 @@ msgid "Productivity" msgstr "Producto" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view +#: model_terms:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view msgid "Products" msgstr "Productos" @@ -207,18 +220,18 @@ msgid "Sales" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary +#: 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 +#: 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 +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_version msgid "Version (Manifest)" msgstr "Versión (Manifiesto)" @@ -233,7 +246,7 @@ msgid "Website" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_website msgid "Website (Manifest)" msgstr "Página web (Manifiesto)" @@ -242,13 +255,9 @@ msgstr "Página web (Manifiesto)" msgid "eCommerce" msgstr "" -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module -msgid "odoo.module" -msgstr "odoo.module" +#~ msgid "odoo.module" +#~ msgstr "odoo.module" -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module_version #, fuzzy -msgid "odoo.module.version" -msgstr "odoo.module" +#~ msgid "odoo.module.version" +#~ msgstr "odoo.module" diff --git a/apps_product_creator/i18n/fr.po b/apps_product_creator/i18n/fr.po index 05337e2d..41f96060 100644 --- a/apps_product_creator/i18n/fr.po +++ b/apps_product_creator/i18n/fr.po @@ -19,7 +19,7 @@ msgstr "" "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 +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_qty msgid "# of Products" msgstr "" @@ -33,6 +33,11 @@ msgstr "" msgid "11.0" msgstr "" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_120 +msgid "12.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" @@ -69,7 +74,7 @@ msgid "Accounting" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_author_ids +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_author_ids msgid "Authors" msgstr "" @@ -96,12 +101,12 @@ msgid "Extra Tools" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_github_url +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_github_url msgid "Github URL" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_description_rst_html +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_description_rst_html msgid "HTML of the RST Description" msgstr "" @@ -111,8 +116,8 @@ msgid "Human Resources" 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 +#: 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 "" @@ -122,7 +127,7 @@ msgid "Industries" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_license_id +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_license_id msgid "License" msgstr "" @@ -137,22 +142,28 @@ msgid "Manufacturing" msgstr "" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.product_product_form_view +#: model_terms:ir.ui.view,arch_db:apps_product_creator.product_product_form_view msgid "Module Informations" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_development_status +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_development_status msgid "Module maturity" msgstr "" #. 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 +#: model:ir.model,name:apps_product_creator.model_odoo_module +#: 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_template__odoo_module_id msgid "Odoo Module" msgstr "" +#. module: apps_product_creator +#: model:ir.model,name:apps_product_creator.model_odoo_module_version +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__odoo_module_version_id +msgid "Odoo Module Version" +msgstr "" + #. module: apps_product_creator #: model:product.attribute,name:apps_product_creator.attribute_odoo_version msgid "Odoo Version" @@ -175,7 +186,7 @@ msgstr "Produit" #. 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 +#: model:ir.model.fields,field_description:apps_product_creator.field_odoo_module__product_template_id msgid "Product Template" msgstr "" @@ -186,7 +197,7 @@ msgid "Productivity" msgstr "Produit" #. module: apps_product_creator -#: model:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view +#: model_terms:ir.ui.view,arch_db:apps_product_creator.odoo_module_form_view msgid "Products" msgstr "" @@ -206,18 +217,18 @@ msgid "Sales" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_summary +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_summary msgid "Summary (Manifest)" msgstr "" #. 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 +#: 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 "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_version +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_version msgid "Version (Manifest)" msgstr "" @@ -232,7 +243,7 @@ msgid "Website" msgstr "" #. module: apps_product_creator -#: model:ir.model.fields,field_description:apps_product_creator.field_product_product_app_website +#: model:ir.model.fields,field_description:apps_product_creator.field_product_product__app_website msgid "Website (Manifest)" msgstr "" @@ -240,13 +251,3 @@ msgstr "" #: model:product.public.category,name:apps_product_creator.ecommerce msgid "eCommerce" msgstr "" - -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module -msgid "odoo.module" -msgstr "" - -#. module: apps_product_creator -#: model:ir.model,name:apps_product_creator.model_odoo_module_version -msgid "odoo.module.version" -msgstr "" diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index 5744275f..fbff6814 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -31,7 +31,7 @@ class ProductProduct(models.Model): odoo_module_version_id = fields.Many2one( 'odoo.module.version', - 'Odoo Module', + 'Odoo Module Version', ) app_license_id = fields.Many2one( comodel_name='odoo.license', diff --git a/apps_product_creator/readme/CONTRIBUTORS.rst b/apps_product_creator/readme/CONTRIBUTORS.rst index d1692dbc..566e7320 100644 --- a/apps_product_creator/readme/CONTRIBUTORS.rst +++ b/apps_product_creator/readme/CONTRIBUTORS.rst @@ -5,3 +5,4 @@ * Nicola Malcontenti * Roel Adriaans * Ruchir Shukla +* Victor M.M. Torres diff --git a/apps_product_creator/readme/HISTORY.rst b/apps_product_creator/readme/HISTORY.rst index 3bd87f66..a1fc92d8 100644 --- a/apps_product_creator/readme/HISTORY.rst +++ b/apps_product_creator/readme/HISTORY.rst @@ -1,3 +1,8 @@ +12.0.1.0.0 (2019-04-10) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Migration to 12.0 + 11.0.1.1.2 (2018-10-02) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index cf60ce69..89d7f207 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -367,40 +367,47 @@

    Github product creator

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

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runbot

    +

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runbot

    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

    -

    Changelog

    +

    Changelog

    -

    11.0.1.1.2 (2018-10-02)

    +

    12.0.1.0.0 (2019-04-10)

      -
    • Publish the modules automatically on the website
    • +
    • Migration to 12.0
    -

    11.0.1.1.0 (2018-10-02)

    +

    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)
    • @@ -408,23 +415,23 @@

      11.0.1.1.0 (2018-10-02)

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub 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.

    +feedback.

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

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • BizzAppDev
    -

    Contributors

    +

    Contributors

    -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

    • Odoo Community Association: Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    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 project on GitHub.

    +

    This module is part of the OCA/apps-store project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index 5fe1d76f..9bc9975e 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -13,14 +13,22 @@ def setUp(self): 'github_login': 'login', }) + self.organization_serie1 = self.env[ + 'github.organization.serie'].create({ + 'name': '12.0', + 'sequence': 1, + 'organization_id': self.organization1.id, + }) + self.repository1 = self.env['github.repository'].create({ 'name': 'Repository1', 'organization_id': self.organization1.id, }) self.branch1 = self.env['github.repository.branch'].create({ - 'name': 'master', + 'name': '12.0', 'repository_id': self.repository1.id, + 'organization_id': self.organization1.id, }) self.odoo_module2 = self.env['odoo.module'].create({ From 6df194e568db64e0e1132f25611dc04f81e1eff2 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 13 Jul 2019 13:10:15 +0200 Subject: [PATCH 35/61] [MIG] apps_product_creator: Migration scripts * Add XML-ID if 12.0 attribute value was manually added in the DB * Add in advance 13.0 and 14.0 attribute versions for avoiding this problem in future versions --- apps_product_creator/__manifest__.py | 3 +- .../data/product_attribute.xml | 14 +++++++++- .../i18n/apps_product_creator.pot | 10 +++++++ apps_product_creator/i18n/es.po | 10 +++++++ apps_product_creator/i18n/fr.po | 10 +++++++ .../migrations/12.0.1.0.0/pre-migration.py | 28 +++++++++++++++++++ .../static/description/index.html | 2 +- 7 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 apps_product_creator/migrations/12.0.1.0.0/pre-migration.py diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 2bd553ed..ad3c35d7 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -1,4 +1,5 @@ -# Copyright (C) 2017-Today: Odoo Community Association (OCA) +# 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', diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/data/product_attribute.xml index c2236fbd..6cbbfe96 100644 --- a/apps_product_creator/data/product_attribute.xml +++ b/apps_product_creator/data/product_attribute.xml @@ -1,5 +1,6 @@ - + @@ -46,9 +47,20 @@ 11.0 + 12.0 + + 13.0 + + + + + 14.0 + + + diff --git a/apps_product_creator/i18n/apps_product_creator.pot b/apps_product_creator/i18n/apps_product_creator.pot index c4d38fc8..7b8ce136 100644 --- a/apps_product_creator/i18n/apps_product_creator.pot +++ b/apps_product_creator/i18n/apps_product_creator.pot @@ -33,6 +33,16 @@ msgstr "" msgid "12.0" msgstr "" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_130 +msgid "13.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_140 +msgid "14.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" diff --git a/apps_product_creator/i18n/es.po b/apps_product_creator/i18n/es.po index 91d38660..9f2a5804 100644 --- a/apps_product_creator/i18n/es.po +++ b/apps_product_creator/i18n/es.po @@ -38,6 +38,16 @@ msgstr "11.0" msgid "12.0" msgstr "" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_130 +msgid "13.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_140 +msgid "14.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" diff --git a/apps_product_creator/i18n/fr.po b/apps_product_creator/i18n/fr.po index 41f96060..88edad9b 100644 --- a/apps_product_creator/i18n/fr.po +++ b/apps_product_creator/i18n/fr.po @@ -38,6 +38,16 @@ msgstr "" msgid "12.0" msgstr "" +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_130 +msgid "13.0" +msgstr "" + +#. module: apps_product_creator +#: model:product.attribute.value,name:apps_product_creator.odoo_version_140 +msgid "14.0" +msgstr "" + #. module: apps_product_creator #: model:product.attribute.value,name:apps_product_creator.odoo_version_50 msgid "5.0" diff --git a/apps_product_creator/migrations/12.0.1.0.0/pre-migration.py b/apps_product_creator/migrations/12.0.1.0.0/pre-migration.py new file mode 100644 index 00000000..edc306ee --- /dev/null +++ b/apps_product_creator/migrations/12.0.1.0.0/pre-migration.py @@ -0,0 +1,28 @@ +# Copyright 2019 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +def assign_new_version_attribute_xml_id(env): + """This checks if 12.0 attribute has been manually added in previous + version, so assigning the XML-ID for avoiding duplicate constraint error. + """ + attrib = env.ref('apps_product_creator.attribute_odoo_version') + value = env['product.attribute.value'].search([ + ('attribute_id', '=', attrib.id), + ('name', '=', '12.0'), + ]) + if value: + env['ir.model.data'].create({ + 'module': 'apps_product_creator', + 'name': 'odoo_version_120', + 'model': value._name, + 'res_id': value.id, + 'noupdate': True, + }) + + +@openupgrade.migrate() +def migrate(env, version): + assign_new_version_attribute_xml_id(env) diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index 89d7f207..6c5cfe8f 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -3,7 +3,7 @@ - + Github product creator -
    -

    Github product creator

    +
    + + +Odoo Community Association + +
    +

    Github product creator

    -

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    +

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    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

    @@ -399,7 +404,7 @@

    Github product creator

    -

    Configuration

    +

    Configuration

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

    1. Go to Settings > Technical > Automation > Scheduled Actions.
    2. @@ -407,7 +412,7 @@

      Configuration

    -

    Usage

    +

    Usage

    To see the module working

      @@ -424,33 +429,33 @@

      Usage

      Now you can see the products created.
    -

    Changelog

    +

    Changelog

    -

    11.0.1.1.2 (2018-10-02)

    +

    11.0.1.1.2 (2018-10-02)

    • Publish the modules automatically on the website
    -

    11.0.1.1.0 (2018-10-02)

    +

    11.0.1.1.0 (2018-10-02)

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub 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 @@ -466,15 +471,15 @@

    Bug Tracker

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

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • BizzAppDev
    -

    Contributors

    +

    Contributors

    -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

    • Odoo Community Association: Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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.

    @@ -513,5 +520,6 @@

    Maintainers

    +
    From fb735993a5506876474068070edc7c4c879992ab Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Tue, 16 Sep 2025 11:30:42 +0200 Subject: [PATCH 56/61] [REF] apps_product_creator: Allow to reuse tests setup --- apps_product_creator/tests/common.py | 81 +++++++++++++++++++ .../tests/test_apps_product_creator.py | 79 +----------------- 2 files changed, 83 insertions(+), 77 deletions(-) create mode 100644 apps_product_creator/tests/common.py diff --git a/apps_product_creator/tests/common.py b/apps_product_creator/tests/common.py new file mode 100644 index 00000000..efe24ae3 --- /dev/null +++ b/apps_product_creator/tests/common.py @@ -0,0 +1,81 @@ +# Copyright (C) 2017-Today: Odoo Community Association (OCA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo.tests.common import SavepointCase +from odoo.tools import config + + +class Common(SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + # Trick this configuration value for avoiding an error + config["source_code_local_path"] = "/tmp/" + cls.organization1 = cls.env["github.organization"].create( + {"name": "Organization 1", "github_name": "login"} + ) + + cls.organization_serie1 = cls.env["github.organization.serie"].create( + {"name": "12.0", "sequence": 1, "organization_id": cls.organization1.id} + ) + + cls.repository1 = cls.env["github.repository"].create( + {"name": "Repository1", "organization_id": cls.organization1.id} + ) + + cls.branch1 = cls.env["github.repository.branch"].create( + { + "name": "12.0", + "repository_id": cls.repository1.id, + "organization_id": cls.organization1.id, + } + ) + + cls.odoo_module2 = cls.env["odoo.module"].create( + {"technical_name": "odoo_module2"} + ) + + cls.odoo_module1_version2 = cls.env["odoo.module.version"].create( + { + "name": "Odoo Module 2", + "technical_name": "odoo_module2", + "module_id": cls.odoo_module2.id, + "repository_branch_id": cls.branch1.id, + "license": "AGPL-3", + "summary": "Summary Test", + "website": "Website Test", + "description_rst": "Description Test", + "version": "10.0", + "author": "OCA", + "depends": "base", + "external_dependencies": "{}", + "full_module_path": "/repo/10.0/odoo_module_2", + } + ) + + cls.odoo_module1 = cls.env["odoo.module"].create( + { + "technical_name": "odoo_module1", + "dependence_module_version_ids": [ + (6, 0, [cls.odoo_module1_version2.id]) + ], + } + ) + + cls.odoo_module1_version1 = cls.env["odoo.module.version"].create( + { + "name": "Odoo Module 1", + "technical_name": "odoo_module1", + "module_id": cls.odoo_module1.id, + "repository_branch_id": cls.branch1.id, + "license": "AGPL-3", + "summary": "Summary Test", + "website": "Website Test", + "description_rst": "Description Test", + "version": "10.0", + "author": "OCA", + "depends": "base", + "external_dependencies": "{}", + "full_module_path": "/repo/10.0/odoo_module_1", + } + ) + cls.odoo_module2.action_create_product() diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index e24fb20a..4e86ca22 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -1,85 +1,10 @@ # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import SavepointCase -from odoo.tools import config +from .common import Common -class TestAppsProductCreator(SavepointCase): - @classmethod - def setUpClass(cls): - super().setUpClass() - # Trick this configuration value for avoiding an error - config["source_code_local_path"] = "/tmp/" - cls.organization1 = cls.env["github.organization"].create( - {"name": "Organization 1", "github_name": "login"} - ) - - cls.organization_serie1 = cls.env["github.organization.serie"].create( - {"name": "12.0", "sequence": 1, "organization_id": cls.organization1.id} - ) - - cls.repository1 = cls.env["github.repository"].create( - {"name": "Repository1", "organization_id": cls.organization1.id} - ) - - cls.branch1 = cls.env["github.repository.branch"].create( - { - "name": "12.0", - "repository_id": cls.repository1.id, - "organization_id": cls.organization1.id, - } - ) - - cls.odoo_module2 = cls.env["odoo.module"].create( - {"technical_name": "odoo_module2"} - ) - - cls.odoo_module1_version2 = cls.env["odoo.module.version"].create( - { - "name": "Odoo Module 2", - "technical_name": "odoo_module2", - "module_id": cls.odoo_module2.id, - "repository_branch_id": cls.branch1.id, - "license": "AGPL-3", - "summary": "Summary Test", - "website": "Website Test", - "description_rst": "Description Test", - "version": "10.0", - "author": "OCA", - "depends": "base", - "external_dependencies": "{}", - "full_module_path": "/repo/10.0/odoo_module_2", - } - ) - - cls.odoo_module1 = cls.env["odoo.module"].create( - { - "technical_name": "odoo_module1", - "dependence_module_version_ids": [ - (6, 0, [cls.odoo_module1_version2.id]) - ], - } - ) - - cls.odoo_module1_version1 = cls.env["odoo.module.version"].create( - { - "name": "Odoo Module 1", - "technical_name": "odoo_module1", - "module_id": cls.odoo_module1.id, - "repository_branch_id": cls.branch1.id, - "license": "AGPL-3", - "summary": "Summary Test", - "website": "Website Test", - "description_rst": "Description Test", - "version": "10.0", - "author": "OCA", - "depends": "base", - "external_dependencies": "{}", - "full_module_path": "/repo/10.0/odoo_module_1", - } - ) - cls.odoo_module2.action_create_product() +class TestAppsProductCreator(Common): def test1_product_create(self): self.assertFalse(self.odoo_module1.product_template_id) self.odoo_module1.action_create_product() From 1398c8dc4e00ba422a60d75be75b9758b0ac7f55 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 16 Sep 2025 12:34:53 +0000 Subject: [PATCH 57/61] [BOT] post-merge updates --- apps_product_creator/README.rst | 2 +- apps_product_creator/__manifest__.py | 2 +- apps_product_creator/static/description/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index 4ee08a8a..cb718239 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -11,7 +11,7 @@ Github product creator !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7eb7c768e99a47aec4d80572c3f409d5f1e42bdde03caf778f05fc649775832d + !! source digest: sha256:023c64ae59318af28d85b38b9a6ba4fca975553d380fae15261eb0032531f7c5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index d9b724de..9832e50d 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -5,7 +5,7 @@ "name": "Github product creator", "summary": "Create a product variant (by version) for every module found " "in the Github repositories", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "category": "Connector", "website": "https://github.com/OCA/apps-store", "license": "AGPL-3", diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index e13814a1..ffb6bea8 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -372,7 +372,7 @@

    Github product creator

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:7eb7c768e99a47aec4d80572c3f409d5f1e42bdde03caf778f05fc649775832d +!! source digest: sha256:023c64ae59318af28d85b38b9a6ba4fca975553d380fae15261eb0032531f7c5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    This module extends the functionality of the module Github connector to create a product for every module found. From 8c71bd575f90f9252914115b612daaa8a9e4c123 Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Mon, 15 Sep 2025 15:21:27 +0200 Subject: [PATCH 58/61] [IMP] apps_product_creator: Update module version When the link between the variant and the odoo module at a specific version is lost (i.e. product.product.odoo_module_version_id is empty), the odoo.module._update_product() should be able to restore it. --- apps_product_creator/README.rst | 10 ++-- apps_product_creator/models/odoo_module.py | 14 ++++++ apps_product_creator/readme/CONTRIBUTORS.rst | 4 ++ .../static/description/index.html | 48 +++++++++---------- .../tests/test_apps_product_creator.py | 19 ++++++++ 5 files changed, 65 insertions(+), 30 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index cb718239..fed05e32 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ====================== Github product creator ====================== @@ -17,7 +13,7 @@ Github product creator .. |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/license-AGPL--3-blue.png +.. |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 @@ -127,6 +123,10 @@ Contributors * Alexandre D. Díaz * Ernesto Tejeda +* `PyTech `_: + + * Simone Rubino + Other credits ~~~~~~~~~~~~~ diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index ab5ba38d..59c8b406 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -94,6 +94,20 @@ def _update_product(self): product._create_variant_ids() product.active = True product.website_published = True + no_version_variants = product.product_variant_ids.filtered( + lambda variant: not variant.odoo_module_version_id + ) + for variant in no_version_variants: + values = ( + variant.product_template_attribute_value_ids.product_attribute_value_id + ) + for value in values: + version = self.env["product.product"]._get_version_with_attribute( + module.module_version_ids, value + ) + if version: + variant.odoo_module_version_id = version + break @api.model def _update_series_product_attribute_values(self): diff --git a/apps_product_creator/readme/CONTRIBUTORS.rst b/apps_product_creator/readme/CONTRIBUTORS.rst index bda242ca..c64b2b42 100644 --- a/apps_product_creator/readme/CONTRIBUTORS.rst +++ b/apps_product_creator/readme/CONTRIBUTORS.rst @@ -12,3 +12,7 @@ * Carlos Roca * Alexandre D. Díaz * Ernesto Tejeda + +* `PyTech `_: + + * Simone Rubino diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index ffb6bea8..6ddd272b 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Github product creator -

    +
    +

    Github product creator

    - - -Odoo Community Association - -
    -

    Github product creator

    -

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    +

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    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

    @@ -404,7 +399,7 @@

    Github product creator

    -

    Configuration

    +

    Configuration

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

    1. Go to Settings > Technical > Automation > Scheduled Actions.
    2. @@ -412,7 +407,7 @@

      Configuration

    -

    Usage

    +

    Usage

    To see the module working

      @@ -429,33 +424,33 @@

      Usage

      Now you can see the products created.
    -

    Changelog

    +

    Changelog

    -

    11.0.1.1.2 (2018-10-02)

    +

    11.0.1.1.2 (2018-10-02)

    • Publish the modules automatically on the website
    -

    11.0.1.1.0 (2018-10-02)

    +

    11.0.1.1.0 (2018-10-02)

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub 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 @@ -471,15 +466,15 @@

    Bug Tracker

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

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • BizzAppDev
    -

    Contributors

    +

    Contributors

    +
  • PyTech: +
  • -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

    • Odoo Community Association: Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association @@ -520,6 +519,5 @@

    Maintainers

    -
    diff --git a/apps_product_creator/tests/test_apps_product_creator.py b/apps_product_creator/tests/test_apps_product_creator.py index 4e86ca22..17bbc182 100644 --- a/apps_product_creator/tests/test_apps_product_creator.py +++ b/apps_product_creator/tests/test_apps_product_creator.py @@ -32,3 +32,22 @@ def test_odoo_module_update_product(self): self.odoo_module2._update_product() self.assertTrue(self.odoo_module2.product_template_id.active) self.assertTrue(self.odoo_module2.product_template_id.website_published) + + def test_restore_variant_module_version(self): + # Arrange + module = self.odoo_module2 + module.action_create_product() + template = module.product_template_id + variant = template.product_variant_ids + module_version = variant.odoo_module_version_id + variant.odoo_module_version_id = False + # pre-condition + self.assertEqual(len(variant), 1) + self.assertFalse(variant.odoo_module_version_id) + self.assertTrue(module_version) + + # Act + module._update_product() + + # Assert + self.assertEqual(variant.odoo_module_version_id, module_version) From 5ae5e0d3f3cc4ae9b7318aec2aa8342add36d8cf Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 17 Sep 2025 08:08:42 +0000 Subject: [PATCH 59/61] [BOT] post-merge updates --- apps_product_creator/README.rst | 8 +++- apps_product_creator/__manifest__.py | 2 +- .../static/description/index.html | 46 +++++++++++-------- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index fed05e32..5a09a3de 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ====================== Github product creator ====================== @@ -7,13 +11,13 @@ Github product creator !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:023c64ae59318af28d85b38b9a6ba4fca975553d380fae15261eb0032531f7c5 + !! source digest: sha256:b9a9099b55ddd4ba9b83ea395d5f31598e2adcb75141b70cdf90c580e1f59b5d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 +.. |badge2| image:: https://img.shields.io/badge/license-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 diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 9832e50d..7a3fc2ff 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -5,7 +5,7 @@ "name": "Github product creator", "summary": "Create a product variant (by version) for every module found " "in the Github repositories", - "version": "14.0.1.0.2", + "version": "14.0.1.1.0", "category": "Connector", "website": "https://github.com/OCA/apps-store", "license": "AGPL-3", diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index 6ddd272b..93623502 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -3,7 +3,7 @@ -Github product creator +README.rst -
    -

    Github product creator

    +
    + + +Odoo Community Association + +
    +

    Github product creator

    -

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    +

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    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

    @@ -399,7 +404,7 @@

    Github product creator

    -

    Configuration

    +

    Configuration

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

    1. Go to Settings > Technical > Automation > Scheduled Actions.
    2. @@ -407,7 +412,7 @@

      Configuration

    -

    Usage

    +

    Usage

    To see the module working

      @@ -424,33 +429,33 @@

      Usage

      Now you can see the products created.
    -

    Changelog

    +

    Changelog

    -

    11.0.1.1.2 (2018-10-02)

    +

    11.0.1.1.2 (2018-10-02)

    • Publish the modules automatically on the website
    -

    11.0.1.1.0 (2018-10-02)

    +

    11.0.1.1.0 (2018-10-02)

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub 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 @@ -466,15 +471,15 @@

    Bug Tracker

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

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • BizzAppDev
    -

    Contributors

    +

    Contributors

    -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

    • Odoo Community Association: Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association @@ -519,5 +524,6 @@

    Maintainers

    +
    From 3a4385152d9d6a2af495ae906c23ff77a7168de7 Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis Date: Fri, 31 Oct 2025 11:12:10 +0100 Subject: [PATCH 60/61] [IMP] apps_product_creator: pre-commit auto fixes --- apps_product_creator/README.rst | 111 +++++++++--------- apps_product_creator/models/odoo_module.py | 4 +- apps_product_creator/pyproject.toml | 3 + apps_product_creator/readme/CONFIGURE.md | 6 + apps_product_creator/readme/CONFIGURE.rst | 4 - apps_product_creator/readme/CONTRIBUTORS.md | 14 +++ apps_product_creator/readme/CONTRIBUTORS.rst | 18 --- apps_product_creator/readme/CREDITS.md | 4 + apps_product_creator/readme/CREDITS.rst | 4 - apps_product_creator/readme/DESCRIPTION.md | 3 + apps_product_creator/readme/DESCRIPTION.rst | 2 - apps_product_creator/readme/HISTORY.md | 20 ++++ apps_product_creator/readme/HISTORY.rst | 25 ---- apps_product_creator/readme/USAGE.md | 13 ++ apps_product_creator/readme/USAGE.rst | 10 -- .../static/description/index.html | 75 ++++++------ 16 files changed, 161 insertions(+), 155 deletions(-) create mode 100644 apps_product_creator/pyproject.toml create mode 100644 apps_product_creator/readme/CONFIGURE.md delete mode 100644 apps_product_creator/readme/CONFIGURE.rst create mode 100644 apps_product_creator/readme/CONTRIBUTORS.md delete mode 100644 apps_product_creator/readme/CONTRIBUTORS.rst create mode 100644 apps_product_creator/readme/CREDITS.md delete mode 100644 apps_product_creator/readme/CREDITS.rst create mode 100644 apps_product_creator/readme/DESCRIPTION.md delete mode 100644 apps_product_creator/readme/DESCRIPTION.rst create mode 100644 apps_product_creator/readme/HISTORY.md delete mode 100644 apps_product_creator/readme/HISTORY.rst create mode 100644 apps_product_creator/readme/USAGE.md delete mode 100644 apps_product_creator/readme/USAGE.rst diff --git a/apps_product_creator/README.rst b/apps_product_creator/README.rst index 5a09a3de..47641709 100644 --- a/apps_product_creator/README.rst +++ b/apps_product_creator/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ====================== Github product creator ====================== @@ -17,23 +13,24 @@ Github product creator .. |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/license-AGPL--3-blue.png +.. |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/14.0/apps_product_creator + :target: https://github.com/OCA/apps-store/tree/18.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-14-0/apps-store-14-0-apps_product_creator + :target: https://translation.odoo-community.org/projects/apps-store-18-0/apps-store-18-0-apps_product_creator :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/apps-store&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/apps-store&target_branch=18.0 :alt: Try me on Runboat |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. +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** @@ -43,53 +40,61 @@ A variant is also created for every version of the module. Configuration ============= -There's an scheduled action that creates the product, disabled by default. For enabling it: +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. +1. Go to *Settings > Technical > Automation > Scheduled Actions*. +2. 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 `_ + - Import some modules with + `github_connector `__ -#. 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. +1. Run manually the scheduled action mentioned on the configure section + or wait until its execution. +2. Go to *Website > Products > Products*. +3. Click on Filters > Add Custom Filter, and apply the filter "Odoo + Module" > "is set". +4. You will see the created products in the list. - Now you can see the products created. +.. + + Now you can see the products created. Changelog ========= 14.0.1.0.0 (2021-08-02) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* Migration to 14.0 +- Migration to 14.0 13.0.1.0.0 (2020-07-10) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* Migration to 13.0 +- Migration to 13.0 12.0.1.0.0 (2019-04-10) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* Migration to 12.0 +- Migration to 12.0 11.0.1.1.2 (2018-10-02) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* Publish the modules automatically on the website +- 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 `_) +- [ADD] Added dependency on github_connector_oca to display + development_status + (`#19 `__) Bug Tracker =========== @@ -97,7 +102,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -105,42 +110,42 @@ Credits ======= Authors -~~~~~~~ +------- * BizzAppDev Contributors -~~~~~~~~~~~~ - -* Alex Comba -* Antonio Esposito -* Eric Caudal -* François Honoré -* Nicola Malcontenti -* Roel Adriaans -* Ruchir Shukla +------------ -* `Tecnativa `_: +- Alex Comba +- Antonio Esposito +- Eric Caudal +- François Honoré +- Nicola Malcontenti +- Roel Adriaans +- Ruchir Shukla +- `Tecnativa `__: - * Victor M.M. Torres - * Carlos Roca - * Alexandre D. Díaz - * Ernesto Tejeda + - Victor M.M. Torres + - Carlos Roca + - Alexandre D. Díaz + - Ernesto Tejeda -* `PyTech `_: +- `PyTech `__: - * Simone Rubino + - Simone Rubino Other credits -~~~~~~~~~~~~~ +------------- Images ------- +~~~~~~ -* Odoo Community Association: `Icon `_. +- Odoo Community Association: + `Icon `__. Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -152,6 +157,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/apps-store `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/apps_product_creator/models/odoo_module.py b/apps_product_creator/models/odoo_module.py index 59c8b406..841b8bc6 100644 --- a/apps_product_creator/models/odoo_module.py +++ b/apps_product_creator/models/odoo_module.py @@ -98,9 +98,7 @@ def _update_product(self): lambda variant: not variant.odoo_module_version_id ) for variant in no_version_variants: - values = ( - variant.product_template_attribute_value_ids.product_attribute_value_id - ) + values = variant.product_template_attribute_value_ids.product_attribute_value_id for value in values: version = self.env["product.product"]._get_version_with_attribute( module.module_version_ids, value diff --git a/apps_product_creator/pyproject.toml b/apps_product_creator/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/apps_product_creator/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/apps_product_creator/readme/CONFIGURE.md b/apps_product_creator/readme/CONFIGURE.md new file mode 100644 index 00000000..59c83636 --- /dev/null +++ b/apps_product_creator/readme/CONFIGURE.md @@ -0,0 +1,6 @@ +There's an scheduled action that creates the product, disabled by +default. For enabling it: + +1. Go to *Settings \> Technical \> Automation \> Scheduled Actions*. +2. Locate "Create/Update product variants for each module version" and + access its form. diff --git a/apps_product_creator/readme/CONFIGURE.rst b/apps_product_creator/readme/CONFIGURE.rst deleted file mode 100644 index edd05131..00000000 --- a/apps_product_creator/readme/CONFIGURE.rst +++ /dev/null @@ -1,4 +0,0 @@ -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. diff --git a/apps_product_creator/readme/CONTRIBUTORS.md b/apps_product_creator/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..ddc4daf1 --- /dev/null +++ b/apps_product_creator/readme/CONTRIBUTORS.md @@ -0,0 +1,14 @@ +- Alex Comba \<\> +- Antonio Esposito \<\> +- Eric Caudal \<\> +- François Honoré \<\> +- Nicola Malcontenti \<\> +- Roel Adriaans \<\> +- Ruchir Shukla \<\> +- [Tecnativa](https://www.tecnativa.com): + - Victor M.M. Torres + - Carlos Roca + - Alexandre D. Díaz + - Ernesto Tejeda +- [PyTech](https://www.pytech.it): + - Simone Rubino \<\> diff --git a/apps_product_creator/readme/CONTRIBUTORS.rst b/apps_product_creator/readme/CONTRIBUTORS.rst deleted file mode 100644 index c64b2b42..00000000 --- a/apps_product_creator/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,18 +0,0 @@ -* Alex Comba -* Antonio Esposito -* Eric Caudal -* François Honoré -* Nicola Malcontenti -* Roel Adriaans -* Ruchir Shukla - -* `Tecnativa `_: - - * Victor M.M. Torres - * Carlos Roca - * Alexandre D. Díaz - * Ernesto Tejeda - -* `PyTech `_: - - * Simone Rubino diff --git a/apps_product_creator/readme/CREDITS.md b/apps_product_creator/readme/CREDITS.md new file mode 100644 index 00000000..a64e54d2 --- /dev/null +++ b/apps_product_creator/readme/CREDITS.md @@ -0,0 +1,4 @@ +## Images + +- Odoo Community Association: + [Icon](https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg). diff --git a/apps_product_creator/readme/CREDITS.rst b/apps_product_creator/readme/CREDITS.rst deleted file mode 100644 index 9baa7efb..00000000 --- a/apps_product_creator/readme/CREDITS.rst +++ /dev/null @@ -1,4 +0,0 @@ -Images ------- - -* Odoo Community Association: `Icon `_. diff --git a/apps_product_creator/readme/DESCRIPTION.md b/apps_product_creator/readme/DESCRIPTION.md new file mode 100644 index 00000000..89648dab --- /dev/null +++ b/apps_product_creator/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +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. diff --git a/apps_product_creator/readme/DESCRIPTION.rst b/apps_product_creator/readme/DESCRIPTION.rst deleted file mode 100644 index 174d9098..00000000 --- a/apps_product_creator/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -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. diff --git a/apps_product_creator/readme/HISTORY.md b/apps_product_creator/readme/HISTORY.md new file mode 100644 index 00000000..2b447e1d --- /dev/null +++ b/apps_product_creator/readme/HISTORY.md @@ -0,0 +1,20 @@ +## 14.0.1.0.0 (2021-08-02) + +- Migration to 14.0 + +## 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)) diff --git a/apps_product_creator/readme/HISTORY.rst b/apps_product_creator/readme/HISTORY.rst deleted file mode 100644 index 2da601ec..00000000 --- a/apps_product_creator/readme/HISTORY.rst +++ /dev/null @@ -1,25 +0,0 @@ -14.0.1.0.0 (2021-08-02) -~~~~~~~~~~~~~~~~~~~~~~~ - -* Migration to 14.0 - -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 `_) diff --git a/apps_product_creator/readme/USAGE.md b/apps_product_creator/readme/USAGE.md new file mode 100644 index 00000000..5fdc3975 --- /dev/null +++ b/apps_product_creator/readme/USAGE.md @@ -0,0 +1,13 @@ +To see the module working + +> - Import some modules with +> [github_connector](https://odoo-community.org/shop/product/1024) + +1. Run manually the scheduled action mentioned on the configure section + or wait until its execution. +2. Go to *Website \> Products \> Products*. +3. Click on Filters \> Add Custom Filter, and apply the filter "Odoo + Module" \> "is set". +4. You will see the created products in the list. + +> Now you can see the products created. diff --git a/apps_product_creator/readme/USAGE.rst b/apps_product_creator/readme/USAGE.rst deleted file mode 100644 index a4ad8889..00000000 --- a/apps_product_creator/readme/USAGE.rst +++ /dev/null @@ -1,10 +0,0 @@ -To see the module working - - * Import some modules with `github_connector `_ - -#. 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. diff --git a/apps_product_creator/static/description/index.html b/apps_product_creator/static/description/index.html index 93623502..15fbe3fa 100644 --- a/apps_product_creator/static/description/index.html +++ b/apps_product_creator/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Github product creator -
    +
    +

    Github product creator

    - - -Odoo Community Association - -
    -

    Github product creator

    -

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    -

    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.

    +

    Beta License: AGPL-3 OCA/apps-store Translate me on Weblate Try me on Runboat

    +

    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

      @@ -404,82 +400,89 @@

      Github product creator

    -

    Configuration

    -

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

    +

    Configuration

    +

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

    1. Go to Settings > Technical > Automation > Scheduled Actions.
    2. -
    3. Locate “Create/Update product variants for each module version” and access its form.
    4. +
    5. Locate “Create/Update product variants for each module version” and +access its form.
    -

    Usage

    +

    Usage

    To see the module working

      -
    1. Run manually the scheduled action mentioned on the configure section or wait until its execution.
    2. +
    3. Run manually the scheduled action mentioned on the configure section +or wait until its execution.
    4. Go to Website > Products > Products.
    5. -
    6. Click on Filters > Add Custom Filter, and apply the filter “Odoo Module” > “is set”.
    7. +
    8. Click on Filters > Add Custom Filter, and apply the filter “Odoo +Module” > “is set”.
    9. You will see the created products in the list.
    +
    Now you can see the products created.
    -

    Changelog

    +

    Changelog

    -

    11.0.1.1.2 (2018-10-02)

    +

    11.0.1.1.2 (2018-10-02)

    • Publish the modules automatically on the website
    -

    11.0.1.1.0 (2018-10-02)

    +

    11.0.1.1.0 (2018-10-02)

      -
    • [ADD] Added dependency on github_connector_oca to display development_status +
    • [ADD] Added dependency on github_connector_oca to display +development_status (#19)
    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub 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.

    +feedback.

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

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • BizzAppDev
    -

    Contributors

    +

    Contributors

    -

    Other credits

    +

    Other credits

    -

    Images

    +

    Images

      -
    • Odoo Community Association: Icon.
    • +
    • Odoo Community Association: +Icon.
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association @@ -519,11 +523,10 @@

    Maintainers

    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 project on GitHub.

    +

    This module is part of the OCA/apps-store project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    -
    From 4fc0f060dcb0e68e69e0659929ab62d224e5e8fd Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis Date: Fri, 31 Oct 2025 12:02:17 +0100 Subject: [PATCH 61/61] [18.0][MIG] apps_product_creator: Migration to 18.0 --- apps_product_creator/__manifest__.py | 2 +- apps_product_creator/data/ir_cron.xml | 11 +++++------ apps_product_creator/data/product_attribute.xml | 16 ++++++++++++++++ apps_product_creator/models/product_product.py | 9 +++++---- apps_product_creator/tests/common.py | 4 ++-- apps_product_creator/views/view_odoo_module.xml | 2 +- .../views/view_product_product.xml | 2 +- 7 files changed, 31 insertions(+), 15 deletions(-) diff --git a/apps_product_creator/__manifest__.py b/apps_product_creator/__manifest__.py index 7a3fc2ff..54d74421 100644 --- a/apps_product_creator/__manifest__.py +++ b/apps_product_creator/__manifest__.py @@ -5,7 +5,7 @@ "name": "Github product creator", "summary": "Create a product variant (by version) for every module found " "in the Github repositories", - "version": "14.0.1.1.0", + "version": "18.0.1.0.0", "category": "Connector", "website": "https://github.com/OCA/apps-store", "license": "AGPL-3", diff --git a/apps_product_creator/data/ir_cron.xml b/apps_product_creator/data/ir_cron.xml index 48ed1e84..413ae390 100644 --- a/apps_product_creator/data/ir_cron.xml +++ b/apps_product_creator/data/ir_cron.xml @@ -6,14 +6,13 @@ Create/Update product variants for each module version - 1 - - - days - -1 - code model.cron_create_product() + 1 + days + + + 2025-10-31 10:00:00 diff --git a/apps_product_creator/data/product_attribute.xml b/apps_product_creator/data/product_attribute.xml index 3ba7b759..bd674af3 100644 --- a/apps_product_creator/data/product_attribute.xml +++ b/apps_product_creator/data/product_attribute.xml @@ -50,4 +50,20 @@ 14.0 + + 15.0 + + + + 16.0 + + + + 17.0 + + + + 18.0 + + diff --git a/apps_product_creator/models/product_product.py b/apps_product_creator/models/product_product.py index d5775689..353af54b 100644 --- a/apps_product_creator/models/product_product.py +++ b/apps_product_creator/models/product_product.py @@ -104,10 +104,11 @@ def _compute_app_description_rst_html(self): rst_desc = hook_github_image_url(rst_desc, product.app_github_url) product.app_description_rst_html = rst_desc - @api.model - def create(self, values): - self._manage_product_module(values) - return super().create(values) + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + self._manage_product_module(vals) + return super().create(vals_list) @api.model def _manage_product_module(self, values): diff --git a/apps_product_creator/tests/common.py b/apps_product_creator/tests/common.py index efe24ae3..aca1bdc3 100644 --- a/apps_product_creator/tests/common.py +++ b/apps_product_creator/tests/common.py @@ -1,10 +1,10 @@ # Copyright (C) 2017-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase from odoo.tools import config -class Common(SavepointCase): +class Common(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/apps_product_creator/views/view_odoo_module.xml b/apps_product_creator/views/view_odoo_module.xml index ca6c1a73..63c44ffe 100644 --- a/apps_product_creator/views/view_odoo_module.xml +++ b/apps_product_creator/views/view_odoo_module.xml @@ -15,7 +15,7 @@ class="oe_stat_button" icon="fa-arrows-v" name="action_view_products" - attrs="{'invisible': [('product_qty', '=', 0)]}" + invisible="product_qty == 0" > diff --git a/apps_product_creator/views/view_product_product.xml b/apps_product_creator/views/view_product_product.xml index 110a309d..adc438e0 100644 --- a/apps_product_creator/views/view_product_product.xml +++ b/apps_product_creator/views/view_product_product.xml @@ -10,7 +10,7 @@