-
-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.0] [MIG] product_pricelist_supplierinfo: Migration to 17.0 #1632
Merged
OCA-git-bot
merged 53 commits into
OCA:17.0
from
Dur-Pro:17.0-mig-product_pricelist_supplierinfo
Jun 26, 2024
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
fa654b6
product_pricelist_supplierinfo: priceslists based in supplier info
cubells 4b6a7fd
product_pricelist_supplierinfo: Several enhancements + concept fixing
pedrobaeza 4c491ab
product_pricelist_supplierinfo: Take into account sales order date
pedrobaeza 13de655
product_pricelist_supplierinfo: Give more priority in order to min_qty
pedrobaeza 3a47de5
[MIG] product_pricelist_supplierinfo v11 to v12
Nikul-Chaudhary abff1b9
[FIX] product_pricelist_supplierinfo: Proper URL
pedrobaeza e2ac643
[FIX] product_pricelist_supplierinfo: Avoid false computations
pedrobaeza eac3ddb
[11.0][FIX] product_pricelist_supplierinfo: Add template compatibilit…
carlosdauden d51d95b
Added translation using Weblate (Italian)
eLBati 2f05db6
Added translation using Weblate (Portuguese (Brazil))
augustodinizl 26778d3
Translated using Weblate (Spanish)
claudiagn 5e2ce97
[IMP] add margin on supplier info to configure the sale price
mourad-ehm a93d986
[FIX] product_pricelist_supplierinfo: use _select_seller
ruuter f4077f7
IMP product_pricelist_supplierinfo allowing to filter suppliers to ge…
eLBati 65a7dd1
Added translation using Weblate (French)
ypapouin d04f03b
[FIX] product_pricelist_supplierinfo: Converting Price
CarmenMiranda 39a52af
Translated using Weblate (French)
ypapouin 40d7ce4
[FIX] product_pricelist_supplierinfo: ensure product exists
ruuter 27ecf6e
[FIX] product_pricelist_supplierinfo: Convert price to UOM on the Sale
CarmenMiranda 00eb548
Added translation using Weblate (Dutch)
bosd a512282
Added translation using Weblate (Catalan)
claudiagn 4c5f085
[IMP] product_pricelist_supplierinfo: black, isort
CarlosRoca13 740268a
[MIG] product_pricelist_supplierinfo: Migration to v13.0
CarlosRoca13 2e64ee4
FIX product_pricelist_supplierinfo: _get_supplierinfo_pricelist_price…
eLBati 4ec7cde
[FIX] product_pricelist_direct_print: Error when date is not defined
CarlosRoca13 ee96618
[IMP] product_pricelist_supplierinfo: black, isort, prettier
victoralmau 6de3e5e
[MIG] product_pricelist_supplierinfo: Migration to 14.0
victoralmau 3170931
[FIX] product_pricelist_supplierinfo: public users
chienandalu 6ad1aaa
[FIX] product_pricelist_supplierinfo: override min quantity
chienandalu 9c721d2
[FIX] product_pricelist_supplierinfo: Allow to show shop for public u…
pedrobaeza 3ddad8a
[FIX] product_pricelist_supplierinfo: Show text in the view
victoralmau 0004eb8
[MIG] product_pricelist_supplierinfo: Migration to 15.0
victoralmau fe65e52
[UPD] Update product_pricelist_supplierinfo.pot
f806872
[UPD] README.rst
OCA-git-bot a62ec70
[IMP] product_pricelist_supplierinfo: New context force_filter_suppli…
carlosdauden dca4c32
product_pricelist_supplierinfo 15.0.1.0.1
OCA-git-bot 66a3a6a
Translated using Weblate (Italian)
francesco-ooops 0c9b666
[FIX]product_pricelist_supplierinfo: fix tests
GuillemCForgeFlow 4ffc54e
product_pricelist_supplierinfo 15.0.1.0.2
OCA-git-bot c1728e8
[MIG] product_pricelist_supplierinfo: Migration to 16.0
andreagidaltig f9b6b6d
[UPD] Update product_pricelist_supplierinfo.pot
af872c6
[UPD] README.rst
OCA-git-bot 360d6f9
Update translation files
weblate 62bfb68
[FIX] product_pricelist_supplierinfo: inherit the _compute_price meth…
andreagidaltig fbfbdf9
[UPD] Update product_pricelist_supplierinfo.pot
7056f8a
product_pricelist_supplierinfo 16.0.1.0.1
OCA-git-bot fad62bf
Update translation files
weblate 271bfd1
Translated using Weblate (Spanish)
Ivorra78 11dad1e
[UPD] README.rst
OCA-git-bot 5352c9c
Translated using Weblate (Portuguese (Brazil))
adrianojprado dfeb38b
Translated using Weblate (Italian)
mymage 1a57fd5
[IMP] product_pricelist_supplierinfo: pre-commit auto fixes
mdurepos 126f0bc
[MIG] product_pricelist_supplierinfo: Migration to 17.0
mdurepos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,157 @@ | ||
======================================== | ||
Supplier info prices in sales pricelists | ||
======================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:e6539df59b27f0932ee4afb66ee75503be8c81c9ec41fd11623a5abcfca59e9c | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github | ||
:target: https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_supplierinfo | ||
:alt: OCA/product-attribute | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_pricelist_supplierinfo | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows you to create a sales pricelist based on product | ||
supplierinfo prices. If you want, you can bypass minimum quantity in | ||
pricelist item. | ||
|
||
We can also define sale marging applied on purchase price directly on | ||
supplier info. For this, you must add users to "Show sale margin on | ||
Product Supplierinfo" group. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
Although this module doesn't depend technically on **Sales Management**, | ||
you must install it for configuring and seeing the effects of it. | ||
|
||
Configuration | ||
============= | ||
|
||
To configure pricelists with the new feature of this module, you need | ||
to: | ||
|
||
1. Go to *Sales > Configuration > Settings* and check "Pricelists" | ||
option and "Advanced price rules (discounts, formulas)" after that. | ||
You must have correct permissions and you must install **Sales | ||
Management** app (sale) and **Purchase** app to see these settings. | ||
2. Create or edit a Sales Pricelist at *Sales > Products > Pricelists*. | ||
3. Add or edit a pricelist item and check "Formula" option in "Price | ||
Computation" section. | ||
4. You will see the new option "Prices based on supplier info". | ||
5. If you want to bypass the "Min.Quantity" field of the supplier info | ||
and always select the lowest quantity price, check the option "Ignore | ||
Supplier Info Min. Quantity". | ||
|
||
Usage | ||
===== | ||
|
||
For adding supplier info: | ||
|
||
1. Go to *Sales > Products > Products* | ||
2. Open or create a product. | ||
3. Go to "Purchase" page. | ||
4. On "Vendors" section, add the supplier and prices. | ||
5. You can drag and drop for reordering these lines. | ||
|
||
Check the remark in known issues about the supplier info line selection. | ||
|
||
For checking pricelists in action, you can (with sale module installed): | ||
|
||
1. Go to *Sales > Orders > Quotations* | ||
2. Create or edit a quotation. | ||
3. Add a line. | ||
4. Select a product with the criteria to match the pricelist from | ||
supplier info. | ||
5. See the proper price appears in the line. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
- First line that matches by minimum quantity criteria, independently | ||
from the supplier, will be the one that provides the price for the | ||
pricelist. | ||
- There's no mechanism for selecting the supplier from possible sources | ||
like sales orders. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`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**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Tecnativa | ||
* Vauxoo | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Tecnativa <https://www.tecnativa.com/>`__: | ||
|
||
- Vicent Cubells | ||
- Pedro M. Baeza | ||
- Carlos Roca | ||
|
||
- Nikul Chaudhary <nikulchaudhary2112@gmail.com> | ||
- `TAKOBI <https://takobi.online/>`__: | ||
|
||
- Lorenzo Battistini | ||
|
||
- Andrea Gidalti <andreag@vauxoo.com> | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
.. |maintainer-luisg123v| image:: https://github.com/luisg123v.png?size=40px | ||
:target: https://github.com/luisg123v | ||
:alt: luisg123v | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-luisg123v| | ||
|
||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_supplierinfo>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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 @@ | ||
from . import models |
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,20 @@ | ||
# Copyright 2018 Tecnativa - Vicent Cubells | ||
# Copyright 2018 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Supplier info prices in sales pricelists", | ||
"summary": "Allows to create priceslists based on supplier info", | ||
"version": "17.0.1.0.0", | ||
"category": "Sales/Sales", | ||
"website": "https://github.com/OCA/product-attribute", | ||
"author": "Tecnativa, Odoo Community Association (OCA), Vauxoo", | ||
"maintainers": ["luisg123v"], | ||
"license": "AGPL-3", | ||
"depends": ["product"], | ||
"data": [ | ||
"security/res_groups.xml", | ||
"views/product_pricelist_item_views.xml", | ||
"views/product_supplierinfo_view.xml", | ||
], | ||
"installable": True, | ||
} |
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,138 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_pricelist_supplierinfo | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-02-15 17:45+0000\n" | ||
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n" | ||
"Language-Team: none\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_pricelist_item__base | ||
msgid "" | ||
"Base price for computation.\n" | ||
"Sales Price: The base price will be the Sales Price.\n" | ||
"Cost Price : The base price will be the cost price.\n" | ||
"Other Pricelist : Computation of the base price based on another Pricelist." | ||
msgstr "" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__base | ||
msgid "Based on" | ||
msgstr "Basat en" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__no_supplierinfo_min_quantity | ||
msgid "Ignore Supplier Info Min. Quantity" | ||
msgstr "Ignora la informació del proveïdor Min. Quantitat" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_supplierinfo__sale_margin | ||
msgid "Margin to apply on price to obtain sale price" | ||
msgstr "Marge a aplicar sobre el preu per obtenir el preu de venda" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,help:product_pricelist_supplierinfo.field_product_pricelist_item__filter_supplier_id | ||
msgid "Only match prices from the selected supplier" | ||
msgstr "Coincideix només amb els preus del proveïdor seleccionat" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_pricelist_item | ||
msgid "Pricelist Rule" | ||
msgstr "" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields.selection,name:product_pricelist_supplierinfo.selection__product_pricelist_item__base__supplierinfo | ||
msgid "Prices based on supplier info" | ||
msgstr "Preu basat en la informació del proveedor" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_template | ||
msgid "Product" | ||
msgstr "Producte" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_supplierinfo__sale_margin | ||
msgid "Sale Margin" | ||
msgstr "Marge de vendes" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model_terms:ir.ui.view,arch_db:product_pricelist_supplierinfo.product_supplierinfo_tree_view | ||
msgid "Sale margin" | ||
msgstr "Marge de venda" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:res.groups,name:product_pricelist_supplierinfo.group_supplierinfo_pricelist_sale_margin | ||
msgid "Show sale margin on Product Supplierinfo" | ||
msgstr "Mostra el marge de venda a la informació del proveïdor de productes" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model,name:product_pricelist_supplierinfo.model_product_supplierinfo | ||
msgid "Supplier Pricelist" | ||
msgstr "Tarifa de proveedor" | ||
|
||
#. module: product_pricelist_supplierinfo | ||
#: model:ir.model.fields,field_description:product_pricelist_supplierinfo.field_product_pricelist_item__filter_supplier_id | ||
msgid "Supplier filter" | ||
msgstr "Filtre de proveïdor" | ||
|
||
#~ msgid "Pricelist" | ||
#~ msgstr "Tarifa" | ||
|
||
#~ msgid "" | ||
#~ "<span attrs=\"{'invisible':[('base', '!=', 'supplierinfo')]}\">Supplier " | ||
#~ "price - </span>" | ||
#~ msgstr "" | ||
#~ "<span attrs=\"{'invisible':[('base', '!=', 'supplierinfo')]}\">Preu de " | ||
#~ "proveïdor - </span>" | ||
|
||
#~ msgid "" | ||
#~ "Base price for computation.\n" | ||
#~ "Public Price: The base price will be the Sale/public Price.\n" | ||
#~ "Cost Price : The base price will be the cost price.\n" | ||
#~ "Other Pricelist : Computation of the base price based on another " | ||
#~ "Pricelist." | ||
#~ msgstr "" | ||
#~ "Preu base de càlcul.\n" | ||
#~ "Preu públic: el preu base serà el preu de venda / públic.\n" | ||
#~ "Preu de cost: el preu base serà el preu de cost.\n" | ||
#~ "Una altra llista de preus: càlcul del preu base basat en una altra llista " | ||
#~ "de preus." | ||
|
||
#~ msgid "Cost" | ||
#~ msgstr "Cost" | ||
|
||
#~ msgid "Cost Price Tax Included" | ||
#~ msgstr "Preu de cost impost inclòs" | ||
|
||
#~ msgid "Other Price" | ||
#~ msgstr "Altre preu" | ||
|
||
#~ msgid "Other Pricelist" | ||
#~ msgstr "Altra tarifa" | ||
|
||
#~ msgid "Partner Prices on the product form" | ||
#~ msgstr "Preus de soci al formulari de producte" | ||
|
||
#~ msgid "Pricelist Item" | ||
#~ msgstr "Element de tarifa" | ||
|
||
#~ msgid "Product Template" | ||
#~ msgstr "Plantilla de producte" | ||
|
||
#~ msgid "Public Price" | ||
#~ msgstr "Preu públic" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the migration commit, but it should be on a separate commit that includes precommit changes. Presentation should be:
[IMP] module_name: pre-commit auto fixes
[17.0]
, this should only be included in PR's titleThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luisg123v thanks for the review. I'll correct and re-push when I get some time.