Skip to content

Commit

Permalink
[MIG] website_apps_store: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Martin committed May 9, 2019
1 parent 37b153d commit 10a61e2
Show file tree
Hide file tree
Showing 10 changed files with 520 additions and 68 deletions.
2 changes: 1 addition & 1 deletion oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# List the OCA project dependencies, one per line
# Add a repository url and branch if you need a forked version
interface-github

website
67 changes: 47 additions & 20 deletions website_apps_store/README.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

==================
Website Apps Store
==================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/12.0/website_apps_store
: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-12-0/apps-store-12-0-website_apps_store
: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/12.0
:alt: Try me on Runbot

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

Providing facility for displaying the module specific information in a standard Odoo
e-commerce website (front-end) and download the zip file of the selected product.

.. 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
**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================
Expand All @@ -21,38 +41,45 @@ Known issues / Roadmap
Bug Tracker
===========

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

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

Credits
=======

Images
------
Authors
~~~~~~~

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

Contributors
------------
~~~~~~~~~~~~

* Ruchir Shukla <ruchir@bizzappdev.com
* Divya Modi <divya.modi@bizzappdev.com>
* Eric Caudal <eric.caudal@elico-corp.com>
* Oscar Alcala <oscar@vauxoo.com>
* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor M.M. Torres

Maintainer
----------
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 <https://github.com/OCA/apps-store/tree/12.0/website_apps_store>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion website_apps_store/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Website Apps Store",
"version": "11.0.3.0.1",
"version": "12.0.1.0.0",
'author': 'Odoo Community Association (OCA), BizzAppDev',
"website": "https://github.com/OCA/apps-store",
"license": "AGPL-3",
Expand Down
9 changes: 2 additions & 7 deletions website_apps_store/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@ def _compute_total_download_count(self):
compute="_compute_total_download_count", store=True)

def get_author_details(self):
author_ids = []
for variant in self.product_variant_ids:
for author in variant.app_author_ids:
if author not in author_ids:
author_ids.append(author)
return author_ids
return self.mapped('product_variant_ids.app_author_ids')

def get_version_info(self):
products = self.product_variant_ids.sorted(
lambda a: a.attribute_value_ids.sequence, reverse=True)
lambda a: a.attribute_value_ids.sequence, reverse=True)
return products[0]
7 changes: 7 additions & 0 deletions website_apps_store/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Ruchir Shukla <ruchir@bizzappdev.com
* Divya Modi <divya.modi@bizzappdev.com>
* Eric Caudal <eric.caudal@elico-corp.com>
* Oscar Alcala <oscar@vauxoo.com>
* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor M.M. Torres
2 changes: 2 additions & 0 deletions website_apps_store/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Providing facility for displaying the module specific information in a standard Odoo
e-commerce website (front-end) and download the zip file of the selected product.
1 change: 1 addition & 0 deletions website_apps_store/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Creation of an error queue if the exception occurs while generating zip file of the product
Loading

0 comments on commit 10a61e2

Please sign in to comment.