Skip to content

Commit

Permalink
Merge pull request #169 from dhongu/14.0-edi-check
Browse files Browse the repository at this point in the history
[14.0][UPD]edi_check: removed queue functions
  • Loading branch information
danila12 authored Mar 26, 2024
2 parents 24f82f2 + 012c76f commit d219361
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 72 deletions.
8 changes: 4 additions & 4 deletions l10n_ro_edi_check/README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
==================================
Romania - EDI data check and queue
==================================
========================
Romania - EDI data check
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:64be002390ade80cf4770469130e5b0e50b9baea3b341aacc737bb16788260fa
!! source digest: sha256:6159e7df78426c9f76b8e22cbafd9fede9e6c17fb6c6d1ac6d6432c9b08ef3d3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
8 changes: 3 additions & 5 deletions l10n_ro_edi_check/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# © 2024-now Dan Stoica <danila(@)terrabit(.)ro
# See README.rst file on addons root folder for license details
{
"name": "Romania - EDI data check and queue",
"name": "Romania - EDI data check",
"license": "AGPL-3",
"version": "14.0.0.0.9",
"version": "14.0.0.1.0",
"author": "Terrabit," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"category": "Tools",
"depends": [
"l10n_ro_account_edi_ubl",
"queue_job",
"queue_job_cron_jobrunner",
],
"data": [
"data/cron.xml",
"data/ir_cron.xml",
"views/account_move.xml",
],
"installable": True,
Expand Down
5 changes: 0 additions & 5 deletions l10n_ro_edi_check/data/cron.xml

This file was deleted.

7 changes: 7 additions & 0 deletions l10n_ro_edi_check/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<odoo noupdate="0">
<record id="account_edi.ir_cron_edi_network" model="ir.cron">
<field
name="code"
>model.search([('state', 'in', ('to_send', 'to_cancel'))])._process_documents_web_services(job_count=1)</field>
</record>
</odoo>
1 change: 0 additions & 1 deletion l10n_ro_edi_check/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# See README.rst file on addons root folder for license details

from . import account_move
from . import account_edi_document
from . import account_edi_format
53 changes: 0 additions & 53 deletions l10n_ro_edi_check/models/account_edi_document.py

This file was deleted.

2 changes: 2 additions & 0 deletions l10n_ro_edi_check/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def action_post(self):

def action_resend_edi(self):
self.ensure_one()
if self.l10n_ro_edi_download:
raise UserError(_("Factura {} are deja ID de download").format(self.name))
edi_document_vals_list = []
for edi_format in self.journal_id.edi_format_ids:
is_edi_needed = self.is_invoice(include_receipts=False) and edi_format._is_required_for_invoice(self)
Expand Down
8 changes: 4 additions & 4 deletions l10n_ro_edi_check/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Romania - EDI data check and queue</title>
<title>Romania - EDI data check</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,14 +360,14 @@
</style>
</head>
<body>
<div class="document" id="romania-edi-data-check-and-queue">
<h1 class="title">Romania - EDI data check and queue</h1>
<div class="document" id="romania-edi-data-check">
<h1 class="title">Romania - EDI data check</h1>

<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:64be002390ade80cf4770469130e5b0e50b9baea3b341aacc737bb16788260fa
!! source digest: sha256:6159e7df78426c9f76b8e22cbafd9fede9e6c17fb6c6d1ac6d6432c9b08ef3d3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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>
<blockquote>
Expand Down
1 change: 1 addition & 0 deletions l10n_ro_edi_check/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<field name="arch" type="xml">
<field name="payment_state" position="after">
<field name="edi_state" optional="hide" />
<field name="l10n_ro_edi_transaction" optional="hide" />
<field name="l10n_ro_edi_download" optional="hide" />
</field>
</field>
Expand Down

0 comments on commit d219361

Please sign in to comment.