-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][ADD] mrp_product_price_quick_menus
- Loading branch information
1 parent
886a37c
commit 6e0e2da
Showing
17 changed files
with
864 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,25 @@ | ||
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop) | ||
# @author: Quentin Dupont (quentin.dupont@grap.coop) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "MRP Product Price Quick Menus", | ||
"summary": "Adds menus to help manage price between BoMs and Products.", | ||
"version": "16.0.1.0.0", | ||
"category": "GRAP - Business", | ||
"author": "GRAP", | ||
"website": "https://github.com/grap/grap-odoo-business", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
# OCA | ||
"mrp_product_characterisation", | ||
"mrp_bom_product_price_margin", | ||
"product_margin_classification", | ||
], | ||
"data": [ | ||
"views/view_mrp_bom.xml", | ||
"views/view_product_product.xml", | ||
"views/menu.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,155 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mrp_product_price_quick_menus | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-07-09 14:32+0000\n" | ||
"PO-Revision-Date: 2024-07-09 14:32+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: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus_market_pricelist | ||
msgid "1. Set Products standard prices" | ||
msgstr "1. Rentrer les coûts des matières premières" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus_bom_prices | ||
msgid "2. Update BoMs costs" | ||
msgstr "2. Mettre à jour les coûts des Fiches techniques" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.menu_product_product_mrp_handle_prices | ||
msgid "3. Handle Products sale prices" | ||
msgstr "3. Gérer les prix des Produits finis" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Apply Margin" | ||
msgstr "Appliquer la marge" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.actions.act_window,name:mrp_product_price_quick_menus.action_mrp_bom_finished_products_price | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus_standard_prices_2b_finished | ||
msgid "BoM for finished products" | ||
msgstr "Fiche technique de produits finis" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.actions.act_window,name:mrp_product_price_quick_menus.action_mrp_bom_intermediate_products_price | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus_standard_prices_2a_intermediate | ||
msgid "BoM for intermediates products" | ||
msgstr "Fiche technique intermédiaire" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product | ||
msgid "Categ." | ||
msgstr "Catég." | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.actions.act_window,name:mrp_product_price_quick_menus.action_product_product_mrp_tree | ||
msgid "Components Products" | ||
msgstr "Matières premières" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus_1a_composants | ||
msgid "Composants products" | ||
msgstr "Matières premières" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.model.fields,field_description:mrp_product_price_quick_menus.field_product_product__date_last_statement_price | ||
msgid "Date Last Statement Price" | ||
msgstr "Relevé Prix" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.model.fields,help:mrp_product_price_quick_menus.field_product_product__date_last_statement_price | ||
msgid "" | ||
"Date of last standard price change. Automatically sets to the date of the " | ||
"day you changed the standard price" | ||
msgstr "" | ||
"Date de la dernière modification du prix de revient. Cette date est " | ||
"automatiquement fixée à la date du jour où vous l'avez modifié la dernière " | ||
"fois." | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product | ||
msgid "Date Last Statement Price" | ||
msgstr "Relevé Prix" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Decrease the Sale Price down to Theoretical Price" | ||
msgstr "Diminuer le prix jusqu'au prix théorique" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.menu_product_product_mrp_handle_prices_standard_prices_3a_finished | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_search | ||
msgid "Finished products" | ||
msgstr "Produits finis" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.ui.menu,name:mrp_product_price_quick_menus.mrp_product_price_quick_menus | ||
msgid "Handle prices" | ||
msgstr "Gérer les prix" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Increase the Sale Price up to Theoretical Price" | ||
msgstr "Augmenter le prix jusqu'au prix théorique" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "List Price" | ||
msgstr "Prix de vente" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product | ||
msgid "Price" | ||
msgstr "Prix" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Product" | ||
msgstr "Produit" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.model,name:mrp_product_price_quick_menus.model_product_product | ||
msgid "Product Variant" | ||
msgstr "Variante de produit" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model:ir.actions.act_window,name:mrp_product_price_quick_menus.action_product_product_tree_finished_products | ||
msgid "Products - Update Margin and Sale Price" | ||
msgstr "Produits - Mettre à jour la marge et le Prix de Vente" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Ref." | ||
msgstr "" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Theorical Margin (%)" | ||
msgstr "Marge théorique (%)" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Theorical Price" | ||
msgstr "Prix théorique" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product_tree | ||
msgid "Theorical difference" | ||
msgstr "Différence théorique" | ||
|
||
#. module: mrp_product_price_quick_menus | ||
#: model_terms:ir.ui.view,arch_db:mrp_product_price_quick_menus.view_mrp_product_price_quick_menus_product | ||
msgid "UoM" | ||
msgstr "UdM" |
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 product_product |
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,19 @@ | ||
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop) | ||
# @author: Quentin DUPONT (quentin.dupont@grap.coop) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import api, fields, models | ||
|
||
|
||
class ProductProduct(models.Model): | ||
_inherit = "product.product" | ||
|
||
date_last_statement_price = fields.Date( | ||
help="Date of last standard price change. " | ||
"Automatically sets to the date of the day you changed the standard price", | ||
) | ||
|
||
@api.onchange("standard_price") | ||
def _onchange_date_last_statement_price(self): | ||
for product in self: | ||
product.date_last_statement_price = fields.Date.today() |
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 @@ | ||
* Quentin Dupont (quentin.dupont@grap.coop) |
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,2 @@ | ||
Add a menu that makes it easy to calculate the sale price of a finished product | ||
(which has a Bill of Material) with the price of its components. |
Oops, something went wrong.