Skip to content

Commit

Permalink
[MIG] Migrate module pos_order_remove_line to v14.
Browse files Browse the repository at this point in the history
  • Loading branch information
fshah-initos authored and suker committed Feb 2, 2023
1 parent 78832ce commit ebdf058
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 41 deletions.
11 changes: 6 additions & 5 deletions pos_order_remove_line/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ POS Order Remove Line
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/13.0/pos_order_remove_line
:target: https://github.com/OCA/pos/tree/14.0/pos_order_remove_line
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-13-0/pos-13-0-pos_order_remove_line
:target: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_order_remove_line
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/13.0
:target: https://runbot.odoo-community.org/runbot/184/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -38,7 +38,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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/pos/issues/new?body=module:%20pos_order_remove_line%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_order_remove_line%0Aversion:%2014.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.

Expand All @@ -55,6 +55,7 @@ Contributors

* Roberto Fichera <roberto.fichera@levelprime.com>
* Iván Todorovich <ivan.todorovich@gmail.com>
* Foram Shah <foram.shah@initos.com>

Maintainers
~~~~~~~~~~~
Expand All @@ -77,6 +78,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-robyf70|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/13.0/pos_order_remove_line>`_ project on GitHub.
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/14.0/pos_order_remove_line>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions pos_order_remove_line/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"website": "https://github.com/OCA/pos",
"category": "Point of Sale",
"maintainers": ["robyf70"],
"version": "13.0.1.1.0",
"version": "14.0.1.0.0",
"license": "LGPL-3",
"depends": ["point_of_sale"],
"data": ["views/assets.xml"],
"qweb": ["static/src/xml/order_line.xml"],
"qweb": ["static/src/xml/orderline.xml"],
}
2 changes: 1 addition & 1 deletion pos_order_remove_line/i18n/pos_order_remove_line.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
1 change: 1 addition & 0 deletions pos_order_remove_line/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Roberto Fichera <roberto.fichera@levelprime.com>
* Iván Todorovich <ivan.todorovich@gmail.com>
* Foram Shah <foram.shah@initos.com>
7 changes: 4 additions & 3 deletions pos_order_remove_line/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">POS Order Remove Line</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/13.0/pos_order_remove_line"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-13-0/pos-13-0-pos_order_remove_line"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/14.0/pos_order_remove_line"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_order_remove_line"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>The module adds the possibility to delete a POS Order Line from the POS interface.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -386,7 +386,7 @@ <h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_order_remove_line%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_order_remove_line%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -402,6 +402,7 @@ <h2><a class="toc-backref" href="#id4">Contributors</a></h2>
<ul class="simple">
<li>Roberto Fichera &lt;<a class="reference external" href="mailto:roberto.fichera&#64;levelprime.com">roberto.fichera&#64;levelprime.com</a>&gt;</li>
<li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li>
<li>Foram Shah &lt;<a class="reference external" href="mailto:foram.shah&#64;initos.com">foram.shah&#64;initos.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -413,7 +414,7 @@ <h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/robyf70"><img alt="robyf70" src="https://github.com/robyf70.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/13.0/pos_order_remove_line">OCA/pos</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/14.0/pos_order_remove_line">OCA/pos</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
23 changes: 0 additions & 23 deletions pos_order_remove_line/static/src/js/order_line.js

This file was deleted.

20 changes: 20 additions & 0 deletions pos_order_remove_line/static/src/js/orderline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2019 LevelPrime
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
*/

odoo.define("pos_order_remove_line.Orderline", function (require) {
"use strict";

const Orderline = require("point_of_sale.Orderline");
const Registries = require("point_of_sale.Registries");

const PosOrderline = (Orderline) =>
class extends Orderline {
removeLine() {
this.props.line.set_quantity("remove");
}
};
Registries.Component.extend(Orderline, PosOrderline);
return Orderline;
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
~ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
-->
<templates id="template" xml:space="preserve">
<t t-extend="Orderline">
<t t-jquery=".price" t-operation="before">
<button class="remove-line-button">
<t t-inherit="point_of_sale.Orderline" t-inherit-mode="extension">
<xpath expr="//span[hasclass('price')]" position="before">
<button class="remove-line-button" t-on-click="removeLine">
<i class="fa fa-trash-o" />
</button>
</t>
</t>
</xpath>
</t>
</templates>
4 changes: 2 additions & 2 deletions pos_order_remove_line/views/assets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<link
rel="stylesheet"
type="text/scss"
href="/pos_order_remove_line/static/src/css/order_line.scss"
href="/pos_order_remove_line/static/src/css/orderline.scss"
/>
<script
type="text/javascript"
src="/pos_order_remove_line/static/src/js/order_line.js"
src="/pos_order_remove_line/static/src/js/orderline.js"
/>
</xpath>
</template>
Expand Down

0 comments on commit ebdf058

Please sign in to comment.