-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] sale_discount_display_amount: add total without discount in report
- Loading branch information
1 parent
f8ce23c
commit ebe39bf
Showing
8 changed files
with
72 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Sale Discount Display Amount | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:b59683db12bdd36f5bf6f7d1cf976b0182658afc00567ad84b3bba6c02f5952c | ||
!! source digest: sha256:b8f5751d5a54623c56c41d0264ef8c3764328fa33af00e1c26294068740d9b39 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -45,9 +45,8 @@ Configuration | |
|
||
To configure this module, you need to: | ||
|
||
1. Go to Sales/Settings and check "Allow discounts on sales order lines" | ||
2. Go to Sales/Settings and check or uncheck "Show the Discount with | ||
TAX" depending on your needs | ||
#. Go to Sales/Settings and check "Allow discounts on sales order lines" | ||
#. Also check "Display Total without discount in report" in order to add this field to report. | ||
|
||
Usage | ||
===== | ||
|
@@ -80,14 +79,16 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Cédric Pigeon <[email protected]> | ||
- Abraham Anes <[email protected]> | ||
- Chafique Delli <[email protected]> | ||
- Ruchir Shukla <[email protected]> | ||
- Manuel Regidor <[email protected]> | ||
- `Pesol <https://www.pesol.es>`__: | ||
* Cédric Pigeon <[email protected]> | ||
* Abraham Anes <[email protected]> | ||
* Chafique Delli <[email protected]> | ||
* Ruchir Shukla <[email protected]> | ||
* Manuel Regidor <[email protected]> | ||
* PyTech srl <[email protected]> | ||
* Ooops404 <[email protected]> | ||
* `Pesol <https://www.pesol.es>`__: | ||
|
||
- Jonathan Oscategui Taza <[email protected]> | ||
* Jonathan Oscategui Taza <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
sale_discount_display_amount/views/res_config_settings_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.inherit.sale</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="priority" eval="10" /> | ||
<field name="inherit_id" ref="sale.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@id='proforma_configuration']" position="after"> | ||
<div | ||
class="col-12 col-lg-6 o_setting_box" | ||
id="report_total_without_discount_configuration" | ||
> | ||
<div class="o_setting_left_pane"> | ||
<field name="report_total_without_discount" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="report_total_without_discount" /> | ||
<div class="text-muted"> | ||
Display "Total without discount" in report | ||
</div> | ||
</div> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |