From 77b089958d575e7d97a18cbc8e3bac8e555dc84b Mon Sep 17 00:00:00 2001 From: danila12 Date: Thu, 27 Jun 2024 16:52:46 +0300 Subject: [PATCH] adaugare conditie de context pt. stergere, ca in standard --- l10n_ro_payment_to_statement/__manifest__.py | 2 +- .../models/account_payment.py | 1 + .../static/description/index.html | 11 +++++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/l10n_ro_payment_to_statement/__manifest__.py b/l10n_ro_payment_to_statement/__manifest__.py index 704b5ef44..30bd1f0a5 100644 --- a/l10n_ro_payment_to_statement/__manifest__.py +++ b/l10n_ro_payment_to_statement/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Romania - Payment to Statement", "summary": "Add payment to cash statement", - "version": "16.0.2.11.0", + "version": "16.0.2.11.1", "author": "Terrabit," "NextERP Romania," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-romania", "category": "Accounting", diff --git a/l10n_ro_payment_to_statement/models/account_payment.py b/l10n_ro_payment_to_statement/models/account_payment.py index 93bfd5424..bc825df63 100644 --- a/l10n_ro_payment_to_statement/models/account_payment.py +++ b/l10n_ro_payment_to_statement/models/account_payment.py @@ -111,6 +111,7 @@ def unlink(self): and payment.name and payment.name != "/" and payment.journal_id.type == "cash" + and not self._context.get("force_delete", False) ): raise UserError( _( diff --git a/l10n_ro_payment_to_statement/static/description/index.html b/l10n_ro_payment_to_statement/static/description/index.html index 26d295932..b6390edd8 100644 --- a/l10n_ro_payment_to_statement/static/description/index.html +++ b/l10n_ro_payment_to_statement/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -421,7 +422,9 @@

Authors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.