Skip to content

Commit c7c7577

Browse files
committed
[MIG] pos_tare: Migration to 12.0
1 parent 6028f7a commit c7c7577

13 files changed

Lines changed: 169 additions & 300 deletions

File tree

pos_tare/README.rst

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,67 +6,3 @@ Point Of Sale - Tare
66
!! This file is generated by oca-gen-addon-readme !!
77
!! changes will be overwritten. !!
88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9-
10-
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11-
:target: https://odoo-community.org/page/development-status
12-
:alt: Beta
13-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14-
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15-
:alt: License: AGPL-3
16-
.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--business-lightgray.png?logo=github
17-
:target: https://github.com/grap/grap-odoo-business/tree/8.0/pos_tare
18-
:alt: grap/grap-odoo-business
19-
20-
|badge1| |badge2| |badge3|
21-
22-
Give the possibility to the user to provide Gross weight and Tare weight.
23-
This will compute automatically net weight and set it to the current
24-
selected order
25-
26-
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-business/8.0/pos_tare/static/description/pos_tare.png
27-
28-
The screen will be displayed only for 'to_weight' products and if scale is
29-
enabled in PoS Configuration.
30-
31-
**Table of contents**
32-
33-
.. contents::
34-
:local:
35-
36-
Known issues / Roadmap
37-
======================
38-
39-
For the time being, this module disable Scale functionnality.
40-
41-
Bug Tracker
42-
===========
43-
44-
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-business/issues>`_.
45-
In case of trouble, please check there if your issue has already been reported.
46-
If you spotted it first, help us smashing it by providing a detailed and welcomed
47-
`feedback <https://github.com/grap/grap-odoo-business/issues/new?body=module:%20pos_tare%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48-
49-
Do not contact contributors directly about support or help with technical issues.
50-
51-
Credits
52-
=======
53-
54-
Authors
55-
~~~~~~~
56-
57-
* GRAP
58-
59-
Contributors
60-
~~~~~~~~~~~~
61-
62-
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
63-
64-
Maintainers
65-
~~~~~~~~~~~
66-
67-
68-
69-
This module is part of the `grap/grap-odoo-business <https://github.com/grap/grap-odoo-business/tree/8.0/pos_tare>`_ project on GitHub.
70-
71-
72-
You are welcome to contribute.

pos_tare/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# coding: utf-8
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# coding: utf-8
21
# Copyright (C) 2015-Today GRAP (http://www.grap.coop)
32
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
54

65
{
76
"name": "Point Of Sale - Tare",
87
"summary": "Manage Tare in Point Of Sale module",
9-
"version": "8.0.1.0.0",
8+
"version": "12.0.1.0.0",
109
"category": "Point Of Sale",
11-
"author": "GRAP",
12-
"website": "http://www.grap.coop",
10+
"author": "GRAP, "
11+
"Odoo Community Association (OCA)",
12+
"maintainers": ["legalsylvain"],
13+
"website": "https://www.github.com/pos",
1314
"license": "AGPL-3",
14-
"depends": ["point_of_sale",],
15-
"data": ["views/templates.xml",],
16-
"demo": ["demo/pos_config.xml",],
17-
"qweb": ["static/src/xml/pos_tare.xml",],
18-
"installable": False,
15+
"depends": ["point_of_sale"],
16+
"data": ["views/assets.xml"],
17+
"qweb": ["static/src/xml/pos_tare.xml"],
18+
"installable": True,
1919
}

pos_tare/demo/pos_config.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

pos_tare/readme/CONFIGURE.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
To enable this feature, you should enable "IoT Box" on your Point of Sale,
2+
and check the box "Electronic Scale"

pos_tare/readme/DESCRIPTION.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
Give the possibility to the user to provide Gross weight and Tare weight.
1+
Give the possibility to the user to enter a Tare weight, when weighting
2+
products in the Point of Sale.
23
This will compute automatically net weight and set it to the current
34
selected order
45

56
.. figure:: ../static/description/pos_tare.png
6-
7-
The screen will be displayed only for 'to_weight' products and if scale is
8-
enabled in PoS Configuration.

pos_tare/readme/ROADMAP.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
-6.35 KB
Loading
Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,49 @@
1-
.pos .pos-tare-container .left-block{
1+
2+
.pos .scale-screen .weight-label {
3+
font-size: 25px;
4+
margin: 16px;
5+
text-align: center;
26
display: inline-block;
3-
width:45%;
4-
margin:0;
5-
padding:0;
6-
text-align:left;
7-
font-size: 16px;
8-
color: #555;
9-
font-weight: bold;
7+
width: 40%;
8+
margin-bottom: 0px;
109
}
1110

12-
.pos .pos-tare-container .right-block, .pos .pos-tare-container .right-block-readonly{
11+
.pos .scale-screen .weight-value {
12+
font-size: 25px;
1313
display: inline-block;
14-
width:45%;
15-
text-align:right;
16-
height: 40px;
17-
font-size: 20px;
18-
font-family: Lato;
19-
-moz-box-sizing: border-box;
20-
outline: none;
21-
border: none;
22-
padding: 6px 8px;
23-
color: #484848;
24-
border-radius: 3px;
25-
margin-top: 5px;
14+
margin: 16px;
15+
margin-top: 0px;
16+
padding: 16px;
17+
width: 40%;
18+
font-family: Inconsolata;
19+
font-weight: bold;
20+
text-shadow: 0px 2px 0px rgb(210,210,210);
21+
margin-bottom: 0px;
2622
}
2723

28-
.pos .pos-tare-container .right-block{
24+
.pos .scale-screen .weight-value-gross-weight {
25+
border-radius: 3px;
26+
box-shadow: 0px 2px 0px rgb(225,225,225) inset;
27+
text-align: right;
2928
background: white;
30-
box-shadow: 0px 2px rgba(143, 143, 143, 0.3) inset;
29+
}
30+
31+
.pos .scale-screen .weight-value-tare {
32+
text-align: left;
33+
padding-bottom: 0px;
34+
padding-left: 0px;
35+
}
36+
.pos .scale-screen .input-weight-tare {
37+
border: 1px solid #cecbcb;
38+
border-radius: 20px;
39+
padding: 15px 20px;
40+
width: 50%;
41+
font-family: Inconsolata;
42+
font-weight: bold;
43+
font-size: 25px;
44+
}
45+
46+
.pos .scale-screen .input-weight-tare:focus {
47+
outline: none;
48+
box-shadow: 0px 0px 0px 3px #6EC89B;
3149
}

pos_tare/static/src/js/pos_tare.js

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)