Skip to content

Commit 9b4cdef

Browse files
committed
[ADD] web_widget_many2many_binary_preview
1 parent f3a122c commit 9b4cdef

File tree

12 files changed

+635
-0
lines changed

12 files changed

+635
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../web_widget_many2many_binary_preview
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
==================================
2+
Preview in many2many_binary widget
3+
==================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a26b753aaf8f11eb7d7bca714d7b1aa7a902e9514971f0b743ab69ffddf91baf
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
20+
:target: https://github.com/OCA/web/tree/16.0/web_widget_many2many_binary_preview
21+
:alt: OCA/web
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_many2many_binary_preview
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows developers to enable a preview on fields displayed
32+
with widget ``many2many_binary``.
33+
34+
.. IMPORTANT::
35+
This is an alpha version, the data model and design can change at any time without warning.
36+
Only for development or testing purpose, do not use in production.
37+
`More details on development status <https://odoo-community.org/page/development-status>`_
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Usage
45+
=====
46+
47+
To use this module, you need to set the attribute ``preview`` to
48+
``True`` on a field with widget ``many2many_binary``.
49+
50+
You can fine-tune the preview by setting attributes ``preview_width`` and/or ``preview_height`` to a size in pixels, and ``preview_crop`` to ``top`` or ``bottom``.
51+
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
52+
53+
Bug Tracker
54+
===========
55+
56+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
57+
In case of trouble, please check there if your issue has already been reported.
58+
If you spotted it first, help us to smash it by providing a detailed and welcomed
59+
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_many2many_binary_preview%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
60+
61+
Do not contact contributors directly about support or help with technical issues.
62+
63+
Credits
64+
=======
65+
66+
Authors
67+
-------
68+
69+
* Hunki Enterprises BV
70+
71+
Contributors
72+
------------
73+
74+
- Holger Brunn <mail@hunki-enterprises.com>
75+
(https://hunki-enterprises.com)
76+
77+
Maintainers
78+
-----------
79+
80+
This module is maintained by the OCA.
81+
82+
.. image:: https://odoo-community.org/logo.png
83+
:alt: Odoo Community Association
84+
:target: https://odoo-community.org
85+
86+
OCA, or the Odoo Community Association, is a nonprofit organization whose
87+
mission is to support the collaborative development of Odoo features and
88+
promote its widespread use.
89+
90+
.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px
91+
:target: https://github.com/hbrunn
92+
:alt: hbrunn
93+
94+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
95+
96+
|maintainer-hbrunn|
97+
98+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_widget_many2many_binary_preview>`_ project on GitHub.
99+
100+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

web_widget_many2many_binary_preview/__init__.py

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 Hunki Enterprises BV
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
3+
4+
{
5+
"name": "Preview in many2many_binary widget",
6+
"summary": "Allows developers to enable previews in binary widgets",
7+
"version": "16.0.1.0.0",
8+
"development_status": "Alpha",
9+
"category": "Technical",
10+
"website": "https://github.com/OCA/web",
11+
"author": "Hunki Enterprises BV, Odoo Community Association (OCA)",
12+
"maintainers": ["hbrunn"],
13+
"license": "AGPL-3",
14+
"depends": [
15+
"web",
16+
],
17+
"assets": {
18+
"web.assets_backend": [
19+
"web_widget_many2many_binary_preview/static/src/*.js",
20+
"web_widget_many2many_binary_preview/static/src/*.xml",
21+
],
22+
},
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Holger Brunn \<mail@hunki-enterprises.com> (https://hunki-enterprises.com)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows developers to enable a preview on fields displayed with widget `many2many_binary`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
To use this module, you need to set the attribute `preview` to ``True`` on a field with widget `many2many_binary`.
2+
3+
You can fine-tune the preview by setting attributes `preview_width` and/or `preview_height` to a size in pixels, and `preview_crop` to ``top`` or ``bottom``.
4+
-
9.23 KB
Loading

0 commit comments

Comments
 (0)