Skip to content

Commit 286e34b

Browse files
authored
Merge pull request #386 from OCA/18.0
Syncing from upstream OCA/server-backend (18.0)
2 parents 46d0b87 + f5d5e55 commit 286e34b

29 files changed

+1343
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Available addons
2121
----------------
2222
addon | version | maintainers | summary
2323
--- | --- | --- | ---
24+
[base_global_discount](base_global_discount/) | 18.0.1.0.0 | | Base Global Discount
2425
[base_user_role](base_user_role/) | 18.0.1.0.2 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) [![jcdrubay](https://github.com/jcdrubay.png?size=30px)](https://github.com/jcdrubay) [![novawish](https://github.com/novawish.png?size=30px)](https://github.com/novawish) | User roles
2526
[base_user_role_company](base_user_role_company/) | 18.0.1.0.2 | | User roles by company
2627

base_global_discount/README.rst

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
====================
2+
Base Global Discount
3+
====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:cdcb262abab7a6e79929fe330c67d1c58455aa9578608f340df2223e2a728568
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
20+
:target: https://github.com/OCA/server-backend/tree/18.0/base_global_discount
21+
:alt: OCA/server-backend
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-base_global_discount
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Base module to have global discounts applied to either sales or
32+
purchases. It doesn't do much for itself, so account_global_discount or
33+
purchase_global_discount should be installed to benefit from it.
34+
35+
**Table of contents**
36+
37+
.. contents::
38+
:local:
39+
40+
Configuration
41+
=============
42+
43+
To use this module, you need to:
44+
45+
1. Go to *Settings > Users*, choose yours and set *Manage Global
46+
Discounts*.
47+
2. Go to *Settings > Parameters > Global Discounts*
48+
3. Choose the discount scope (sales or purchases).
49+
4. You can also restrict it to a certain company if needed.
50+
51+
Usage
52+
=====
53+
54+
You can assign global discounts to partners as well. You'll need the
55+
proper permission (*Manage Global Discounts*):
56+
57+
1. Go to a partner that is a company.
58+
2. Go to the *Sales & Purchases* tab.
59+
3. In section sale, you can set sale discounts.
60+
4. In section purchase, you can set purchase discounts.
61+
62+
Bug Tracker
63+
===========
64+
65+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
66+
In case of trouble, please check there if your issue has already been reported.
67+
If you spotted it first, help us to smash it by providing a detailed and welcomed
68+
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_global_discount%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
69+
70+
Do not contact contributors directly about support or help with technical issues.
71+
72+
Credits
73+
=======
74+
75+
Authors
76+
-------
77+
78+
* Tecnativa
79+
80+
Contributors
81+
------------
82+
83+
- `Tecnativa <https://www.tecnativa.com>`__
84+
85+
- Pedro M. Baeza
86+
- David Vidal
87+
- Carlos Dauden
88+
- Rafael Blasco
89+
- Ernesto Tejeda
90+
91+
- Omar Castiñeira <[email protected]>
92+
93+
Maintainers
94+
-----------
95+
96+
This module is maintained by the OCA.
97+
98+
.. image:: https://odoo-community.org/logo.png
99+
:alt: Odoo Community Association
100+
:target: https://odoo-community.org
101+
102+
OCA, or the Odoo Community Association, is a nonprofit organization whose
103+
mission is to support the collaborative development of Odoo features and
104+
promote its widespread use.
105+
106+
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/18.0/base_global_discount>`_ project on GitHub.
107+
108+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

base_global_discount/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

base_global_discount/__manifest__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2019 Tecnativa S.L. - David Vidal
2+
# Copyright 2020 Xtendoo - Manuel Calero
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
{
5+
"name": "Base Global Discount",
6+
"version": "18.0.1.0.0",
7+
"category": "Base",
8+
"author": "Tecnativa, Odoo Community Association (OCA)",
9+
"website": "https://github.com/OCA/server-backend",
10+
"license": "AGPL-3",
11+
"depends": ["product"],
12+
"data": [
13+
"security/security.xml",
14+
"security/ir.model.access.csv",
15+
"views/global_discount_views.xml",
16+
"views/product_views.xml",
17+
"views/res_partner_views.xml",
18+
],
19+
"application": False,
20+
"installable": True,
21+
}
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_global_discount
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_global_discount
17+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__company_id
18+
msgid "Company"
19+
msgstr ""
20+
21+
#. module: base_global_discount
22+
#: model:ir.model,name:base_global_discount.model_res_partner
23+
msgid "Contact"
24+
msgstr ""
25+
26+
#. module: base_global_discount
27+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__create_uid
28+
msgid "Created by"
29+
msgstr ""
30+
31+
#. module: base_global_discount
32+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__create_date
33+
msgid "Created on"
34+
msgstr ""
35+
36+
#. module: base_global_discount
37+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__discount
38+
msgid "Discount"
39+
msgstr ""
40+
41+
#. module: base_global_discount
42+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__name
43+
msgid "Discount Name"
44+
msgstr ""
45+
46+
#. module: base_global_discount
47+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__discount_scope
48+
msgid "Discount Scope"
49+
msgstr ""
50+
51+
#. module: base_global_discount
52+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__display_name
53+
msgid "Display Name"
54+
msgstr ""
55+
56+
#. module: base_global_discount
57+
#: model:ir.model.fields,field_description:base_global_discount.field_product_product__bypass_global_discount
58+
#: model:ir.model.fields,field_description:base_global_discount.field_product_template__bypass_global_discount
59+
msgid "Don't apply global discount"
60+
msgstr ""
61+
62+
#. module: base_global_discount
63+
#: model:ir.model.fields,help:base_global_discount.field_global_discount__sequence
64+
msgid "Gives the order to apply discounts"
65+
msgstr ""
66+
67+
#. module: base_global_discount
68+
#: model:ir.model,name:base_global_discount.model_global_discount
69+
msgid "Global Discount"
70+
msgstr ""
71+
72+
#. module: base_global_discount
73+
#: model:ir.actions.act_window,name:base_global_discount.action_global_discount_tree
74+
#: model:ir.ui.menu,name:base_global_discount.menu_global_discount
75+
#: model_terms:ir.ui.view,arch_db:base_global_discount.global_discount_view_form
76+
msgid "Global Discounts"
77+
msgstr ""
78+
79+
#. module: base_global_discount
80+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__id
81+
msgid "ID"
82+
msgstr ""
83+
84+
#. module: base_global_discount
85+
#: model:ir.model.fields,help:base_global_discount.field_product_product__bypass_global_discount
86+
#: model:ir.model.fields,help:base_global_discount.field_product_template__bypass_global_discount
87+
msgid ""
88+
"If this checkbox is ticked, it means that this product will not be taken "
89+
"into account when calculating the global discounts."
90+
msgstr ""
91+
92+
#. module: base_global_discount
93+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__write_uid
94+
msgid "Last Updated by"
95+
msgstr ""
96+
97+
#. module: base_global_discount
98+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__write_date
99+
msgid "Last Updated on"
100+
msgstr ""
101+
102+
#. module: base_global_discount
103+
#: model:res.groups,name:base_global_discount.group_global_discount
104+
msgid "Manage Global Discounts"
105+
msgstr ""
106+
107+
#. module: base_global_discount
108+
#: model:ir.model,name:base_global_discount.model_product_template
109+
msgid "Product"
110+
msgstr ""
111+
112+
#. module: base_global_discount
113+
#: model:ir.model,name:base_global_discount.model_product_product
114+
msgid "Product Variant"
115+
msgstr ""
116+
117+
#. module: base_global_discount
118+
#: model:ir.model.fields,field_description:base_global_discount.field_res_partner__supplier_global_discount_ids
119+
#: model:ir.model.fields,field_description:base_global_discount.field_res_users__supplier_global_discount_ids
120+
#: model_terms:ir.ui.view,arch_db:base_global_discount.res_partner_form_view
121+
msgid "Purchase Global Discounts"
122+
msgstr ""
123+
124+
#. module: base_global_discount
125+
#: model:ir.model.fields.selection,name:base_global_discount.selection__global_discount__discount_scope__purchase
126+
msgid "Purchases"
127+
msgstr ""
128+
129+
#. module: base_global_discount
130+
#: model:ir.model.fields,field_description:base_global_discount.field_res_partner__customer_global_discount_ids
131+
#: model:ir.model.fields,field_description:base_global_discount.field_res_users__customer_global_discount_ids
132+
#: model_terms:ir.ui.view,arch_db:base_global_discount.res_partner_form_view
133+
msgid "Sale Global Discounts"
134+
msgstr ""
135+
136+
#. module: base_global_discount
137+
#: model:ir.model.fields.selection,name:base_global_discount.selection__global_discount__discount_scope__sale
138+
msgid "Sales"
139+
msgstr ""
140+
141+
#. module: base_global_discount
142+
#: model:ir.model.fields,field_description:base_global_discount.field_global_discount__sequence
143+
msgid "Sequence"
144+
msgstr ""

0 commit comments

Comments
 (0)