Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
dc7c935
FEAT 58139#: binaural_mobile (Migration)
rsgg04 Oct 28, 2025
01f5231
acualizano odoo vzla
rsgg04 Oct 29, 2025
2675249
subiendo ajustes para l10n_ve_stock_account
rsgg04 Oct 29, 2025
c2e6654
[FIX]Modificando vistas. l10n_ve_accountant #58983
Ivan-Binaural Oct 28, 2025
cb5a33c
Modificando vistas. l10n_ve_accountant FIX#58983
Ivan-Binaural Oct 29, 2025
5ba2a45
FIX #57482: l10n_ve_sale
Ivan-Binaural Oct 15, 2025
780e3b7
fix horrendous syntax error...
Ivan-Binaural Oct 15, 2025
da29f4e
added test file for pricelist_domain test
Ivan-Binaural Oct 15, 2025
2f08c9c
Modificando vistas. l10n_ve_accountant FIX#58983
Ivan-Binaural Oct 29, 2025
280a110
FIX #57482: l10n_ve_sale, accountant
Ivan-Binaural Oct 29, 2025
a2cc4d7
FEAT 58139#: l10n_ve_stock_account (Migration)
rsgg04 Oct 29, 2025
713e1f3
resolviendo conflictos
rsgg04 Oct 29, 2025
b0ab901
actualizando ambiente
rsgg04 Oct 29, 2025
cc58775
[MIG] 58220 l10n_ve_purchase
Ivan-Binaural Oct 30, 2025
9487ec2
FIX #59281: l10nve_sale
Nov 1, 2025
4fd599b
FIX #59177: l10n_ve_accoutant
Ivan-Binaural Nov 3, 2025
562fe29
FIX #59362: l10n_ve_stock
Ivan-Binaural Nov 3, 2025
7350086
FEAT #0000: binaural_
Nov 4, 2025
ba6798c
[FIX]# 59362 l10n_ve_stock
Ivan-Binaural Nov 4, 2025
9aa7ebd
FEAT #59487: l10n_ve_accountant
Nov 5, 2025
566932c
[WIP] Igtf INSTALA
Sep 16, 2025
dcddf42
FIX#59584 l10_ve_invoice
Ivan-Binaural Nov 7, 2025
8afdba8
[MIG]Se inicia la migracion del flujo de igtf.
OmarYepez29 Nov 7, 2025
4fa4324
FEAT #59487: l10n_ve_invoice
Nov 7, 2025
3c4bd7b
[MIG]Se llevan los cambios de siseca para igtf a V19
OmarYepez29 Nov 7, 2025
77c9356
FIX#59569 l10n_ve_sale.
Ivan-Binaural Nov 7, 2025
02c97a4
[FIX]Corrijiendo vista del wizard de pagos.
OmarYepez29 Nov 7, 2025
35a395e
Merge branch 'dev-19_FEAT_ti_#9422_migration_stock_configurations' of…
Nov 8, 2025
9d14bbe
fixing and manifest
Nov 8, 2025
477bbec
FEAT #59280: l10n_ve_account_move_line
Nov 9, 2025
6e108b2
FEAT #1063: 1l0n_ve_stock
Nov 9, 2025
ecbd5e4
FEAT #59671: l10n_ve_stock
Nov 10, 2025
0b54c83
FEAT l10n_ve_accountant #58983
Ivan-Binaural Nov 10, 2025
835af3b
FEAT l10n_ve_accountant #58983
Ivan-Binaural Nov 2, 2025
7105c62
FEAT l10n_ve_accountant #58983
Ivan-Binaural Nov 3, 2025
621e4db
FEAT l10n_ve_accountant #58983
Ivan-Binaural Nov 10, 2025
47dcd0f
[FIX]Se coloca el _sql_constrains para no tener facturas duplicadas.
OmarYepez29 Nov 10, 2025
a4d2c19
Merge remote-tracking branch 'origin/l10n_ve_accountant_FIX#58983_amo…
OmarYepez29 Nov 10, 2025
179b601
FEAT l10n_ve_accountant #58983
Ivan-Binaural Nov 10, 2025
cc4a954
[FIX]#59695 Corrijiendo errores al intentar realizar una retencion.
OmarYepez29 Nov 10, 2025
0b549b8
Merge branch 'stg-giralda' into dev-19-MIG-IGTF-19
OmarYepez29 Nov 11, 2025
1f363ed
[MIG]Se ajusta el _get_tax_summary.
OmarYepez29 Nov 11, 2025
28cf42f
Merge branch 'dev-19' into dev-19-MIG-IGTF-19
OmarYepez29 Nov 20, 2025
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
8 changes: 4 additions & 4 deletions l10n_ve_accountant/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"web",
"account",
"account_reports",
"purchase",
"sale",
"l10n_ve_base",
"purchase",
"sale",
"l10n_ve_base",
"l10n_ve_rate",
"l10n_ve_contact",
],
Expand Down Expand Up @@ -54,5 +54,5 @@
"web.assets_backend": ["l10n_ve_accountant/static/src/components/**/*"],
},
"application": True,
"pre_init_hook": "pre_init_hook"
"pre_init_hook": "pre_init_hook",
}
83 changes: 70 additions & 13 deletions l10n_ve_accountant/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,76 @@
class AccountMove(models.Model):
_inherit = "account.move"

_sql_constraints = [
(
"unique_name",
"",
"Another entry with the same name already exists.",
),
(
"unique_name_ve",
"",
"Another entry with the same name already exists.",
),
]

def _auto_init(self):
res = super()._auto_init()
if not index_exists(self.env.cr, "account_move_unique_name_ve"):
drop_index(self.env.cr, "account_move_unique_name", self._table)
# Make all values of `name` different (naming them `name (1)`, `name (2)`...) so that
# we can add the following UNIQUE INDEX
self.env.cr.execute(
"""
WITH duplicated_sequence AS (
SELECT name, partner_id, state, journal_id
FROM account_move
WHERE state = 'posted'
AND name != '/'
AND move_type IN ('in_invoice', 'in_refund', 'in_receipt')
GROUP BY partner_id, journal_id, name, state
HAVING COUNT(*) > 1
),
to_update AS (
SELECT move.id,
move.name,
move.state,
move.date,
row_number() OVER(PARTITION BY move.name, move.partner_id, move.partner_id, move.date) AS row_seq
FROM duplicated_sequence
JOIN account_move move ON move.name = duplicated_sequence.name
AND move.partner_id = duplicated_sequence.partner_id
AND move.state = duplicated_sequence.state
AND move.journal_id = duplicated_sequence.journal_id
),
new_vals AS (
SELECT id,
name || ' (' || (row_seq-1)::text || ')' AS name
FROM to_update
WHERE row_seq > 1
)
UPDATE account_move
SET name = new_vals.name
FROM new_vals
WHERE account_move.id = new_vals.id;
"""
)

self.env.cr.execute(
"""
CREATE UNIQUE INDEX account_move_unique_name
ON account_move(
name, partner_id, company_id, journal_id
)
WHERE state = 'posted' AND name != '/';
CREATE UNIQUE INDEX account_move_unique_name_ve
ON account_move(
name, partner_id, company_id, journal_id
)
WHERE state = 'posted' AND name != '/';
"""
)
return res
def _get_fields_to_compute_lines(self):
return ["invoice_line_ids", "line_ids", "foreign_inverse_rate", "foreign_rate"]

Expand Down Expand Up @@ -304,19 +374,6 @@ def create(self, vals_list):
Ensure that the foreign_rate and foreign_inverse_rate are computed and computes the foreign
debit and foreign credit of the line_ids fields (journal entries) when the move is created.
"""
for vals in vals_list:

if 'name' in vals and vals['name'] != "/":

domain = [
('name', '=', vals['name']),
('partner_id', '=', vals.get('partner_id'))
]
existing_record = self.search(domain, limit=1)

if existing_record:
raise ValidationError(_("The operation cannot be completed: Another entry with the same name already exists."))

moves = super().create(vals_list)

for move in moves:
Expand Down
11 changes: 9 additions & 2 deletions l10n_ve_accountant/models/account_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _get_tax_totals_summary(
currency_obj=ves_currency
)


# Foraneos
res['formatted_base_amount_foreign_currency'] = formatLang(
env=self.env,
Expand Down Expand Up @@ -183,7 +184,6 @@ def _get_tax_totals_summary(
value=res_tax_group.get('base_amount', 0.0),
currency_obj=ves_currency
)

res_tax_group['formatted_tax_amount_currency_ves'] = formatLang(
env=self.env,
value=res_tax_group.get('tax_amount', 0.0),
Expand All @@ -210,7 +210,6 @@ def _get_tax_totals_summary(
value=res_tax_group.get('display_base_amount_foreign_currency', 0.0),
currency_obj=foreign_currency_id
)
_logger.warning("TOTALES FINALES CON MONEDAS: %s", res)
return res

@api.model
Expand Down Expand Up @@ -289,4 +288,12 @@ def load(field, fallback, from_base_line=False):
if k.startswith('_') and k not in base_line:
base_line[k] = v

manual_fields = (
'manual_total_excluded',
'manual_total_excluded_currency',
'manual_total_included',
'manual_total_included_currency',
)
for field in manual_fields:
base_line.setdefault(field, None)
return base_line
2 changes: 1 addition & 1 deletion l10n_ve_accountant/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _prepare_foreign_base_line_for_taxes_computation(self):
return self.env['account.tax']._prepare_foreign_base_line_for_taxes_computation(
self,
price_unit=self.foreign_price,
tax_ids=self.taxes_id,
tax_ids=self.tax_ids,
quantity=self.product_qty,
partner_id=self.order_id.partner_id,
currency_id=self.order_id.foreign_currency_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ patch(TaxTotalsComponent.prototype, {
for (let subtotal of totals.subtotals) {
subtotal.formatted_base_amount_foreign_currency = formatMonetary(subtotal.base_amount_foreign_currency, foreignCurrencyFmtOpts);
subtotal.formatted_base_amount_currency = formatMonetary(subtotal.base_amount_currency, currencyFmtOpts);
// Solo VEES
subtotal.formatted_base_amount_currency_ves = totals.formatted_base_amount_currency_ves

if (subtotal.tax_groups && Array.isArray(subtotal.tax_groups)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<templates xml:space="preserve">
<!-- Tax Group Component normal -->
<t
Expand Down Expand Up @@ -30,7 +29,7 @@
<xpath expr="//table[1]/tbody[1]/t[1]" position="before">
<tr t-if="totals.discount_amount and totals.show_discount">
<td class="o_td_label">
<label class="o_form_label o_tax_total_label">Subtotal pinga</label>
<label class="o_form_label o_tax_total_label">Subtotal</label>
</td>
<td>
<span
Expand Down
2 changes: 1 addition & 1 deletion l10n_ve_igtf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from . import wizard
from . import tests

from odoo.tools import column_exists, create_column
from odoo.tools.sql import column_exists, create_column


def pre_init_hook(env):
Expand Down
Loading