odoo-addon-purchase-force-invoiced 15.0.1.0.1.3__py3-none-any.whl → 15.0.1.0.2.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.
- odoo/addons/purchase_force_invoiced/README.rst +1 -1
- odoo/addons/purchase_force_invoiced/__manifest__.py +1 -1
- odoo/addons/purchase_force_invoiced/i18n/es.po +16 -11
- odoo/addons/purchase_force_invoiced/i18n/purchase_force_invoiced.pot +7 -8
- odoo/addons/purchase_force_invoiced/i18n/zh_CN.po +7 -8
- odoo/addons/purchase_force_invoiced/static/description/index.html +1 -1
- odoo/addons/purchase_force_invoiced/tests/test_purchase_force_invoiced.py +33 -19
- {odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info → odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info}/METADATA +4 -7
- {odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info → odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info}/RECORD +11 -11
- {odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info → odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info}/WHEEL +1 -1
- {odoo_addon_purchase_force_invoiced-15.0.1.0.1.3.dist-info → odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
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.
|
|
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",
|
|
@@ -21,6 +21,13 @@ msgstr ""
|
|
|
21
21
|
msgid "Force Invoiced"
|
|
22
22
|
msgstr "Facturación forzosa"
|
|
23
23
|
|
|
24
|
+
#. module: purchase_force_invoiced
|
|
25
|
+
#: model:ir.model.fields,help:purchase_force_invoiced.field_purchase_order__force_invoiced
|
|
26
|
+
msgid ""
|
|
27
|
+
"If true, the order is marked forced only when all lines are fully invoiced "
|
|
28
|
+
"and at least one line was manually forced."
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
24
31
|
#. module: purchase_force_invoiced
|
|
25
32
|
#: model:ir.model,name:purchase_force_invoiced.model_purchase_order
|
|
26
33
|
msgid "Purchase Order"
|
|
@@ -31,14 +38,12 @@ msgstr "orden de compra"
|
|
|
31
38
|
msgid "Purchase Report"
|
|
32
39
|
msgstr "Informe de compra"
|
|
33
40
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"de facturar. Para utilizar este campo, el pedido debe estar en estado "
|
|
44
|
-
"'Bloqueado'"
|
|
41
|
+
#~ msgid ""
|
|
42
|
+
#~ "When you set this field, the purchase order will be considered as fully "
|
|
43
|
+
#~ "billed, even when there may be ordered or delivered quantities pending to "
|
|
44
|
+
#~ "bill. To use this field, the order must be in 'Locked' state"
|
|
45
|
+
#~ msgstr ""
|
|
46
|
+
#~ "Al configurar este campo, el pedido se considerará facturado en su "
|
|
47
|
+
#~ "totalidad, aunque puedan quedar cantidades pedidas o entregadas "
|
|
48
|
+
#~ "pendientes de facturar. Para utilizar este campo, el pedido debe estar en "
|
|
49
|
+
#~ "estado 'Bloqueado'"
|
|
@@ -18,6 +18,13 @@ msgstr ""
|
|
|
18
18
|
msgid "Force Invoiced"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
+
#. module: purchase_force_invoiced
|
|
22
|
+
#: model:ir.model.fields,help:purchase_force_invoiced.field_purchase_order__force_invoiced
|
|
23
|
+
msgid ""
|
|
24
|
+
"If true, the order is marked forced only when all lines are fully invoiced "
|
|
25
|
+
"and at least one line was manually forced."
|
|
26
|
+
msgstr ""
|
|
27
|
+
|
|
21
28
|
#. module: purchase_force_invoiced
|
|
22
29
|
#: model:ir.model,name:purchase_force_invoiced.model_purchase_order
|
|
23
30
|
msgid "Purchase Order"
|
|
@@ -27,11 +34,3 @@ msgstr ""
|
|
|
27
34
|
#: model:ir.model,name:purchase_force_invoiced.model_purchase_report
|
|
28
35
|
msgid "Purchase Report"
|
|
29
36
|
msgstr ""
|
|
30
|
-
|
|
31
|
-
#. module: purchase_force_invoiced
|
|
32
|
-
#: model:ir.model.fields,help:purchase_force_invoiced.field_purchase_order__force_invoiced
|
|
33
|
-
msgid ""
|
|
34
|
-
"When you set this field, the purchase order will be considered as fully "
|
|
35
|
-
"billed, even when there may be ordered or delivered quantities pending to "
|
|
36
|
-
"bill. To use this field, the order must be in 'Locked' state"
|
|
37
|
-
msgstr ""
|
|
@@ -21,6 +21,13 @@ msgstr ""
|
|
|
21
21
|
msgid "Force Invoiced"
|
|
22
22
|
msgstr ""
|
|
23
23
|
|
|
24
|
+
#. module: purchase_force_invoiced
|
|
25
|
+
#: model:ir.model.fields,help:purchase_force_invoiced.field_purchase_order__force_invoiced
|
|
26
|
+
msgid ""
|
|
27
|
+
"If true, the order is marked forced only when all lines are fully invoiced "
|
|
28
|
+
"and at least one line was manually forced."
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
24
31
|
#. module: purchase_force_invoiced
|
|
25
32
|
#: model:ir.model,name:purchase_force_invoiced.model_purchase_order
|
|
26
33
|
msgid "Purchase Order"
|
|
@@ -31,14 +38,6 @@ msgstr "采购订单"
|
|
|
31
38
|
msgid "Purchase Report"
|
|
32
39
|
msgstr ""
|
|
33
40
|
|
|
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
|
-
|
|
42
41
|
#~ msgid "Force invoiced"
|
|
43
42
|
#~ msgstr "强制开具发票"
|
|
44
43
|
|
|
@@ -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:
|
|
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&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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
32
|
+
cls.env.ref("account.data_account_type_revenue").id,
|
|
22
33
|
),
|
|
23
|
-
("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 =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
45
|
+
@classmethod
|
|
46
|
+
def _create_supplier(cls, name):
|
|
35
47
|
"""Create a Partner."""
|
|
36
|
-
return
|
|
48
|
+
return cls.env["res.partner"].create(
|
|
37
49
|
{"name": name, "email": "example@yourcompany.com", "phone": 123456}
|
|
38
50
|
)
|
|
39
51
|
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
45
|
-
|
|
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,18 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name: odoo-addon-
|
|
3
|
-
Version: 15.0.1.0.
|
|
2
|
+
Name: odoo-addon-purchase_force_invoiced
|
|
3
|
+
Version: 15.0.1.0.2.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)
|
|
7
7
|
Author-email: support@odoo-community.org
|
|
8
8
|
License: AGPL-3
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Programming Language :: Python
|
|
11
10
|
Classifier: Framework :: Odoo
|
|
12
11
|
Classifier: Framework :: Odoo :: 15.0
|
|
13
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
14
13
|
Requires-Python: >=3.8
|
|
15
|
-
Requires-Dist: odoo
|
|
14
|
+
Requires-Dist: odoo<15.1dev,>=15.0a
|
|
16
15
|
|
|
17
16
|
=======================
|
|
18
17
|
Purchase Force Invoiced
|
|
@@ -23,7 +22,7 @@ Purchase Force Invoiced
|
|
|
23
22
|
!! This file is generated by oca-gen-addon-readme !!
|
|
24
23
|
!! changes will be overwritten. !!
|
|
25
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
26
|
-
!! source digest: sha256:
|
|
25
|
+
!! source digest: sha256:e177aa1f2febd2eab12a534dbd305d01f8f690996ed2613f9b81a71cf49a0d19
|
|
27
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
27
|
|
|
29
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -113,5 +112,3 @@ promote its widespread use.
|
|
|
113
112
|
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/15.0/purchase_force_invoiced>`_ project on GitHub.
|
|
114
113
|
|
|
115
114
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
116
|
-
|
|
117
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
odoo/addons/purchase_force_invoiced/README.rst,sha256=
|
|
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=
|
|
4
|
-
odoo/addons/purchase_force_invoiced/i18n/es.po,sha256=
|
|
5
|
-
odoo/addons/purchase_force_invoiced/i18n/purchase_force_invoiced.pot,sha256=
|
|
6
|
-
odoo/addons/purchase_force_invoiced/i18n/zh_CN.po,sha256=
|
|
3
|
+
odoo/addons/purchase_force_invoiced/__manifest__.py,sha256=JfOFg2NAhqHpAblZdlcnP3onYd6ZO6iD5XBnuPrhiqk,585
|
|
4
|
+
odoo/addons/purchase_force_invoiced/i18n/es.po,sha256=GBdfpZr5MaJKhM8EykAyG0OzgVM_59laLmLi8aIdYeg,1796
|
|
5
|
+
odoo/addons/purchase_force_invoiced/i18n/purchase_force_invoiced.pot,sha256=ZbIbvFj1U5Scg1N9K9fHlNs7L3qTRALVuzlWJNSlV7g,1088
|
|
6
|
+
odoo/addons/purchase_force_invoiced/i18n/zh_CN.po,sha256=RhH1pH-q9lla28CVt0q_HrbV1FyFF7VRx0R7b-G4Oko,1655
|
|
7
7
|
odoo/addons/purchase_force_invoiced/model/__init__.py,sha256=XtveCIHLYj_TlIFFjAqRB2fpq1votsHYZfAh2RZR1j8,93
|
|
8
8
|
odoo/addons/purchase_force_invoiced/model/purchase.py,sha256=tNXM_zruVEveo5C4TrX4NUQxjHp2Rve_IdxLZ_JPAyo,880
|
|
9
9
|
odoo/addons/purchase_force_invoiced/readme/CONTRIBUTORS.rst,sha256=MM_mUjOb2EE-v0t-4PZQWjlNrNFYeuFCqEP8D7VEx-g,103
|
|
@@ -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=
|
|
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=
|
|
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.
|
|
20
|
-
odoo_addon_purchase_force_invoiced-15.0.1.0.
|
|
21
|
-
odoo_addon_purchase_force_invoiced-15.0.1.0.
|
|
22
|
-
odoo_addon_purchase_force_invoiced-15.0.1.0.
|
|
19
|
+
odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info/METADATA,sha256=1tDsgwyd1yVJ9RsYG4PgRA5iWMdstaPZjgJV5VfhaJ4,4440
|
|
20
|
+
odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
21
|
+
odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
22
|
+
odoo_addon_purchase_force_invoiced-15.0.1.0.2.2.dist-info/RECORD,,
|