odoo-addon-l10n-ro-stock-price-difference 16.0.5.4.0__py3-none-any.whl → 16.0.5.5.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:62f1f2e9e5f5d164e38f3ac8cacd083003ef4cfd85e204bcdf3798acbf93ec00
10
+ !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
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.4.0",
5
+ "version": "16.0.5.5.0",
6
6
  "category": "Localization",
7
7
  "summary": "Romania - Stock Accounting Price Difference",
8
8
  "author": "NextERP Romania," "Dorin Hongu," "Odoo Community Association (OCA)",
@@ -0,0 +1,21 @@
1
+ # Copyright (C) 2023 NextERP Romania
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+ from openupgradelib import openupgrade
4
+
5
+
6
+ def migrate(cr, version):
7
+ if not version:
8
+ return
9
+
10
+ openupgrade.logged_query(
11
+ cr,
12
+ """
13
+ UPDATE stock_valuation_layer svl set
14
+ l10n_ro_invoice_id = lsvl.l10n_ro_invoice_id,
15
+ l10n_ro_invoice_line_id = lsvl.l10n_ro_invoice_line_id
16
+ FROM stock_valuation_layer lsvl
17
+ WHERE
18
+ svl.stock_valuation_layer_id = lsvl.id and
19
+ svl.description like '%Price Difference%'
20
+ """,
21
+ )
@@ -88,6 +88,7 @@ class AccountMoveLine(models.Model):
88
88
 
89
89
  def l10n_ro_modify_stock_valuation(self, val_dif):
90
90
  # se adauga la evaluarea miscarii de stoc
91
+ self.ensure_one()
91
92
  if not self.purchase_line_id:
92
93
  return 0.0
93
94
  valuation_stock_move = self.env["stock.move"].search(
@@ -120,6 +121,8 @@ class AccountMoveLine(models.Model):
120
121
  "quantity": 0,
121
122
  "remaining_qty": 0,
122
123
  "description": "Price Difference",
124
+ "l10n_ro_invoice_line_id": self.id,
125
+ "l10n_ro_invoice_id": self.move_id.id,
123
126
  }
124
127
  )
125
128
 
@@ -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:62f1f2e9e5f5d164e38f3ac8cacd083003ef4cfd85e204bcdf3798acbf93ec00
370
+ !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <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
373
  <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.4.0
3
+ Version: 16.0.5.5.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:62f1f2e9e5f5d164e38f3ac8cacd083003ef4cfd85e204bcdf3798acbf93ec00
28
+ !! source digest: sha256:55e8f9495e0010f89f8f59488422c3fe91fda2bd23809c9c821c9c9b1725aca0
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
30
 
31
31
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -1,16 +1,17 @@
1
- odoo/addons/l10n_ro_stock_price_difference/README.rst,sha256=I-Gp4NzZYG7gnG78JQee5sAJeYZzmXdO3ZXhsYv_7WM,3914
1
+ odoo/addons/l10n_ro_stock_price_difference/README.rst,sha256=ohBEYscoVBzKMm5J1QUq2gQhhnJ4TAFByHZKvxCSz-4,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=WuBV2h8WXQolwUjZi6OnOjXWWAd3VWhkLGUlMLGoNO0,803
3
+ odoo/addons/l10n_ro_stock_price_difference/__manifest__.py,sha256=3CjOyQVKOIQUGB1HkOvL3HSkcH9qFpYXsrrbHkTXaRk,803
4
4
  odoo/addons/l10n_ro_stock_price_difference/i18n/l10n_ro_stock_price_difference.pot,sha256=3y0SlET97_jHQkhbhlXgChHyDx01ei00RDRHUvGc6uA,6781
5
+ odoo/addons/l10n_ro_stock_price_difference/migrations/16.0.5.4.1/pre-migration.py,sha256=cXgeRsSdrg-EaHESj7jSF1S5Lq2vku5mdQZ51onsQeo,615
5
6
  odoo/addons/l10n_ro_stock_price_difference/models/__init__.py,sha256=IziDGW2M2uyUtaLJGSWQsaF6Zz4Qxrtvu9emLMLoEpI,91
6
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_line.py,sha256=xhxy-msz59zPXhkran_CYT7ikACYphTGqJduxh5gLF0,6570
8
+ odoo/addons/l10n_ro_stock_price_difference/models/account_move_line.py,sha256=CgBH-Aq8uxReTIA_KMwLPquogGK5bmdIyqWfVq1y_90,6703
8
9
  odoo/addons/l10n_ro_stock_price_difference/models/stock_landed_cost.py,sha256=MADLWl4nFsYk-1fyeJalCyA0C03OaO0nPAjxuOQz74w,1063
9
10
  odoo/addons/l10n_ro_stock_price_difference/readme/CONTRIBUTORS.rst,sha256=imooaJThv-eiLh7K10cko5NoFQKfEbaU4OcGDn9WKqM,301
10
11
  odoo/addons/l10n_ro_stock_price_difference/readme/DESCRIPTION.rst,sha256=WREtcKsSvyty_YnHiOsXvzuFkD1DzE3pH0vZOmgdjzE,168
11
12
  odoo/addons/l10n_ro_stock_price_difference/security/ir.model.access.csv,sha256=ZW8flyD2rMqHfAn8i0rGfCne0MHB72OzTWPZ4D9nN5U,361
12
13
  odoo/addons/l10n_ro_stock_price_difference/static/description/icon.png,sha256=4CdJJFOkYuQjQGn_jXFOHNUE5NGjg6NQRW1lpQ7j4o4,3173
13
- odoo/addons/l10n_ro_stock_price_difference/static/description/index.html,sha256=gBPxOkETMRHUq4zohU0vyxXCmTKkhcZfZEwASHDuDLc,13513
14
+ odoo/addons/l10n_ro_stock_price_difference/static/description/index.html,sha256=V0CuRxK6C6-j7hb4jzeOqdwwksM8r0yy3RqJQc5ClHM,13513
14
15
  odoo/addons/l10n_ro_stock_price_difference/tests/__init__.py,sha256=PcHbRHAWEYgzNHB4jfqDxzRCYr22mPq6ZOI621w2seE,121
15
16
  odoo/addons/l10n_ro_stock_price_difference/tests/common.py,sha256=Y-Sj9yqArm2n0pKqcIe4-d7YaJ7nMk4Hr8qLj3akpEc,1209
16
17
  odoo/addons/l10n_ro_stock_price_difference/tests/test_purchase.py,sha256=mjaVP3rB_UKTO9Ngg1dQi-1D7ZUnPuGosP9CovLJz0Q,8091
@@ -20,7 +21,7 @@ odoo/addons/l10n_ro_stock_price_difference/tests/test_sale.py,sha256=GKl253rDrnd
20
21
  odoo/addons/l10n_ro_stock_price_difference/wizard/__init__.py,sha256=c6_T4TE-Z_2FeKUsIDsq8aRC2I9ITMIJ-4WTt9Kz9og,44
21
22
  odoo/addons/l10n_ro_stock_price_difference/wizard/price_difference_confirmation.py,sha256=N8C1C-EbMQVLm3gHgkavhCV_1zl1vg5Lq4FNUxZG7VM,1301
22
23
  odoo/addons/l10n_ro_stock_price_difference/wizard/price_difference_confirmation.xml,sha256=GSszGCpYsLCJ6erqdS7oTF9EaIe25QP-QkKXopoLRig,1682
23
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.4.0.dist-info/METADATA,sha256=SaR1qHi-heHVJRmNPU9b3zVKlJWjMQbRkYCgugRXeHc,4618
24
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.4.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
25
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.4.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
26
- odoo_addon_l10n_ro_stock_price_difference-16.0.5.4.0.dist-info/RECORD,,
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,,