Skip to content

Commit 55f7759

Browse files
committed
[FIX] feedback pam review
1 parent 0962ca6 commit 55f7759

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

l10n_uy_ux/data/ir_cron.xml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<field name="name">UY: Create vendor bills (sync from Uruware)</field>
55
<field name="interval_number">10</field>
66
<field name="interval_type">minutes</field>
7-
<field name="numbercall">-1</field>
87
<field name="model_id" ref="model_account_move"/>
98
<field name="state">code</field>
109
<field name="code">model.cron_l10n_uy_get_vendor_bills()</field>

l10n_uy_ux/models/account_move.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def l10n_uy_edi_action_update_dgi_state(self):
110110
super(AccountMove, sale_docs).l10n_uy_edi_action_update_dgi_state()
111111

112112
# Vendor bills
113-
vendor_docs = self.filtered(lambda x: x.journal_id.type != "purchase")
113+
vendor_docs = self.filtered(lambda x: x.journal_id.type != "sale")
114114
for bill in vendor_docs:
115115
document_number = re.search(r"([A-Z]*)([0-9]*)", bill.l10n_latam_document_number).groups()
116116
result = bill.l10n_uy_edi_document_id._ucfe_inbox("650", {
@@ -441,9 +441,7 @@ def l10n_uy_create_cfe_from_xml(self, company, root, l10n_uy_idreq, response_610
441441
"l10n_uy_cfe_xml": xml_string,
442442
"l10n_latam_document_type_id": doc.id,
443443
"journal_id": journal.id,
444-
"l10n_uy_ucfe_state": response_610.Resp.EstadoEnDgiCfeRecibido,
445-
"l10n_uy_ucfe_msg": response_610.Resp.MensajeRta,
446-
})
444+
})
447445
edi_doc = move.l10n_uy_edi_document_id._create_document(move)
448446
move.l10n_uy_edi_document_id = edi_doc
449447

0 commit comments

Comments
 (0)