Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][UPD] edi check: dezactivare calcul unit price #122

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions l10n_ro_edi_check/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Romania - EDI data check and queue
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0ae5b6f80e3e3d136c1b701026f7e4c17637f941d5f4d2be1edcfc851a23f084
!! source digest: sha256:2670c0de37d5788be945fc1e758bacefbe751da939ce0d106cf680fb5013779d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -22,8 +22,9 @@ Romania - EDI data check and queue

|badge1| |badge2| |badge3|

Verificare date pentru trimitere ANAF la validarea facturii
Implementare cu coada job-uri
- Verificare date pentru trimitere ANAF la validarea facturii
- Implementare cu coada job-uri
- Dezactivare recalculare pret unitar la facuri furnizor cu ID eFactura

**Table of contents**

Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_edi_check/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Romania - EDI data check and queue",
"license": "AGPL-3",
"version": "15.0.0.0.1",
"version": "15.0.0.0.2",
"author": "Terrabit," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"category": "Tools",
Expand Down
11 changes: 11 additions & 0 deletions l10n_ro_edi_check/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ def action_post(self):
errors_text = "\n".join(errors)
raise UserError(errors_text)
return res


class AccountMoveLine(models.Model):
_inherit = "account.move.line"

def _get_computed_price_unit(self):
self.ensure_one()
if self.move_id.move_type not in ["in_invoice", "in_refund"] or not self.move_id.l10n_ro_edi_download:
return super()._get_computed_price_unit()
else:
return self.price_unit
5 changes: 3 additions & 2 deletions l10n_ro_edi_check/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Verificare date pentru trimitere ANAF la validarea facturii
Implementare cu coada job-uri
- Verificare date pentru trimitere ANAF la validarea facturii
- Implementare cu coada job-uri
- Dezactivare recalculare pret unitar la facuri furnizor cu ID eFactura
11 changes: 8 additions & 3 deletions l10n_ro_edi_check/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,16 @@ <h1 class="title">Romania - EDI data check and queue</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0ae5b6f80e3e3d136c1b701026f7e4c17637f941d5f4d2be1edcfc851a23f084
!! source digest: sha256:2670c0de37d5788be945fc1e758bacefbe751da939ce0d106cf680fb5013779d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/dhongu/l10n-romania/tree/15.0/l10n_ro_edi_check"><img alt="dhongu/l10n-romania" src="https://img.shields.io/badge/github-dhongu%2Fl10n--romania-lightgray.png?logo=github" /></a></p>
<p>Verificare date pentru trimitere ANAF la validarea facturii
Implementare cu coada job-uri</p>
<blockquote>
<ul class="simple">
<li>Verificare date pentru trimitere ANAF la validarea facturii</li>
<li>Implementare cu coada job-uri</li>
<li>Dezactivare recalculare pret unitar la facuri furnizor cu ID eFactura</li>
</ul>
</blockquote>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
Loading