v 8.0 v 9.0 v 10.0 v 11.0 v 12.0 Third Party 17325
Download for v 8.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Sales Management (sale)
Warehouse Management (stock)
Online Billing (account_voucher)
Social Network (mail)
Technical Name sale_discount_total
LicenseSee License tab
Websitehttp://www.cybrosys.com
Versions 17.0 15.0 16.0 13.0 14.0 8.0 10.0 9.0 11.0 12.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Sales Management (sale)
Warehouse Management (stock)
Online Billing (account_voucher)
Social Network (mail)
Technical Name sale_discount_total
LicenseSee License tab
Websitehttp://www.cybrosys.com
Versions 17.0 15.0 16.0 13.0 14.0 8.0 10.0 9.0 11.0 12.0

Global Discount In Sale

Global Discount In Sale

Cybrosys Technologies
cybrosys technologies

Overview

This module allows you to mention discount on Total of sale order and Total of Customer Invoice as percentage or as amount.

Features

Select 'Percentage' from Discount type and give discount percentage as Discount rate.

Select 'Amount' from Discount type and give discount amount as Discount rate.

System will update the value of Discount and Total

Screenshots

Sale Order

Customer Invoice

And the module also allows you to set a limit for total discount in percentage. Exceeding this limit will require approval.

Manager level users can approve sale orders in 'Waiting Approval' stage.

cybrosys technologies

Our Services

Odoo Customization

Odoo Implementation

Odoo Integration

Odoo Support

Hire Odoo Developers

Our Industries

Odoo Industry

Trading

Easily procure and sell your products.

Odoo Industry

Manufacturing

Plan, track and schedule your operations.

Odoo Industry

Restaurant

Run your bar or restaurant methodical.

Odoo Industry

POS

Easy configuring and convivial selling.

Odoo Industry

E-commerce & Website

Mobile friendly, awe-inspiring product pages.

Odoo Industry

Hotel Management

An all-inclusive hotel management application.

Odoo Industry

Education

A Collaborative platform for educational management.

Odoo Industry

Service Management

Keep track of services and invoice accordingly.

Email us Contact Us Request Customization

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
TypeError: 'function' object is not iterable
by
Peter Capon
on 11/14/18, 1:56 PM

Received this error on install ... Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 499, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 516, in dispatch result = self._call_function(**self.params) File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 282, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 279, in checked_call return self.endpoint(*a, **kw) File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 732, in __call__ return self.method(*args, **kw) File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 375, in response_wrap response = f(*args, **kw) File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 450, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 497, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/local/lib/python2.7/site-packages/openerp/modules/registry.py", line 324, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 358, in load_modules loaded_modules, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 263, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 158, in load_module_graph models = registry.load(cr, package) File "/usr/local/lib/python2.7/site-packages/openerp/modules/registry.py", line 147, in load model = cls._build_model(self, cr) File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 652, in _build_model model.__init__(pool, cr) File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 818, in __init__ cls._init_function_fields(pool, cr) File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 663, in _init_function_fields column.digits_change(cr) File "/usr/local/lib/python2.7/site-packages/openerp/osv/fields.py", line 326, in digits_change precision, scale = self.digits TypeError: 'function' object is not iterable


Print a lot of decimal digits at the Invoice Discount Lines
by
Sergio A
on 5/17/16, 12:32 PM

The Discount apply well for Sales and Invoices, but for each Line on the printed Invoice, it print 10 decimal digits, The Decimal Accuracy is only 1 by me for the Discount Value


Breaks the delivery method/shipping fee caculation
by
Vincent
on 5/12/16, 1:15 AM

Hi, Thanks for the development. However it seems this will break the delivery method/shipping fee caculation. With this module installed, even not using it, the delivery method/shipping fee will be affected. The delivery method/shipping fee still calculates correctly, but won't add to the sales total amount. Best Regards,


nice
by
p5yl33t
on 12/30/15, 3:30 AM

thx


Very very nice
by
marouane
on 12/29/15, 12:52 PM

Thank you very much!! I've been searching for this function for such a long time and it will be more intressting if you could add the discount on the sale report and the invoice report. thanks again!


'function' object is not iterable
by
Hussam
on 12/9/17, 3:02 PM

Tried to install it and received this error Odoo Server Error Traceback (most recent call last): File "/opt/odoo/openerp/http.py", line 530, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/openerp/http.py", line 567, in dispatch result = self._call_function(**self.params) File "/opt/odoo/openerp/http.py", line 303, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/openerp/http.py", line 300, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/openerp/http.py", line 796, in __call__ return self.method(*args, **kw) File "/opt/odoo/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/web/controllers/main.py", line 953, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/addons/web/controllers/main.py", line 941, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/openerp/addons/base/module/module.py", line 450, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/openerp/addons/base/module/module.py", line 498, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/opt/odoo/openerp/modules/registry.py", line 366, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/opt/odoo/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/opt/odoo/openerp/modules/loading.py", line 156, in load_module_graph registry.setup_models(cr, partial=True) File "/opt/odoo/openerp/modules/registry.py", line 191, in setup_models model._setup_fields(cr, SUPERUSER_ID) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/openerp/api.py", line 336, in old_api result = method(recs, *args, **kwargs) File "/opt/odoo/openerp/models.py", line 2992, in _setup_fields field.setup(self.env) File "/opt/odoo/openerp/fields.py", line 412, in setup self._setup_regular(env) File "/opt/odoo/openerp/fields.py", line 1011, in _setup_regular self._setup_digits(env) File "/opt/odoo/openerp/fields.py", line 1007, in _setup_digits self.column.digits_change(env.cr) File "/opt/odoo/openerp/osv/fields.py", line 363, in digits_change precision, scale = self.digits TypeError: 'function' object is not iterable


by
orczone
on 3/24/17, 10:59 AM

Hi, I have updated "sale" module version 8.0.1, but still having the same installation error. Please help. Thank you.


Solving the installation problem
by
Rui Franco
on 11/3/16, 2:01 PM

If you face the same problem as ELB, just update your "sale" module before installing this one.


would this work with 9.0 version ?
by
optimus
on 8/26/16, 12:45 AM

Error install
by
ELB
on 7/14/16, 1:47 PM

Hi all, I try to install, But there is an error: "ProgrammingError: missing FROM-clause entry for table "cr" LINE 20: ...:integer as shipped_qty_1,sum(l.product_uom_qty * cr.rate * ..." Traceback (most recent call last): File "/opt/odoo/odoo/openerp/http.py", line 536, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo/openerp/http.py", line 573, in dispatch result = self._call_function(**self.params) File "/opt/odoo/odoo/openerp/http.py", line 309, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo/openerp/http.py", line 306, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/odoo/openerp/http.py", line 802, in __call__ return self.method(*args, **kw) File "/opt/odoo/odoo/openerp/http.py", line 402, in response_wrap response = f(*args, **kw) File "/opt/odoo/odoo/addons/web/controllers/main.py", line 941, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/odoo/addons/web/controllers/main.py", line 929, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 450, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 498, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/opt/odoo/odoo/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/odoo/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/opt/odoo/odoo/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/opt/odoo/odoo/openerp/modules/loading.py", line 157, in load_module_graph init_module_models(cr, package.name, models) File "/opt/odoo/odoo/openerp/modules/module.py", line 290, in init_module_models obj.init(cr) File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo/addons/sale/report/sale_report.py", line 119, in init )""" % (self._table, self._select(), self._from(), self._group_by())) File "/opt/odoo/odoo/openerp/sql_db.py", line 158, in wrapper return f(self, *args, **kwargs) File "/opt/odoo/odoo/openerp/sql_db.py", line 234, in execute res = self._obj.execute(query, params) ProgrammingError: missing FROM-clause entry for table "cr" LINE 20: ...:integer as shipped_qty_1,sum(l.product_uom_qty * cr.rate * ... ^


by
Cybrosys Technologies
on 7/3/16, 11:33 PM Author

Hi all, We have removed rounding from both quotation and invoice. you can set rounding if you need by changing decimal precision of 'Account'.


by
jerome gabard
on 6/29/16, 11:50 AM

Hi The rounding doesn't work on invoices ?


Rounding
by
Sergio A
on 6/24/16, 3:32 PM

Can you please check again rounding on Quotation does not works, only on Invoices


Updated
by
Cybrosys Technologies
on 6/15/16, 2:49 AM Author

Rounding removed from SO Decimal points in printed invoice is two digits now


Quotation round as integer again
by
Sergio A
on 5/18/16, 2:56 PM

Now the Invoice rounds well, but the Quotation round to the next Integer


Thanks For Feedback
by
Cybrosys Technologies
on 2/1/16, 6:56 AM Author

We removed rounding from invoice too . Thanks for your feed backs. and apologies for making you post same issue again .


Getting Better
by
Sergio A
on 1/31/16, 4:40 PM

I have tested the rounding you made and I noticed on the Quotation all works fine, but on the Invoice only the amount_discount is still rounded as Integer. I hope you can check on this


Rounding removed
by
Cybrosys Technologies
on 1/30/16, 2:01 AM Author

As per your comments we removed rounding of amounts and preserved normal presentation of the margin value. Thank you for your valuable comments


getting error need fix
by
jayant
on 1/21/16, 1:16 PM

Error details: Field `discount_rate` does not exist Error context: View `discount.sale.order.form` [view_id: 944, xml_id: n/a, model: sale.order, parent_id: 575]" while parsing /tmp/tmpUsP5_B/sale_discount_total/views/sale_view.xml:4, near discount.sale.order.form sale.order <xpath expr="//group[@name='sale_total']" position="replace">


Round function, not working
by
Sergio A
on 1/21/16, 9:54 AM

It is a very usefully Module, it only has the Issue, that the untaxed Amount, taxed Amount and total Amount is rounded as Integer Value, not including the Decimals (only shows zeros). The Quotation Screen also loose his normal Presentation at the Margin Values


Bug Fixed
by
Cybrosys Technologies
on 1/20/16, 12:02 AM Author

We had fixed the bug and we will include discount in both sales and invoice report. Thanks for your valuable comments.


Bug??
by
Davaadorj Uitumen
on 1/5/16, 10:27 PM

I installed module. But there is an error: AttributeError: 'NoneType' object has no attribute 'iteritems' I tried clean Odoo but no success. Any suggestion?