Skip to content

Commit cfe4c35

Browse files
committed
Merge PR #406 into 19.0
Signed-off-by pedrobaeza
2 parents ebf69e6 + f02f380 commit cfe4c35

28 files changed

Lines changed: 1499 additions & 0 deletions

base_global_discount/README.rst

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