odoo-addon-l10n-ro-stock-price-difference 16.0.5.5.0__py3-none-any.whl → 16.0.5.7.0__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 @@ Romania - Stock Accounting Price Difference
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
10
+ !! source digest: sha256:71f2bd0eee1447d9927fe17bd5c1a1e42e5f5360c1f51980c1163147667c95e1
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -2,7 +2,7 @@
2
2
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
3
  {
4
4
  "name": "Romania - Stock Accounting Price Difference",
5
- "version": "16.0.5.5.0",
5
+ "version": "16.0.5.7.0",
6
6
  "category": "Localization",
7
7
  "summary": "Romania - Stock Accounting Price Difference",
8
8
  "author": "NextERP Romania," "Dorin Hongu," "Odoo Community Association (OCA)",
@@ -14,7 +14,7 @@
14
14
  "security/ir.model.access.csv",
15
15
  ],
16
16
  "installable": True,
17
- "auto_install": True,
17
+ "auto_install": False,
18
18
  "development_status": "Mature",
19
19
  "maintainers": ["feketemihai", "mcojocaru", "dhongu"],
20
20
  }
@@ -48,22 +48,23 @@ class AccountMove(models.Model):
48
48
 
49
49
  # se reevalueaza stocul
50
50
  price_diff, qty_diff = line.l10n_ro_get_stock_valuation_difference()
51
- if price_diff:
52
- valuation_stock_moves = (
53
- line._l10n_ro_get_valuation_stock_moves()
54
- )
51
+ if not price_diff:
52
+ continue
53
+
54
+ valuation_stock_moves = line._l10n_ro_get_valuation_stock_moves()
55
+ # de regula e o singura inregistrare
56
+ move_count = len(valuation_stock_moves)
57
+ for stock_move in valuation_stock_moves:
55
58
  price_diffs.append(
56
59
  {
57
60
  "invoice_id": self.id,
58
- "product_id": valuation_stock_moves.mapped(
59
- "product_id"
60
- ).id,
61
- "picking_id": valuation_stock_moves.mapped(
62
- "picking_id"
63
- ).id,
64
- "amount_difference": line.currency_id.round(price_diff),
61
+ "product_id": stock_move.product_id.id,
62
+ "picking_id": stock_move.picking_id.id,
63
+ "amount_difference": line.currency_id.round(
64
+ price_diff / move_count
65
+ ),
65
66
  "quantity_difference": float_round(
66
- qty_diff,
67
+ qty_diff / move_count,
67
68
  precision_rounding=line.product_uom_id.rounding,
68
69
  ),
69
70
  }
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -367,7 +366,7 @@ ul.auto-toc {
367
366
  !! This file is generated by oca-gen-addon-readme !!
368
367
  !! changes will be overwritten. !!
369
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
369
+ !! source digest: sha256:71f2bd0eee1447d9927fe17bd5c1a1e42e5f5360c1f51980c1163147667c95e1
371
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
371
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/l10n-romania/tree/16.0/l10n_ro_stock_price_difference"><img alt="OCA/l10n-romania" src="https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_stock_price_difference"><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/l10n-romania&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
372
  <p>The module is managing price diferences between invoices and receptions. It will create a landed cost with a “Price Difference” product available in the configuration.</p>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n-ro-stock-price-difference
3
- Version: 16.0.5.5.0
3
+ Version: 16.0.5.7.0
4
4
  Summary: Romania - Stock Accounting Price Difference
5
5
  Home-page: https://github.com/OCA/l10n-romania
6
6
  Author: NextERP Romania,Dorin Hongu,Odoo Community Association (OCA)
@@ -25,7 +25,7 @@ Romania - Stock Accounting Price Difference
25
25
  !! This file is generated by oca-gen-addon-readme !!
26
26
  !! changes will be overwritten. !!
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
- !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
28
+ !! source digest: sha256:71f2bd0eee1447d9927fe17bd5c1a1e42e5f5360c1f51980c1163147667c95e1
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
30
 
31
31
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -1,17 +1,17 @@
1
- odoo/addons/l10n_ro_stock_price_difference/README.rst,sha256=ohBEYscoVBzKMm5J1QUq2gQhhnJ4TAFByHZKvxCSz-4,3914
1
+ odoo/addons/l10n_ro_stock_price_difference/README.rst,sha256=8ySbPuJgcPTg03dm6s8fxD7SQH7JVZA4npNRIB5wrGs,3914
2
2
  odoo/addons/l10n_ro_stock_price_difference/__init__.py,sha256=R3l5zcM1DHY7iqr3kt92069kmImpPafRbNSzv6p_hBE,42
3
- odoo/addons/l10n_ro_stock_price_difference/__manifest__.py,sha256=3CjOyQVKOIQUGB1HkOvL3HSkcH9qFpYXsrrbHkTXaRk,803
3
+ odoo/addons/l10n_ro_stock_price_difference/__manifest__.py,sha256=ZbYkzaDORowQbQ9smlZJTGUwFOfGtpwF7rhCElKX1wQ,804
4
4
  odoo/addons/l10n_ro_stock_price_difference/i18n/l10n_ro_stock_price_difference.pot,sha256=3y0SlET97_jHQkhbhlXgChHyDx01ei00RDRHUvGc6uA,6781
5
5
  odoo/addons/l10n_ro_stock_price_difference/migrations/16.0.5.4.1/pre-migration.py,sha256=cXgeRsSdrg-EaHESj7jSF1S5Lq2vku5mdQZ51onsQeo,615
6
6
  odoo/addons/l10n_ro_stock_price_difference/models/__init__.py,sha256=IziDGW2M2uyUtaLJGSWQsaF6Zz4Qxrtvu9emLMLoEpI,91
7
- odoo/addons/l10n_ro_stock_price_difference/models/account_move.py,sha256=v9znStsZYsKBQnMQ3kGc2XrBGvp6UxYTY4Zf63BOzCs,4782
7
+ odoo/addons/l10n_ro_stock_price_difference/models/account_move.py,sha256=OTK37Y6ihNpgvnKexecjJb8HEWY3zzqPWvX8e4wPAhM,4853
8
8
  odoo/addons/l10n_ro_stock_price_difference/models/account_move_line.py,sha256=CgBH-Aq8uxReTIA_KMwLPquogGK5bmdIyqWfVq1y_90,6703
9
9
  odoo/addons/l10n_ro_stock_price_difference/models/stock_landed_cost.py,sha256=MADLWl4nFsYk-1fyeJalCyA0C03OaO0nPAjxuOQz74w,1063
10
10
  odoo/addons/l10n_ro_stock_price_difference/readme/CONTRIBUTORS.rst,sha256=imooaJThv-eiLh7K10cko5NoFQKfEbaU4OcGDn9WKqM,301
11
11
  odoo/addons/l10n_ro_stock_price_difference/readme/DESCRIPTION.rst,sha256=WREtcKsSvyty_YnHiOsXvzuFkD1DzE3pH0vZOmgdjzE,168
12
12
  odoo/addons/l10n_ro_stock_price_difference/security/ir.model.access.csv,sha256=ZW8flyD2rMqHfAn8i0rGfCne0MHB72OzTWPZ4D9nN5U,361
13
13
  odoo/addons/l10n_ro_stock_price_difference/static/description/icon.png,sha256=4CdJJFOkYuQjQGn_jXFOHNUE5NGjg6NQRW1lpQ7j4o4,3173
14
- odoo/addons/l10n_ro_stock_price_difference/static/description/index.html,sha256=V0CuRxK6C6-j7hb4jzeOqdwwksM8r0yy3RqJQc5ClHM,13513
14
+ odoo/addons/l10n_ro_stock_price_difference/static/description/index.html,sha256=MZ6btaCdMQzISZohLnlm_nzyUX33RxEw1bGM15JDKlY,13474
15
15
  odoo/addons/l10n_ro_stock_price_difference/tests/__init__.py,sha256=PcHbRHAWEYgzNHB4jfqDxzRCYr22mPq6ZOI621w2seE,121
16
16
  odoo/addons/l10n_ro_stock_price_difference/tests/common.py,sha256=Y-Sj9yqArm2n0pKqcIe4-d7YaJ7nMk4Hr8qLj3akpEc,1209
17
17
  odoo/addons/l10n_ro_stock_price_difference/tests/test_purchase.py,sha256=mjaVP3rB_UKTO9Ngg1dQi-1D7ZUnPuGosP9CovLJz0Q,8091
@@ -21,7 +21,7 @@ odoo/addons/l10n_ro_stock_price_difference/tests/test_sale.py,sha256=GKl253rDrnd
21
21
  odoo/addons/l10n_ro_stock_price_difference/wizard/__init__.py,sha256=c6_T4TE-Z_2FeKUsIDsq8aRC2I9ITMIJ-4WTt9Kz9og,44
22
22
  odoo/addons/l10n_ro_stock_price_difference/wizard/price_difference_confirmation.py,sha256=N8C1C-EbMQVLm3gHgkavhCV_1zl1vg5Lq4FNUxZG7VM,1301
23
23
  odoo/addons/l10n_ro_stock_price_difference/wizard/price_difference_confirmation.xml,sha256=GSszGCpYsLCJ6erqdS7oTF9EaIe25QP-QkKXopoLRig,1682
24
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.5.0.dist-info/METADATA,sha256=WjzmizJC8XSXgyMZcy-Z0xir-E4uAyQ-TmHeLT-UMOc,4618
25
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.5.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
26
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.5.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
27
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.5.0.dist-info/RECORD,,
24
+ odoo_addon_l10n_ro_stock_price_difference-16.0.5.7.0.dist-info/METADATA,sha256=13nhZrEyEYbNmqqXSP5snBtAka8xOTx5jkzfIQTPb_g,4618
25
+ odoo_addon_l10n_ro_stock_price_difference-16.0.5.7.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
26
+ odoo_addon_l10n_ro_stock_price_difference-16.0.5.7.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
27
+ odoo_addon_l10n_ro_stock_price_difference-16.0.5.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5