odoo-addon-purchase-force-invoiced 16.0.1.0.0.5__py3-none-any.whl → 16.0.1.0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ Purchase Force Invoiced
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:33e4d21d99b618cd06bc29482b353bdbba18aded09c75225848fabed7388c307
10
+ !! source digest: sha256:7d452e133208229977a8a07928757d73e70d8257c5b692e1b7b3ae8b18a9fba7
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -6,7 +6,7 @@
6
6
  "name": "Purchase Force Invoiced",
7
7
  "summary": "Allows to force the billing status of the purchase order to "
8
8
  '"Invoiced"',
9
- "version": "16.0.1.0.0",
9
+ "version": "16.0.1.0.1",
10
10
  "author": "Forgeflow, Odoo Community Association (OCA)",
11
11
  "category": "Purchase Management",
12
12
  "license": "AGPL-3",
@@ -0,0 +1,44 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * purchase_force_invoiced
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 16.0\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "PO-Revision-Date: 2023-11-02 12:36+0000\n"
10
+ "Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
11
+ "Language-Team: none\n"
12
+ "Language: fr\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: \n"
16
+ "Plural-Forms: nplurals=2; plural=n > 1;\n"
17
+ "X-Generator: Weblate 4.17\n"
18
+
19
+ #. module: purchase_force_invoiced
20
+ #: model:ir.model.fields,field_description:purchase_force_invoiced.field_purchase_order__force_invoiced
21
+ msgid "Force Invoiced"
22
+ msgstr "Forcer le statut à 'Entièrement facturé'"
23
+
24
+ #. module: purchase_force_invoiced
25
+ #: model:ir.model,name:purchase_force_invoiced.model_purchase_order
26
+ msgid "Purchase Order"
27
+ msgstr "Commande fournisseur"
28
+
29
+ #. module: purchase_force_invoiced
30
+ #: model:ir.model,name:purchase_force_invoiced.model_purchase_report
31
+ msgid "Purchase Report"
32
+ msgstr "Rapport d'achat"
33
+
34
+ #. module: purchase_force_invoiced
35
+ #: model:ir.model.fields,help:purchase_force_invoiced.field_purchase_order__force_invoiced
36
+ msgid ""
37
+ "When you set this field, the purchase order will be considered as fully "
38
+ "billed, even when there may be ordered or delivered quantities pending to "
39
+ "bill. To use this field, the order must be in 'Locked' state"
40
+ msgstr ""
41
+ "Lorsque cette option est activée, le statut de la commande fournisseur "
42
+ "basculera à 'Entièrement facturé' même s'il reste des quantités commandées "
43
+ "ou livrées à facturer. Pour utiliser cette option, la commande doit être à "
44
+ "l'état \"Verrouillé\"."
@@ -367,7 +367,7 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:33e4d21d99b618cd06bc29482b353bdbba18aded09c75225848fabed7388c307
370
+ !! source digest: sha256:7d452e133208229977a8a07928757d73e70d8257c5b692e1b7b3ae8b18a9fba7
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/purchase-workflow/tree/16.0/purchase_force_invoiced"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_force_invoiced"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>This module adds the possibility for users to force the invoice status of the
@@ -6,41 +6,48 @@ from odoo import fields
6
6
  from odoo.tests import tagged
7
7
  from odoo.tests.common import TransactionCase
8
8
 
9
+ from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
10
+
9
11
 
10
12
  @tagged("post_install", "-at_install")
11
13
  class TestPurchaseForceInvoiced(TransactionCase):
12
- def setUp(self):
13
- super(TestPurchaseForceInvoiced, self).setUp()
14
- self.purchase_order_model = self.env["purchase.order"]
15
- self.purchase_order_line_model = self.env["purchase.order.line"]
16
- self.account_invoice_model = self.env["account.move"]
17
- self.account_invoice_line = self.env["account.move.line"]
18
- self.invoice_account = self.env["account.account"].search(
14
+ @classmethod
15
+ def setUpClass(cls):
16
+ super().setUpClass()
17
+ cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
18
+ cls.purchase_order_model = cls.env["purchase.order"]
19
+ cls.purchase_order_line_model = cls.env["purchase.order.line"]
20
+ cls.account_invoice_model = cls.env["account.move"]
21
+ cls.account_invoice_line = cls.env["account.move.line"]
22
+ cls.invoice_account = cls.env["account.account"].search(
19
23
  [
20
24
  ("account_type", "=", "expense"),
21
- ("company_id", "=", self.env.company.id),
25
+ ("company_id", "=", cls.env.company.id),
22
26
  ],
23
27
  limit=1,
24
28
  )
25
29
 
26
30
  # Data
27
- product_ctg = self._create_product_category()
28
- self.service_1 = self._create_product("test_product1", product_ctg)
29
- self.service_2 = self._create_product("test_product2", product_ctg)
30
- self.customer = self._create_supplier("Test Supplier")
31
+ product_ctg = cls._create_product_category()
32
+ cls.service_1 = cls._create_product("test_product1", product_ctg)
33
+ cls.service_2 = cls._create_product("test_product2", product_ctg)
34
+ cls.customer = cls._create_supplier("Test Supplier")
31
35
 
32
- def _create_supplier(self, name):
36
+ @classmethod
37
+ def _create_supplier(cls, name):
33
38
  """Create a Partner."""
34
- return self.env["res.partner"].create(
39
+ return cls.env["res.partner"].create(
35
40
  {"name": name, "email": "example@yourcompany.com", "phone": 123456}
36
41
  )
37
42
 
38
- def _create_product_category(self):
39
- product_ctg = self.env["product.category"].create({"name": "test_product_ctg"})
43
+ @classmethod
44
+ def _create_product_category(cls):
45
+ product_ctg = cls.env["product.category"].create({"name": "test_product_ctg"})
40
46
  return product_ctg
41
47
 
42
- def _create_product(self, name, product_ctg):
43
- product = self.env["product.product"].create(
48
+ @classmethod
49
+ def _create_product(cls, name, product_ctg):
50
+ product = cls.env["product.product"].create(
44
51
  {
45
52
  "name": name,
46
53
  "categ_id": product_ctg.id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-purchase-force-invoiced
3
- Version: 16.0.1.0.0.5
3
+ Version: 16.0.1.0.1.2
4
4
  Summary: Allows to force the billing status of the purchase order to "Invoiced"
5
5
  Home-page: https://github.com/OCA/purchase-workflow
6
6
  Author: Forgeflow, Odoo Community Association (OCA)
@@ -23,7 +23,7 @@ Purchase Force Invoiced
23
23
  !! This file is generated by oca-gen-addon-readme !!
24
24
  !! changes will be overwritten. !!
25
25
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:33e4d21d99b618cd06bc29482b353bdbba18aded09c75225848fabed7388c307
26
+ !! source digest: sha256:7d452e133208229977a8a07928757d73e70d8257c5b692e1b7b3ae8b18a9fba7
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,7 +1,8 @@
1
- odoo/addons/purchase_force_invoiced/README.rst,sha256=o0gD2k5ptkVyDJJ6MnsY-1ZvuZAUe4RFqFgWO4xJrNw,3867
1
+ odoo/addons/purchase_force_invoiced/README.rst,sha256=b5FlnoNMXD75GZ3jMikcZvxRYh4sQAssP7ypqQ5FKdQ,3867
2
2
  odoo/addons/purchase_force_invoiced/__init__.py,sha256=aRNInmibTaqgcjQzJ0lXmv1U8y0u1Bvx94slUCcGyBU,112
3
- odoo/addons/purchase_force_invoiced/__manifest__.py,sha256=5KSlz3tHDb8N2xj8Z4IhaLw2aA15_4vEgykJWgweFy0,586
3
+ odoo/addons/purchase_force_invoiced/__manifest__.py,sha256=ztEHQmEdlJriIqAN7Ka0zder2v2BriJgOAmY4gkMMC4,586
4
4
  odoo/addons/purchase_force_invoiced/i18n/es.po,sha256=r6wb8xV85dC1WW8IDrTKOvLE_j3HL3TUxQBVUnCPIQE,1641
5
+ odoo/addons/purchase_force_invoiced/i18n/fr.po,sha256=o3hZxs8dlgxx6-Pe8KQ6Zpg5kWSQzSTF1EbeBRbAFG0,1682
5
6
  odoo/addons/purchase_force_invoiced/i18n/purchase_force_invoiced.pot,sha256=cb86OQ6eysPiuNrtVMnpcyZd4R6ILhCr1if1QCCW_Xk,1180
6
7
  odoo/addons/purchase_force_invoiced/i18n/zh_CN.po,sha256=FAuxJWJd593L7iuvZGHfyFRNn3qVZd_RV5NNR9NIMWk,1747
7
8
  odoo/addons/purchase_force_invoiced/model/__init__.py,sha256=KYoWTlnSSLIP3qtOBsdOIsLAcJ3CTrAaDQ6ElEL-pLk,99
@@ -12,11 +13,11 @@ odoo/addons/purchase_force_invoiced/readme/USAGE.rst,sha256=H37nzOIycshaMCm2shUL
12
13
  odoo/addons/purchase_force_invoiced/reports/__init__.py,sha256=YdNRMAZuHGqGF5XIc9V8npqCVgE3p3J3xoacuQR9C74,100
13
14
  odoo/addons/purchase_force_invoiced/reports/purchase_report.py,sha256=WCZ-rQcuZttuZIP1Q98mmpjQSyPWHatUvsvVv3mn-4Y,709
14
15
  odoo/addons/purchase_force_invoiced/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
15
- odoo/addons/purchase_force_invoiced/static/description/index.html,sha256=KZKU_YaM9LSyngxNXKNM_A8cFBRfITSwsfrrudZ_l7A,13522
16
+ odoo/addons/purchase_force_invoiced/static/description/index.html,sha256=iGNKVZWATzzJVXE_NJSrwEujJFBiZSH-8R4yUQkJpqY,13522
16
17
  odoo/addons/purchase_force_invoiced/tests/__init__.py,sha256=r-qABJGYne9MBeVXsdOhoj4SKKsF0KArfXZIkwW5X2g,113
17
- odoo/addons/purchase_force_invoiced/tests/test_purchase_force_invoiced.py,sha256=3RhsaHMYK0nNjR2OVq5woQ9xxBxqKrqzqvW_7BVnfJQ,4355
18
+ odoo/addons/purchase_force_invoiced/tests/test_purchase_force_invoiced.py,sha256=P-kI4rOqdBT1enu4PIYkGmlg_1OVXpf0Hwe9EiM4qlQ,4524
18
19
  odoo/addons/purchase_force_invoiced/view/purchase_order.xml,sha256=AeH1BCgzI22hqhJsmk-uQ3yGZJdw-dKFraw6o9uWJEs,861
19
- odoo_addon_purchase_force_invoiced-16.0.1.0.0.5.dist-info/METADATA,sha256=50dUD2Nx6MiRX46_GeZ1MzWvp6DfEWOeTfHXGDhjqKA,4462
20
- odoo_addon_purchase_force_invoiced-16.0.1.0.0.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
21
- odoo_addon_purchase_force_invoiced-16.0.1.0.0.5.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
22
- odoo_addon_purchase_force_invoiced-16.0.1.0.0.5.dist-info/RECORD,,
20
+ odoo_addon_purchase_force_invoiced-16.0.1.0.1.2.dist-info/METADATA,sha256=UoubEZ3QI36Ed76pYfbTDTW83QDkPQgGtLGeA7ABkts,4462
21
+ odoo_addon_purchase_force_invoiced-16.0.1.0.1.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
22
+ odoo_addon_purchase_force_invoiced-16.0.1.0.1.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
23
+ odoo_addon_purchase_force_invoiced-16.0.1.0.1.2.dist-info/RECORD,,