-
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] purchase_quick: Migration to 16.0
- Loading branch information
1 parent
61f1414
commit 2473f33
Showing
8 changed files
with
71 additions
and
91 deletions.
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
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
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * quick_purchase | ||
# * purchase_quick | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-01 09:09+0000\n" | ||
"PO-Revision-Date: 2021-11-30 13:56+0000\n" | ||
"Last-Translator: Kévin Roche <[email protected]>\n" | ||
"POT-Creation-Date: 2024-02-09 22:03+0000\n" | ||
"PO-Revision-Date: 2024-02-09 22:03+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: fr\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" | ||
"Plural-Forms: \n" | ||
|
||
#. module: purchase_quick | ||
#: model_terms:ir.ui.view,arch_db:purchase_quick.view_purchase_form | ||
|
@@ -35,12 +33,14 @@ msgid "For current supplier" | |
msgstr "Ce Fournisseur" | ||
|
||
#. module: purchase_quick | ||
#. odoo-python | ||
#: code:addons/purchase_quick/models/purchase_order.py:0 | ||
#, python-format | ||
msgid "" | ||
"Must have only 1 line per product for mass addition, but there are {nr_lines}" | ||
"s lines for the product %(product)s" | ||
msgstr "" | ||
"Must have only 1 line per product for mass addition, but there are " | ||
"%(nr_lines)s lines for the product %(product_name)s" | ||
msgstr "Il doit y avoir seulement une ligne par produit pour l'addition en masse, mais il y a" | ||
" %(nr_lines)s lignes pour le produit %(product_name)s" | ||
|
||
#. module: purchase_quick | ||
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase | ||
|
@@ -54,12 +54,13 @@ msgstr "Ligne de Commande" | |
|
||
#. module: purchase_quick | ||
#: model:ir.model,name:purchase_quick.model_product_product | ||
msgid "Product" | ||
msgstr "Article" | ||
msgid "Product Variant" | ||
msgstr "Variante de produit" | ||
|
||
#. module: purchase_quick | ||
#. odoo-python | ||
#: code:addons/purchase_quick/models/purchase_order.py:0 | ||
#, fuzzy, python-format | ||
#, python-format | ||
msgid "Product Variants" | ||
msgstr "Articles" | ||
|
||
|
@@ -71,7 +72,7 @@ msgstr "Bon de commande" | |
#. module: purchase_quick | ||
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__seller_price | ||
msgid "Seller Price" | ||
msgstr "" | ||
msgstr "Prix fournisseur" | ||
|
||
#. module: purchase_quick | ||
#: model:ir.model.fields,help:purchase_quick.field_product_product__po_line_ids | ||
|
@@ -81,35 +82,9 @@ msgstr "Technique : utilisé pour calculer les quantités à acheter." | |
#. module: purchase_quick | ||
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase | ||
msgid "UoM" | ||
msgstr "" | ||
msgstr "UdM" | ||
|
||
#. module: purchase_quick | ||
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__variant_specific_seller_ids | ||
msgid "Variant Specific Seller" | ||
msgstr "" | ||
|
||
#, fuzzy | ||
#~ msgid "Products for purchase" | ||
#~ msgstr "Qté à acheter" | ||
|
||
#~ msgid "Add product" | ||
#~ msgstr "Ajouter des articles" | ||
|
||
#~ msgid "Filter the product that are in current purchase" | ||
#~ msgstr "Afficher uniquement les articles de la commande d'achat encours" | ||
|
||
#~ msgid "In current purchase" | ||
#~ msgstr "Commande encours" | ||
|
||
#~ msgid "Po line ids" | ||
#~ msgstr "Ligne d'achats" | ||
|
||
#~ msgid "Purchase Products" | ||
#~ msgstr "Articles à acheter" | ||
|
||
#~ msgid "" | ||
#~ "Set this quantity to create a new purchase line for this product or " | ||
#~ "update the existing one." | ||
#~ msgstr "" | ||
#~ "Renseigner cette valeur pour créer une nouvelle ligne d'achat ou mettre à " | ||
#~ "jour la ligne dans la commande en cours" | ||
msgstr "Fournisseur spécifique pour cette variante" |
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
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
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 |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
# @author Pierrick Brun <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | ||
|
||
from collections import OrderedDict | ||
|
||
from odoo import _, models | ||
from odoo.exceptions import ValidationError | ||
|
||
|
@@ -41,23 +39,19 @@ def _get_quick_line(self, product): | |
raise ValidationError( | ||
_( | ||
"Must have only 1 line per product for mass addition, but " | ||
"there are {nr_lines}s lines for the product %(product)s" | ||
"there are %(nr_lines)s lines for the product %(product_name)s", | ||
nr_lines=nr_lines, | ||
product_name=product.display_name, | ||
) | ||
% { | ||
"nr_lines": nr_lines, | ||
"product": product.display_name, | ||
} | ||
) | ||
return result | ||
|
||
def _get_quick_line_qty_vals(self, product): | ||
return OrderedDict( | ||
{ | ||
"product_id": None, | ||
"product_uom": product.quick_uom_id.id, | ||
"product_qty": product.qty_to_process, | ||
} | ||
) | ||
return { | ||
"product_id": None, | ||
"product_uom": product.quick_uom_id.id, | ||
"product_qty": product.qty_to_process, | ||
} | ||
|
||
def _complete_quick_line_vals(self, vals, lines_key=""): | ||
# This params are need for playing correctly the onchange | ||
|
Oops, something went wrong.