From 4920999993af89b39ce9d3b6133588b71b5770ad Mon Sep 17 00:00:00 2001 From: danila12 Date: Tue, 7 Nov 2023 15:24:01 +0200 Subject: [PATCH 1/2] removed check_valuation_layer() --- l10n_ro_stock_account_check/__manifest__.py | 2 +- .../models/__init__.py | 1 - .../models/stock_quant.py | 34 ++++++++----------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/l10n_ro_stock_account_check/__manifest__.py b/l10n_ro_stock_account_check/__manifest__.py index 9228829f..9f7e82ee 100644 --- a/l10n_ro_stock_account_check/__manifest__.py +++ b/l10n_ro_stock_account_check/__manifest__.py @@ -2,7 +2,7 @@ { "name": "Romania - Stock Accounting Check", "license": "AGPL-3", - "version": "15.0.1.0.6", + "version": "15.0.1.0.7", "author": "Terrabit,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-romania", "category": "Warehouse", diff --git a/l10n_ro_stock_account_check/models/__init__.py b/l10n_ro_stock_account_check/models/__init__.py index 3df6571b..539f5b2d 100644 --- a/l10n_ro_stock_account_check/models/__init__.py +++ b/l10n_ro_stock_account_check/models/__init__.py @@ -3,4 +3,3 @@ from . import stock_move from . import stock_picking from . import stock_quant - diff --git a/l10n_ro_stock_account_check/models/stock_quant.py b/l10n_ro_stock_account_check/models/stock_quant.py index d772a9b8..1fcf02da 100644 --- a/l10n_ro_stock_account_check/models/stock_quant.py +++ b/l10n_ro_stock_account_check/models/stock_quant.py @@ -3,28 +3,24 @@ # See README.rst file on addons root folder for license details -from odoo import _, api, fields, models -from odoo.exceptions import UserError +from odoo import models + +# from odoo.exceptions import UserError + class StockQuant(models.Model): _inherit = "stock.quant" - def action_apply_inventory(self): super().action_apply_inventory() - self.check_valuation_layer() - - def check_valuation_layer(self): - for quant in self: - # se determina cantitatea din lot - quant_qty = quant.quantity - - # se determina cantitatea din svl - - product = quant.product_id.with_context( - lot_id=quant.lot_id, - location_id=quant.location_id - ) - svl_qty = product.svl_qty - - + # self.check_valuation_layer() + + # def check_valuation_layer(self): + # for quant in self: + # # se determina cantitatea din lot + # quant_qty = quant.quantity + # + # # se determina cantitatea din svl + # + # product = quant.product_id.with_context(lot_id=quant.lot_id, location_id=quant.location_id) + # svl_qty = product.svl_qty From d33e63b63788651237bfed1d5e5b9bcd811b37e4 Mon Sep 17 00:00:00 2001 From: danila12 Date: Tue, 7 Nov 2023 15:39:13 +0200 Subject: [PATCH 2/2] upd pre-commit --- .pre-commit-config.yaml | 20 ++++----- .../README.rst | 9 ++-- .../mt940.py | 2 +- .../static/description/index.html | 34 +++++++------- .../README.rst | 9 ++-- .../account_bank_statement_import_csv.py | 3 +- .../models/account_journal.py | 2 +- .../static/description/index.html | 36 ++++++++------- .../README.rst | 9 ++-- .../models/account_bank_statement_import.py | 2 +- .../models/mt940.py | 4 +- .../static/description/index.html | 34 +++++++------- .../tests/test_import_bank_statement.py | 2 +- .../README.rst | 9 ++-- .../models/account_bank_statement_import.py | 2 +- .../models/account_journal.py | 2 +- .../static/description/index.html | 36 ++++++++------- .../tests/test_import_bank_statement.py | 2 +- .../README.rst | 9 ++-- .../account_bank_statement_import_xlsx.py | 6 +-- .../models/account_journal.py | 2 +- .../static/description/index.html | 36 ++++++++------- l10n_ro_account_report/README.rst | 9 ++-- .../static/description/index.html | 34 +++++++------- l10n_ro_balance_confirmation/README.rst | 9 ++-- .../models/res_partner.py | 2 +- .../static/description/index.html | 36 ++++++++------- l10n_ro_duk_integrator/README.rst | 9 ++-- .../static/description/index.html | 34 +++++++------- .../wizard/duk_integrator.py | 3 +- l10n_ro_edi_ubl/README.rst | 9 ++-- l10n_ro_edi_ubl/models/account_edi_format.py | 7 +-- l10n_ro_edi_ubl/models/account_move.py | 2 +- l10n_ro_edi_ubl/static/description/index.html | 34 +++++++------- l10n_ro_footer_anpc/README.rst | 9 ++-- .../static/description/index.html | 36 ++++++++------- l10n_ro_intrastat/README.rst | 9 ++-- l10n_ro_intrastat/models/account_move.py | 2 +- l10n_ro_intrastat/models/sale_order.py | 2 +- .../static/description/index.html | 36 ++++++++------- l10n_ro_intrastat/tests/test_intrastat.py | 2 +- .../wizard/intrastat_xml_declaration.py | 1 - l10n_ro_intrastat_xml/README.rst | 9 ++-- .../static/description/index.html | 36 ++++++++------- l10n_ro_intrastat_xml/tests/test_intrastat.py | 2 +- .../wizard/intrastat_xml_declaration.py | 1 - l10n_ro_invoice_report/README.rst | 9 ++-- .../models/account_invoice.py | 6 +-- .../report/account_invoice.py | 1 - .../static/description/index.html | 34 +++++++------- l10n_ro_journal_register/README.rst | 32 ++++---------- .../report/journal_register_report.py | 25 +++-------- .../report/journal_register_report_view.xml | 13 +----- .../static/description/index.html | 15 +++---- .../tests/test_journal_register.py | 44 ++++--------------- .../README.rst | 9 ++-- .../models/res_partner.py | 2 +- .../static/description/index.html | 34 +++++++------- l10n_ro_reconcile_order/README.rst | 9 ++-- .../static/description/index.html | 30 +++++++------ l10n_ro_sale_order_report/README.rst | 9 ++-- .../static/description/index.html | 34 +++++++------- l10n_ro_stock_account_check/README.rst | 9 ++-- .../report/stock_check_report.py | 3 +- .../static/description/index.html | 32 +++++++------- l10n_ro_stock_invoice/README.rst | 9 ++-- l10n_ro_stock_invoice/models/stock_picking.py | 2 +- .../static/description/index.html | 36 ++++++++------- l10n_ro_stock_picking_report/README.rst | 9 ++-- .../models/account_invoice.py | 2 +- .../models/purchase.py | 3 +- l10n_ro_stock_picking_report/models/stock.py | 2 +- .../report/stock_picking_cumulative.py | 3 +- .../static/description/index.html | 34 +++++++------- .../README.rst | 9 ++-- .../static/description/index.html | 34 +++++++------- terrabit_dvi/README.rst | 9 ++-- terrabit_dvi/models/stock_landed_cost.py | 5 +-- terrabit_dvi/static/description/index.html | 34 +++++++------- terrabit_dvi/tests/test_dvi.py | 2 +- terrabit_dvi/wizard/account_dvi.py | 6 +-- terrabit_report_trial_balance/README.rst | 9 ++-- .../report/trial_balance.py | 2 - .../static/description/index.html | 34 +++++++------- .../tests/abstract_test.py | 2 +- .../tests/test_trial_balance.py | 2 +- terrabit_stock_report/README.rst | 9 ++-- .../report/daily_stock_report.py | 5 +-- .../report/storage_sheet_report.py | 3 +- .../static/description/index.html | 38 ++++++++-------- .../tests/test_report_storage_sheet.py | 2 +- 91 files changed, 641 insertions(+), 617 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5941e9d5..fb7c724b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ default_language_version: node: "14.13.0" repos: - repo: https://github.com/OCA/maintainer-tools - rev: 16ef7b874ff0366f3137e5faff8fcad44ac14485 # This is just an example; you must use a tag/commit instead! + rev: 568cacd1d6eef453063a524a5ce63dcd49c7259b # This is just an example; you must use a tag/commit instead! hooks: # Use each script's `--help` to understand the args - id: oca-gen-addon-readme @@ -51,24 +51,24 @@ repos: language: fail files: "\\.rej$" - repo: https://github.com/oca/maintainer-tools - rev: 16ef7b874ff0366f3137e5faff8fcad44ac14485 + rev: 568cacd1d6eef453063a524a5ce63dcd49c7259b hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website args: ["https://github.com/OCA/l10n-romania"] - repo: https://github.com/myint/autoflake - rev: v1.4 + rev: v2.2.1 hooks: - id: autoflake args: ["-i", "--ignore-init-module-imports"] - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 23.10.1 hooks: - id: black args: [-l 120] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.7.1 + rev: v3.0.3 hooks: - id: prettier name: prettier + plugin-xml @@ -78,7 +78,7 @@ repos: args: - --plugin=@prettier/plugin-xml - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.22.0 + rev: v8.53.0 hooks: - id: eslint verbose: true @@ -86,7 +86,7 @@ repos: - --color - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: trailing-whitespace # exclude autogenerated files @@ -108,7 +108,7 @@ repos: - id: mixed-line-ending args: ["--fix=lf"] - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.15.0 hooks: - id: pyupgrade @@ -133,14 +133,14 @@ repos: # - "# generated from manifests external_dependencies" - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 6.1.0 hooks: - id: flake8 name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - repo: https://github.com/OCA/pylint-odoo - rev: 7.0.2 + rev: v9.0.0 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/account_bank_statement_import_mt940_base/README.rst b/account_bank_statement_import_mt940_base/README.rst index 5b73ae8c..3efe4318 100644 --- a/account_bank_statement_import_mt940_base/README.rst +++ b/account_bank_statement_import_mt940_base/README.rst @@ -2,10 +2,13 @@ MT940 Bank Statements Import ============================ -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:416644028558b80bdbb18618e9e3224050646d61984c991710c84671bd7ec7fb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -17,7 +20,7 @@ MT940 Bank Statements Import :target: https://github.com/dhongu/l10n-romania/tree/15.0/account_bank_statement_import_mt940_base :alt: dhongu/l10n-romania -|badge1| |badge2| |badge3| +|badge1| |badge2| |badge3| This module provides a generic parser for MT940 files. Given that MT940 is a non-open non-standard of pure evil in the way that every bank cooks up its own @@ -37,7 +40,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/account_bank_statement_import_mt940_base/mt940.py b/account_bank_statement_import_mt940_base/mt940.py index 1338d34b..11173fc6 100644 --- a/account_bank_statement_import_mt940_base/mt940.py +++ b/account_bank_statement_import_mt940_base/mt940.py @@ -83,7 +83,7 @@ def handle_common_subfields(transaction, subfields): transaction["ref"] = "".join(subfields[transaction["ref"]]) -class MT940(object): +class MT940: """Inherit this class in your account_banking.parsers.models.parser, define functions to handle the tags you need to handle and adjust static variables as needed. diff --git a/account_bank_statement_import_mt940_base/static/description/index.html b/account_bank_statement_import_mt940_base/static/description/index.html index 753efbc2..11ad0e05 100644 --- a/account_bank_statement_import_mt940_base/static/description/index.html +++ b/account_bank_statement_import_mt940_base/static/description/index.html @@ -1,20 +1,20 @@ - + - + MT940 Bank Statements Import