Skip to content

Commit f92edd3

Browse files
committed
[ADD]stock_archive_constraint: add French translation
1 parent 96dcbea commit f92edd3

3 files changed

Lines changed: 111 additions & 11 deletions

File tree

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_archive_constraint
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-05-09 10:19+0000\n"
10+
"PO-Revision-Date: 2025-05-09 10:19+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: stock_archive_constraint
19+
#: model:ir.model.fields,field_description:stock_archive_constraint.field_res_company__active_stock_constraint
20+
msgid "Active Stock constraint on product archive action"
21+
msgstr "Activer la contrainte de stock sur l'action d'archivage de produits"
22+
23+
#. module: stock_archive_constraint
24+
#: model:ir.model,name:stock_archive_constraint.model_stock_location
25+
msgid "Inventory Locations"
26+
msgstr "Emplacements des stocks"
27+
28+
#. module: stock_archive_constraint
29+
#: code:addons/stock_archive_constraint/models/stock_location.py:0
30+
#, python-format
31+
msgid ""
32+
"It is not possible to archive location '%(display_name)s' which has "
33+
"associated picking lines."
34+
msgstr ""
35+
"Il n'est pas possible d'archiver un emplacement ('%(display_name)s') "
36+
"auquel sont associées des lignes de transfert"
37+
38+
#. module: stock_archive_constraint
39+
#: code:addons/stock_archive_constraint/models/stock_location.py:0
40+
#, python-format
41+
msgid ""
42+
"It is not possible to archive location '%(display_name)s' which has "
43+
"associated stock quantities."
44+
msgstr ""
45+
"Il n'est pas possible d'archiver un emplacement ('%(display_name)s') "
46+
"auquel sont associées des quantités de stock"
47+
48+
#. module: stock_archive_constraint
49+
#: code:addons/stock_archive_constraint/models/stock_location.py:0
50+
#, python-format
51+
msgid ""
52+
"It is not possible to archive location '%(display_name)s' which has "
53+
"associated stock reservations."
54+
msgstr ""
55+
"Il n'est pas possible d'archiver un emplacement ('%(display_name)s') "
56+
"auquel sont associées des réservations de stock"
57+
58+
#. module: stock_archive_constraint
59+
#: code:addons/stock_archive_constraint/models/product_product.py:0
60+
#, python-format
61+
msgid ""
62+
"It is not possible to archive product '%(display_name)s' which has "
63+
"associated picking lines."
64+
msgstr ""
65+
"Il n'est pas possible d'archiver un produit ('%(display_name)s') "
66+
"auquel sont associées des lignes de transfert"
67+
68+
#. module: stock_archive_constraint
69+
#: code:addons/stock_archive_constraint/models/product_product.py:0
70+
#, python-format
71+
msgid ""
72+
"It is not possible to archive product '%(display_name)s' which has "
73+
"associated stock quantities."
74+
msgstr ""
75+
"Il n'est pas possible d'archiver un produit ('%(display_name)s') "
76+
"auquel sont associées des quantités de stock"
77+
78+
#. module: stock_archive_constraint
79+
#: code:addons/stock_archive_constraint/models/product_product.py:0
80+
#, python-format
81+
msgid ""
82+
"It is not possible to archive product '%(display_name)s' which has "
83+
"associated stock reservations."
84+
msgstr ""
85+
"Il n'est pas possible d'archiver un produit ('%(display_name)s') "
86+
"auquel sont associées des réservations de stock"
87+
88+
#. module: stock_archive_constraint
89+
#: model:ir.model,name:stock_archive_constraint.model_product_product
90+
msgid "Product"
91+
msgstr ""

stock_archive_constraint/i18n/stock_archive_constraint.pot

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 15.0\n"
7+
"Project-Id-Version: Odoo Server 14.0\n"
88
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-05-09 10:19+0000\n"
10+
"PO-Revision-Date: 2025-05-09 10:19+0000\n"
911
"Last-Translator: \n"
1012
"Language-Team: \n"
1113
"MIME-Version: 1.0\n"
1214
"Content-Type: text/plain; charset=UTF-8\n"
1315
"Content-Transfer-Encoding: \n"
1416
"Plural-Forms: \n"
1517

18+
#. module: stock_archive_constraint
19+
#: model:ir.model.fields,field_description:stock_archive_constraint.field_res_company__active_stock_constraint
20+
msgid "Active Stock constraint on product archive action"
21+
msgstr ""
22+
1623
#. module: stock_archive_constraint
1724
#: model:ir.model,name:stock_archive_constraint.model_stock_location
1825
msgid "Inventory Locations"

stock_archive_constraint/tests/test_location_archive_constraint.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ def setUpClass(cls):
2424
def _create_product(self, name):
2525
product_form = Form(self.env["product.product"])
2626
product_form.name = name
27-
product_form.type = "product"
28-
return product_form.save()
27+
product = product_form.save()
28+
product.type = "product"
29+
return product
2930

3031
def _create_stock_location(self, name):
3132
stock_location_form = Form(self.env["stock.location"])
@@ -44,13 +45,15 @@ def _create_stock_quant(self, location_id, product_id, qty):
4445
)
4546

4647
def _create_stock_move(self, location_id, location_dest_id, product_id, qty):
47-
stock_move_form = Form(self.env["stock.move"])
48-
stock_move_form.name = product_id.display_name
49-
stock_move_form.location_id = location_id
50-
stock_move_form.location_dest_id = location_dest_id
51-
stock_move_form.product_id = product_id
52-
stock_move_form.product_uom_qty = qty
53-
stock_move = stock_move_form.save()
48+
stock_move = self.env["stock.move"].create(
49+
{
50+
"name": product_id.display_name,
51+
"location_id": location_id.id,
52+
"location_dest_id": location_dest_id.id,
53+
"product_id": product_id.id,
54+
"product_uom_qty": qty,
55+
}
56+
)
5457
stock_move._action_done()
5558

5659
def _create_stock_move_line(self, location_id, location_dest_id, product_id, qty):
@@ -60,7 +63,6 @@ def _create_stock_move_line(self, location_id, location_dest_id, product_id, qty
6063
"location_id": location_id.id,
6164
"location_dest_id": location_dest_id.id,
6265
"product_id": product_id.id,
63-
"product_uom_qty": qty,
6466
"product_uom_id": product_id.uom_id.id,
6567
"qty_done": qty,
6668
"state": "done",

0 commit comments

Comments
 (0)