Skip to content

Commit 57076fa

Browse files
committed
Merge PR #1632 into 17.0
Signed-off-by moylop260
2 parents 606d3bc + 126f0bc commit 57076fa

29 files changed

+2204
-0
lines changed

Diff for: product_pricelist_supplierinfo/README.rst

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
========================================
2+
Supplier info prices in sales pricelists
3+
========================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:e6539df59b27f0932ee4afb66ee75503be8c81c9ec41fd11623a5abcfca59e9c
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%2Fproduct--attribute-lightgray.png?logo=github
20+
:target: https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_supplierinfo
21+
:alt: OCA/product-attribute
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_pricelist_supplierinfo
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/product-attribute&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows you to create a sales pricelist based on product
32+
supplierinfo prices. If you want, you can bypass minimum quantity in
33+
pricelist item.
34+
35+
We can also define sale marging applied on purchase price directly on
36+
supplier info. For this, you must add users to "Show sale margin on
37+
Product Supplierinfo" group.
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Installation
45+
============
46+
47+
Although this module doesn't depend technically on **Sales Management**,
48+
you must install it for configuring and seeing the effects of it.
49+
50+
Configuration
51+
=============
52+
53+
To configure pricelists with the new feature of this module, you need
54+
to:
55+
56+
1. Go to *Sales > Configuration > Settings* and check "Pricelists"
57+
option and "Advanced price rules (discounts, formulas)" after that.
58+
You must have correct permissions and you must install **Sales
59+
Management** app (sale) and **Purchase** app to see these settings.
60+
2. Create or edit a Sales Pricelist at *Sales > Products > Pricelists*.
61+
3. Add or edit a pricelist item and check "Formula" option in "Price
62+
Computation" section.
63+
4. You will see the new option "Prices based on supplier info".
64+
5. If you want to bypass the "Min.Quantity" field of the supplier info
65+
and always select the lowest quantity price, check the option "Ignore
66+
Supplier Info Min. Quantity".
67+
68+
Usage
69+
=====
70+
71+
For adding supplier info:
72+
73+
1. Go to *Sales > Products > Products*
74+
2. Open or create a product.
75+
3. Go to "Purchase" page.
76+
4. On "Vendors" section, add the supplier and prices.
77+
5. You can drag and drop for reordering these lines.
78+
79+
Check the remark in known issues about the supplier info line selection.
80+
81+
For checking pricelists in action, you can (with sale module installed):
82+
83+
1. Go to *Sales > Orders > Quotations*
84+
2. Create or edit a quotation.
85+
3. Add a line.
86+
4. Select a product with the criteria to match the pricelist from
87+
supplier info.
88+
5. See the proper price appears in the line.
89+
90+
Known issues / Roadmap
91+
======================
92+
93+
- First line that matches by minimum quantity criteria, independently
94+
from the supplier, will be the one that provides the price for the
95+
pricelist.
96+
- There's no mechanism for selecting the supplier from possible sources
97+
like sales orders.
98+
99+
Bug Tracker
100+
===========
101+
102+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
103+
In case of trouble, please check there if your issue has already been reported.
104+
If you spotted it first, help us to smash it by providing a detailed and welcomed
105+
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_pricelist_supplierinfo%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
106+
107+
Do not contact contributors directly about support or help with technical issues.
108+
109+
Credits
110+
=======
111+
112+
Authors
113+
-------
114+
115+
* Tecnativa
116+
* Vauxoo
117+
118+
Contributors
119+
------------
120+
121+
- `Tecnativa <https://www.tecnativa.com/>`__:
122+
123+
- Vicent Cubells
124+
- Pedro M. Baeza
125+
- Carlos Roca
126+
127+
- Nikul Chaudhary <[email protected]>
128+
- `TAKOBI <https://takobi.online/>`__:
129+
130+
- Lorenzo Battistini
131+
132+
- Andrea Gidalti <[email protected]>
133+
134+
Maintainers
135+
-----------
136+
137+
This module is maintained by the OCA.
138+
139+
.. image:: https://odoo-community.org/logo.png
140+
:alt: Odoo Community Association
141+
:target: https://odoo-community.org
142+
143+
OCA, or the Odoo Community Association, is a nonprofit organization whose
144+
mission is to support the collaborative development of Odoo features and
145+
promote its widespread use.
146+
147+
.. |maintainer-luisg123v| image:: https://github.com/luisg123v.png?size=40px
148+
:target: https://github.com/luisg123v
149+
:alt: luisg123v
150+
151+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
152+
153+
|maintainer-luisg123v|
154+
155+
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_supplierinfo>`_ project on GitHub.
156+
157+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Diff for: product_pricelist_supplierinfo/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

Diff for: product_pricelist_supplierinfo/__manifest__.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2018 Tecnativa - Vicent Cubells
2+
# Copyright 2018 Tecnativa - Pedro M. Baeza
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
{
5+
"name": "Supplier info prices in sales pricelists",
6+
"summary": "Allows to create priceslists based on supplier info",
7+
"version": "17.0.1.0.0",
8+
"category": "Sales/Sales",
9+
"website": "https://github.com/OCA/product-attribute",
10+
"author": "Tecnativa, Odoo Community Association (OCA), Vauxoo",
11+
"maintainers": ["luisg123v"],
12+
"license": "AGPL-3",
13+
"depends": ["product"],
14+
"data": [
15+
"security/res_groups.xml",
16+
"views/product_pricelist_item_views.xml",
17+
"views/product_supplierinfo_view.xml",
18+
],
19+
"installable": True,
20+
}

Diff for: product_pricelist_supplierinfo/i18n/ca.po

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * product_pricelist_supplierinfo
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-02-15 17:45+0000\n"
10+
"Last-Translator: claudiagn <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: ca\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: product_pricelist_supplierinfo
20+
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_pricelist_item__base
21+
msgid ""
22+
"Base price for computation.\n"
23+
"Sales Price: The base price will be the Sales Price.\n"
24+
"Cost Price : The base price will be the cost price.\n"
25+
"Other Pricelist : Computation of the base price based on another Pricelist."
26+
msgstr ""
27+
28+
#. module: product_pricelist_supplierinfo
29+
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__base
30+
msgid "Based on"
31+
msgstr "Basat en"
32+
33+
#. module: product_pricelist_supplierinfo
34+
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__no_supplierinfo_min_quantity
35+
msgid "Ignore Supplier Info Min. Quantity"
36+
msgstr "Ignora la informació del proveïdor Min. Quantitat"
37+
38+
#. module: product_pricelist_supplierinfo
39+
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_supplierinfo__sale_margin
40+
msgid "Margin to apply on price to obtain sale price"
41+
msgstr "Marge a aplicar sobre el preu per obtenir el preu de venda"
42+
43+
#. module: product_pricelist_supplierinfo
44+
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_pricelist_item__filter_supplier_id
45+
msgid "Only match prices from the selected supplier"
46+
msgstr "Coincideix només amb els preus del proveïdor seleccionat"
47+
48+
#. module: product_pricelist_supplierinfo
49+
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_pricelist_item
50+
msgid "Pricelist Rule"
51+
msgstr ""
52+
53+
#. module: product_pricelist_supplierinfo
54+
#: model:ir.model.fields.selection,name:product_pricelist_supplierinfo.selection__product_pricelist_item__base__supplierinfo
55+
msgid "Prices based on supplier info"
56+
msgstr "Preu basat en la informació del proveedor"
57+
58+
#. module: product_pricelist_supplierinfo
59+
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_template
60+
msgid "Product"
61+
msgstr "Producte"
62+
63+
#. module: product_pricelist_supplierinfo
64+
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_product
65+
msgid "Product Variant"
66+
msgstr ""
67+
68+
#. module: product_pricelist_supplierinfo
69+
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_supplierinfo__sale_margin
70+
msgid "Sale Margin"
71+
msgstr "Marge de vendes"
72+
73+
#. module: product_pricelist_supplierinfo
74+
#: model_terms:ir.ui.view,arch_db:product_pricelist_supplierinfo.product_supplierinfo_tree_view
75+
msgid "Sale margin"
76+
msgstr "Marge de venda"
77+
78+
#. module: product_pricelist_supplierinfo
79+
#: model:res.groups,name:product_pricelist_supplierinfo.group_supplierinfo_pricelist_sale_margin
80+
msgid "Show sale margin on Product Supplierinfo"
81+
msgstr "Mostra el marge de venda a la informació del proveïdor de productes"
82+
83+
#. module: product_pricelist_supplierinfo
84+
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_supplierinfo
85+
msgid "Supplier Pricelist"
86+
msgstr "Tarifa de proveedor"
87+
88+
#. module: product_pricelist_supplierinfo
89+
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__filter_supplier_id
90+
msgid "Supplier filter"
91+
msgstr "Filtre de proveïdor"
92+
93+
#~ msgid "Pricelist"
94+
#~ msgstr "Tarifa"
95+
96+
#~ msgid ""
97+
#~ "<span attrs=\"{'invisible':[('base', '!=', 'supplierinfo')]}\">Supplier "
98+
#~ "price - </span>"
99+
#~ msgstr ""
100+
#~ "<span attrs=\"{'invisible':[('base', '!=', 'supplierinfo')]}\">Preu de "
101+
#~ "proveïdor - </span>"
102+
103+
#~ msgid ""
104+
#~ "Base price for computation.\n"
105+
#~ "Public Price: The base price will be the Sale/public Price.\n"
106+
#~ "Cost Price : The base price will be the cost price.\n"
107+
#~ "Other Pricelist : Computation of the base price based on another "
108+
#~ "Pricelist."
109+
#~ msgstr ""
110+
#~ "Preu base de càlcul.\n"
111+
#~ "Preu públic: el preu base serà el preu de venda / públic.\n"
112+
#~ "Preu de cost: el preu base serà el preu de cost.\n"
113+
#~ "Una altra llista de preus: càlcul del preu base basat en una altra llista "
114+
#~ "de preus."
115+
116+
#~ msgid "Cost"
117+
#~ msgstr "Cost"
118+
119+
#~ msgid "Cost Price Tax Included"
120+
#~ msgstr "Preu de cost impost inclòs"
121+
122+
#~ msgid "Other Price"
123+
#~ msgstr "Altre preu"
124+
125+
#~ msgid "Other Pricelist"
126+
#~ msgstr "Altra tarifa"
127+
128+
#~ msgid "Partner Prices on the product form"
129+
#~ msgstr "Preus de soci al formulari de producte"
130+
131+
#~ msgid "Pricelist Item"
132+
#~ msgstr "Element de tarifa"
133+
134+
#~ msgid "Product Template"
135+
#~ msgstr "Plantilla de producte"
136+
137+
#~ msgid "Public Price"
138+
#~ msgstr "Preu públic"

0 commit comments

Comments
 (0)