odoo-addon-purchase-force-invoiced 15.0.1.0.1.3__py3-none-any.whl → 15.0.1.0.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.

Potentially problematic release.


This version of odoo-addon-purchase-force-invoiced might be problematic. Click here for more details.

@@ -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:90e82cc76ac89eb8761c4e55b3490320de9e6d74f17ac93f303e4faefb79a1d7
10
+ !! source digest: sha256:e177aa1f2febd2eab12a534dbd305d01f8f690996ed2613f9b81a71cf49a0d19
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": "15.0.1.0.1",
9
+ "version": "15.0.1.0.2",
10
10
  "author": "Forgeflow, Odoo Community Association (OCA)",
11
11
  "category": "Purchase Management",
12
12
  "license": "AGPL-3",
@@ -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:90e82cc76ac89eb8761c4e55b3490320de9e6d74f17ac93f303e4faefb79a1d7
370
+ !! source digest: sha256:e177aa1f2febd2eab12a534dbd305d01f8f690996ed2613f9b81a71cf49a0d19
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/15.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-15-0/purchase-workflow-15-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=15.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
@@ -7,42 +7,56 @@ from odoo.tests.common import TransactionCase
7
7
 
8
8
 
9
9
  class TestPurchaseForceInvoiced(TransactionCase):
10
- def setUp(self):
11
- super(TestPurchaseForceInvoiced, self).setUp()
12
- self.purchase_order_model = self.env["purchase.order"]
13
- self.purchase_order_line_model = self.env["purchase.order.line"]
14
- self.account_invoice_model = self.env["account.move"]
15
- self.account_invoice_line = self.env["account.move.line"]
16
- self.invoice_account = self.env["account.account"].search(
10
+ @classmethod
11
+ def setUpClass(cls):
12
+ super().setUpClass()
13
+ # Remove this variable in v16 and put instead:
14
+ # from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
15
+ DISABLED_MAIL_CONTEXT = {
16
+ "tracking_disable": True,
17
+ "mail_create_nolog": True,
18
+ "mail_create_nosubscribe": True,
19
+ "mail_notrack": True,
20
+ "no_reset_password": True,
21
+ }
22
+ cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
23
+ cls.purchase_order_model = cls.env["purchase.order"]
24
+ cls.purchase_order_line_model = cls.env["purchase.order.line"]
25
+ cls.account_invoice_model = cls.env["account.move"]
26
+ cls.account_invoice_line = cls.env["account.move.line"]
27
+ cls.invoice_account = cls.env["account.account"].search(
17
28
  [
18
29
  (
19
30
  "user_type_id",
20
31
  "=",
21
- self.env.ref("account.data_account_type_revenue").id,
32
+ cls.env.ref("account.data_account_type_revenue").id,
22
33
  ),
23
- ("company_id", "=", self.env.company.id),
34
+ ("company_id", "=", cls.env.company.id),
24
35
  ],
25
36
  limit=1,
26
37
  )
27
38
 
28
39
  # Data
29
- product_ctg = self._create_product_category()
30
- self.service_1 = self._create_product("test_product1", product_ctg)
31
- self.service_2 = self._create_product("test_product2", product_ctg)
32
- self.customer = self._create_supplier("Test Supplier")
40
+ product_ctg = cls._create_product_category()
41
+ cls.service_1 = cls._create_product("test_product1", product_ctg)
42
+ cls.service_2 = cls._create_product("test_product2", product_ctg)
43
+ cls.customer = cls._create_supplier("Test Supplier")
33
44
 
34
- def _create_supplier(self, name):
45
+ @classmethod
46
+ def _create_supplier(cls, name):
35
47
  """Create a Partner."""
36
- return self.env["res.partner"].create(
48
+ return cls.env["res.partner"].create(
37
49
  {"name": name, "email": "example@yourcompany.com", "phone": 123456}
38
50
  )
39
51
 
40
- def _create_product_category(self):
41
- product_ctg = self.env["product.category"].create({"name": "test_product_ctg"})
52
+ @classmethod
53
+ def _create_product_category(cls):
54
+ product_ctg = cls.env["product.category"].create({"name": "test_product_ctg"})
42
55
  return product_ctg
43
56
 
44
- def _create_product(self, name, product_ctg):
45
- product = self.env["product.product"].create(
57
+ @classmethod
58
+ def _create_product(cls, name, product_ctg):
59
+ product = cls.env["product.product"].create(
46
60
  {
47
61
  "name": name,
48
62
  "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: 15.0.1.0.1.3
3
+ Version: 15.0.1.0.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:90e82cc76ac89eb8761c4e55b3490320de9e6d74f17ac93f303e4faefb79a1d7
26
+ !! source digest: sha256:e177aa1f2febd2eab12a534dbd305d01f8f690996ed2613f9b81a71cf49a0d19
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/purchase_force_invoiced/README.rst,sha256=OxydF3YbJiOpDr-XpCsq66199CiPl9tKIoe_b5pSSuw,3867
1
+ odoo/addons/purchase_force_invoiced/README.rst,sha256=jY1e4CDuEV9JpUACfDZev9DB0BzkkYAx4od0Kq6iW3U,3867
2
2
  odoo/addons/purchase_force_invoiced/__init__.py,sha256=aRNInmibTaqgcjQzJ0lXmv1U8y0u1Bvx94slUCcGyBU,112
3
- odoo/addons/purchase_force_invoiced/__manifest__.py,sha256=XM2P4IFxOjmMbRkAuGXqg4FK6F3up_ljXeQ98EU_lFM,585
3
+ odoo/addons/purchase_force_invoiced/__manifest__.py,sha256=JfOFg2NAhqHpAblZdlcnP3onYd6ZO6iD5XBnuPrhiqk,585
4
4
  odoo/addons/purchase_force_invoiced/i18n/es.po,sha256=ig2S0Rz5CCVqRlSdziiQH7BtnszzNl13mTrsUHxQ68w,1626
5
5
  odoo/addons/purchase_force_invoiced/i18n/purchase_force_invoiced.pot,sha256=Xcgmuwfxh7gab_1NpEwTa_9Q4LKzJjGG8CaD7Wk7THc,1180
6
6
  odoo/addons/purchase_force_invoiced/i18n/zh_CN.po,sha256=FAuxJWJd593L7iuvZGHfyFRNn3qVZd_RV5NNR9NIMWk,1747
@@ -12,11 +12,11 @@ odoo/addons/purchase_force_invoiced/readme/USAGE.rst,sha256=H37nzOIycshaMCm2shUL
12
12
  odoo/addons/purchase_force_invoiced/reports/__init__.py,sha256=YdNRMAZuHGqGF5XIc9V8npqCVgE3p3J3xoacuQR9C74,100
13
13
  odoo/addons/purchase_force_invoiced/reports/purchase_report.py,sha256=WCZ-rQcuZttuZIP1Q98mmpjQSyPWHatUvsvVv3mn-4Y,709
14
14
  odoo/addons/purchase_force_invoiced/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
15
- odoo/addons/purchase_force_invoiced/static/description/index.html,sha256=wly-hIOiuMOWmnCHXP24pmGvUlPsEDUE-eX-mhP1rB0,13522
15
+ odoo/addons/purchase_force_invoiced/static/description/index.html,sha256=PXiCuGCqIy3gNVm3neu1nSTsfqE8rNpP3V5DGftdRLw,13522
16
16
  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=SuKbvGmwIKBErw6sMUYWieuJxDNBBzl9Q2IBLgxZICA,5334
17
+ odoo/addons/purchase_force_invoiced/tests/test_purchase_force_invoiced.py,sha256=wHkyt9q0KQN7wh2onA0T7MzUj6h-pTNPmSdEUeya-1w,5805
18
18
  odoo/addons/purchase_force_invoiced/view/purchase_view.xml,sha256=WkRCZrep2Nc5PFKlXLleucU19LyHmdisUrLCFv-Fno4,674
19
- odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info/METADATA,sha256=Qi9XHmR4qBd5UkM0eDXvf1Jxt9fp5HJqRFSWjMokLNU,4461
20
- odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
21
- odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
22
- odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info/RECORD,,
19
+ odoo_addon_purchase_force_invoiced-15.0.1.0.2.dist-info/METADATA,sha256=_pX8bG_CAHs0od1Pr0Taq-k3SOcGeN4zRdhJoaTjzFs,4459
20
+ odoo_addon_purchase_force_invoiced-15.0.1.0.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
21
+ odoo_addon_purchase_force_invoiced-15.0.1.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
22
+ odoo_addon_purchase_force_invoiced-15.0.1.0.2.dist-info/RECORD,,