Browse Source

[MIG] web_widget_slick_example: Migrate to v10

* Bump version
* Rename __openerp__.py -> __manifest__.py
* Replace openerp import, tags with odoo
* Remove data tags
* Replace LasLabs icon w/ OCA icon
* Update readme
* Update license (AGPL -> LGPL)
* Update copyright
pull/706/head
Brenton Hughes 7 years ago
committed by Dave Lasley
parent
commit
63bfc0f668
No known key found for this signature in database GPG Key ID: 7DDBA4BA81B934CF
  1. 40
      web_widget_slick_example/README.rst
  2. 4
      web_widget_slick_example/__init__.py
  3. 14
      web_widget_slick_example/__manifest__.py
  4. 14
      web_widget_slick_example/demo/slick_example_data.xml
  5. 2
      web_widget_slick_example/models/__init__.py
  6. 7
      web_widget_slick_example/models/slick_example.py
  7. BIN
      web_widget_slick_example/static/description/icon.png
  8. 12822
      web_widget_slick_example/static/description/icon.svg
  9. 18
      web_widget_slick_example/views/slick_example_view.xml

40
web_widget_slick_example/README.rst

@ -1,13 +1,20 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
====================
Slick Widget Example
====================
=============================
Slick Carousel Widget Example
=============================
This module provides an example of how to implement the web_widget_slick module
This module provides an example of how to implement the web_widget_slick module.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/web/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
=======
@ -15,18 +22,27 @@ Credits
Images
------
* LasLabs: `Icon <https://repo.laslabs.com/projects/TEM/repos/odoo-module_template/browse/module_name/static/description/icon.svg?raw>`_.
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors
------------
* Dave Lasley <dave@laslabs.com>
* Brent Hughes <brent.hughes@laslabs.com>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------
.. image:: https://laslabs.com/logo.png
:alt: LasLabs Inc.
:target: https://laslabs.com
.. 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.
This module is maintained by LasLabs Inc.
To contribute to this module, please visit https://odoo-community.org.

4
web_widget_slick_example/__init__.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016-TODAY LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import models

14
web_widget_slick_example/__openerp__.py → web_widget_slick_example/__manifest__.py

@ -1,15 +1,15 @@
# -*- coding: utf-8 -*-
# © 2016-TODAY LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Slick Widget Example",
"name": "Slick Carousel Widget Example",
"summary": "Example usage of the web_widget_slick module",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"category": "Hidden",
"website": "https://laslabs.com/",
"author": "LasLabs",
"license": "AGPL-3",
"author": "LasLabs, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": [
@ -21,5 +21,5 @@
],
"demo": [
'demo/slick_example_data.xml',
]
],
}

14
web_widget_slick_example/demo/slick_example_data.xml
File diff suppressed because it is too large
View File

2
web_widget_slick_example/models/__init__.py

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import slick_example

7
web_widget_slick_example/models/slick_example.py

@ -1,13 +1,14 @@
# -*- coding: utf-8 -*-
# © 2016-TODAY LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from openerp import models, fields
from odoo import models, fields
class SlickExample(models.Model):
_name = 'slick.example'
_description = 'Slick Example Model'
image_ids = fields.One2many(
name='Images',
comodel_name='ir.attachment',

BIN
web_widget_slick_example/static/description/icon.png

Before

Width: 600  |  Height: 518  |  Size: 10 KiB

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

12822
web_widget_slick_example/static/description/icon.svg
File diff suppressed because it is too large
View File

18
web_widget_slick_example/views/slick_example_view.xml

@ -1,14 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016-2017 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->
<!--
Copyright (C) 2016-TODAY LasLabs, Inc. [https://laslabs.com]
@author Dave Lasley <dave@laslabs.com>
@license AGPL-3
-->
<openerp>
<data>
<odoo>
<record id="slick_example_view_form" model="ir.ui.view">
<field name="name">slick.example.view.form</field>
<field name="model">slick.example</field>
@ -16,8 +10,10 @@
<form string="Slick Example">
<header />
<sheet>
<group>
<field name="image_ids" widget="one2many_slick_images"
options="{'slidesToShow': 2}" />
</group>
</sheet>
<footer />
</form>
@ -47,6 +43,4 @@
parent="base.menu_custom"
action="slick_example_action"
sequence="1" />
</data>
</openerp>
</odoo>
Loading…
Cancel
Save