Skip to content

Commit

Permalink
[14.0][ADD] product_pricelist_last_purchase_price: In partner new fie…
Browse files Browse the repository at this point in the history
…lds: "Not Update Price From Order", and "Not Update Price From Invoice".
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Nov 27, 2024
1 parent 3d3e61d commit 96f182b
Show file tree
Hide file tree
Showing 15 changed files with 563 additions and 0 deletions.
39 changes: 39 additions & 0 deletions product_pricelist_last_purchase_price/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=====================================
Product pricelist last purchase price
=====================================

* In partner new fields: "Not Update Price From Order", and "Not Update Price
From Invoice". These 2 fields are of type "related" in "Supplier Pricelist".
* When a purchase order is confirmed, the supplier/product exists in "Supplier
Pricelist", and is not marked as "Not Update Price From Order", information
will be updated in "Supplier Pricelist".
* When a supplier invoice is confirmed, and the supplier/product does not exist
in "Supplier Pricelist", the information will be posted in "Supplier
Pricelist".
* When a supplier invoice is confirmed, the supplier/product exists in "Supplier
Pricelist", and is not marked as "Not Update Price From Invoice", information
will be updated in "Supplier Pricelist".


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/odoo-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Contributors
------------

* Ana Juaristi <anajuaristi@avanzosc.es>
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
1 change: 1 addition & 0 deletions product_pricelist_last_purchase_price/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions product_pricelist_last_purchase_price/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Pricelist Last Purchase Price",
"version": "14.0.1.0.0",
"category": "Inventory/Purchase",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/odoo-addons",
"depends": ["account", "purchase_update_pricelist"],
"data": [
"views/res_partner_views.xml",
"views/product_supplierinfo_views.xml",
],
"installable": True,
}
86 changes: 86 additions & 0 deletions product_pricelist_last_purchase_price/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_last_purchase_price
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-26 06:22+0000\n"
"PO-Revision-Date: 2024-09-26 06:22+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_res_partner
msgid "Contact"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__display_name
msgid "Display Name"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__id
msgid "ID"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_invoice
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Invoice"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_order
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Order"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Invoice"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Order"
msgstr ""
86 changes: 86 additions & 0 deletions product_pricelist_last_purchase_price/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_last_purchase_price
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-26 06:23+0000\n"
"PO-Revision-Date: 2024-09-26 06:23+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__id
msgid "ID"
msgstr "Identificación"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_account_move
msgid "Journal Entry"
msgstr "Asiento contable"

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_invoice
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Invoice"
msgstr "No actualizar precio desde factura"

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_order
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Order"
msgstr "No actualizar precio desde pedido"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_purchase_order
msgid "Purchase Order"
msgstr "Pedido de compra"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr "Tarifa de proveedor"

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Invoice"
msgstr "Actualizar precio desde factura"

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Order"
msgstr "Actualizar precio desde pedido"
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_last_purchase_price
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-26 06:22+0000\n"
"PO-Revision-Date: 2024-09-26 06:22+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_res_partner
msgid "Contact"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__display_name
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__display_name
msgid "Display Name"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order__id
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__id
msgid "ID"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_account_move____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_purchase_order____last_update
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_invoice
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_invoice
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Invoice"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_product_supplierinfo__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_partner__not_update_price_from_order
#: model:ir.model.fields,field_description:product_pricelist_last_purchase_price.field_res_users__not_update_price_from_order
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Not Update Price From Order"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model:ir.model,name:product_pricelist_last_purchase_price.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Invoice"
msgstr ""

#. module: product_pricelist_last_purchase_price
#: model_terms:ir.ui.view,arch_db:product_pricelist_last_purchase_price.view_res_partner_filter
msgid "Update Price From Order"
msgstr ""
4 changes: 4 additions & 0 deletions product_pricelist_last_purchase_price/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import res_partner
from . import product_supplierinfo
from . import purchase_order
from . import account_move
Loading

0 comments on commit 96f182b

Please sign in to comment.