diff --git a/pos_return_valid_days/README.rst b/pos_return_valid_days/README.rst new file mode 100644 index 000000000..a8c556225 --- /dev/null +++ b/pos_return_valid_days/README.rst @@ -0,0 +1,39 @@ +POS Return And Exchange Policies v10 +==================================== + +This module developed to print the product returning or exchanging days in POS ticket. + + +Usage +===== +#.Set the validity in days. +#.When a product sold its returning and validity days will be printed on the ticket. +#.The return and validity are printed in category wise. + + +Installation +============ + +- www.odoo.com/documentation/10.0/setup/install.html +- Install our custom addon + +License +======= +GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Bug Tracker +=========== + +Contact odoo@cybrosys.com + +Credits +======= +Anusha P P @ cybrosys, anusha@cybrosys.in + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/pos_return_valid_days/__init__.py b/pos_return_valid_days/__init__.py new file mode 100644 index 000000000..363873595 --- /dev/null +++ b/pos_return_valid_days/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Anusha() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import models diff --git a/pos_return_valid_days/__manifest__.py b/pos_return_valid_days/__manifest__.py new file mode 100644 index 000000000..b1c6e3cd9 --- /dev/null +++ b/pos_return_valid_days/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Anusha () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': 'POS Return Days', + 'version': '10.0.0.1.0', + 'summary': 'Return Policies for the Point of Sale ', + 'category': 'Point of Sale', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['point_of_sale', 'pos_return'], + 'data': [ + 'views/pos_valid_day_add.xml', + 'views/pos_template_view.xml', + + ], + 'qweb': [ + 'static/src/xml/pos_ticket.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_return_valid_days/models/__init__.py b/pos_return_valid_days/models/__init__.py new file mode 100644 index 000000000..50dcfa68f --- /dev/null +++ b/pos_return_valid_days/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Anusha() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import pos_valid_day_add diff --git a/pos_return_valid_days/models/pos_valid_day_add.py b/pos_return_valid_days/models/pos_valid_day_add.py new file mode 100644 index 000000000..bc0688659 --- /dev/null +++ b/pos_return_valid_days/models/pos_valid_day_add.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +from odoo import models, fields + + +class AddValidDay(models.Model): + _inherit = 'pos.category' + + valid_day = fields.Integer(string="Validity Days") + diff --git a/pos_return_valid_days/static/description/banner.jpg b/pos_return_valid_days/static/description/banner.jpg new file mode 100644 index 000000000..669a916af Binary files /dev/null and b/pos_return_valid_days/static/description/banner.jpg differ diff --git a/pos_return_valid_days/static/description/cybro_logo.png b/pos_return_valid_days/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/pos_return_valid_days/static/description/cybro_logo.png differ diff --git a/pos_return_valid_days/static/description/icon.png b/pos_return_valid_days/static/description/icon.png new file mode 100644 index 000000000..09d7d77fc Binary files /dev/null and b/pos_return_valid_days/static/description/icon.png differ diff --git a/pos_return_valid_days/static/description/index.html b/pos_return_valid_days/static/description/index.html new file mode 100644 index 000000000..1d0d74a2d --- /dev/null +++ b/pos_return_valid_days/static/description/index.html @@ -0,0 +1,85 @@ +
+
+

Product Return Days In POS

+

Product Return Days In POS ticket

+

Cybrosys Technologies

+
+
+

Features:

+
+ Print Return Days In Category Wise.
+
+
+
+ +
+
+

Set Validity

+
+
+
+ +
+
+
+

+ Set the return validity days in products category form. +

+
+
+
+
+ +
+
+

Select Product

+
+
+
+ +
+
+
+
+
+ +
+
+
+
+ +
+
+

+

Get the return date of products in category wise.

+

+
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/pos_return_valid_days/static/description/pos_return.png b/pos_return_valid_days/static/description/pos_return.png new file mode 100644 index 000000000..79cacb928 Binary files /dev/null and b/pos_return_valid_days/static/description/pos_return.png differ diff --git a/pos_return_valid_days/static/description/pos_return_1.png b/pos_return_valid_days/static/description/pos_return_1.png new file mode 100644 index 000000000..f752baf54 Binary files /dev/null and b/pos_return_valid_days/static/description/pos_return_1.png differ diff --git a/pos_return_valid_days/static/description/pos_return_3.png b/pos_return_valid_days/static/description/pos_return_3.png new file mode 100644 index 000000000..3ba93f14d Binary files /dev/null and b/pos_return_valid_days/static/description/pos_return_3.png differ diff --git a/pos_return_valid_days/static/src/css/pos_ticket.css b/pos_return_valid_days/static/src/css/pos_ticket.css new file mode 100644 index 000000000..184235706 --- /dev/null +++ b/pos_return_valid_days/static/src/css/pos_ticket.css @@ -0,0 +1,4 @@ +.pos_underline{ + + text-decoration: underline; +} diff --git a/pos_return_valid_days/static/src/js/pos_return_valid_day.js b/pos_return_valid_days/static/src/js/pos_return_valid_day.js new file mode 100644 index 000000000..6e9d7804d --- /dev/null +++ b/pos_return_valid_days/static/src/js/pos_return_valid_day.js @@ -0,0 +1,69 @@ +odoo.define('pos_return_valid_days.valid', function (require) { +"use strict"; + + var pos_model = require('point_of_sale.models'); + var models = pos_model.PosModel.prototype.models; + var orderline_id =1; + for(var i=0; i + + +
+
+
+
+ Phone:
+ User:
+ Shop:
+
+ +
+ +
+
+
+ + + + + + + + + + + +
+ + +
+ With a % discount +
+
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + +
Subtotal: + +
+ +
Discount: + +
Total: + +
+
+ + + + + + + +
+ + + +
+
+ + +
Change: + +
+

** Product should be return within the specified days below**

+ + + + + + + + + + + + + + + + + + + + + +
+ Within Days +
+ +
+
+ +
+
+
+
+
+ diff --git a/pos_return_valid_days/views/pos_template_view.xml b/pos_return_valid_days/views/pos_template_view.xml new file mode 100644 index 000000000..f3f294dc8 --- /dev/null +++ b/pos_return_valid_days/views/pos_template_view.xml @@ -0,0 +1,10 @@ + + + +