Skip to content
Open
Show file tree
Hide file tree
Changes from 23 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
2 changes: 1 addition & 1 deletion l10n_ve_accountant/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "binaural-dev",
"website": "https://binauraldev.com/",
"category": "Accounting/Localizations/Account Chart",
"version": "1.0",
"version": "1.3",
"depends": [
"base",
"web",
Expand Down
8 changes: 0 additions & 8 deletions l10n_ve_accountant/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,6 @@ def _check_taxes_id(self):
):
raise ValidationError(_("This product must have only one tax."))

@api.constrains("currency_id")
def _check_currency_id(self):
for move in self.filtered(lambda m: m.is_invoice(include_receipts=True)):
if move.currency_id.id != self.env.company.currency_id.id:
raise ValidationError(
_("You cannot place a currency other than the base of the system.")
)

def legacy_compute_line_ids_foreign_debit_and_credit(self):
"""
This method is used to compute the foreign debit and foreign credit of the line_ids field
Expand Down
8 changes: 8 additions & 0 deletions l10n_ve_accountant/models/account_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,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
19 changes: 15 additions & 4 deletions l10n_ve_accountant/static/src/components/tax_totals/tax_totals.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @odoo-module **/

import { formatFloat, formatMonetary } from "@web/views/fields/formatters";
import { parseFloat } from "@web/views/fields/parsers";
import { formatMonetary } from "@web/views/fields/formatters";
import { standardFieldProps } from "@web/views/fields/standard_field_props";
import { registry } from "@web/core/registry";

Expand All @@ -10,12 +9,14 @@ import { patch } from "@web/core/utils/patch";
const { Component, onPatched, onWillUpdateProps, useRef, toRaw, useState } = owl;

patch(TaxTotalsComponent.prototype, {


formatData(props) {
let totals = JSON.parse(JSON.stringify(toRaw(props.record.data[this.props.name])));
if (!totals) {
return;
}
const foreignCurrencyFmtOpts = { currencyId: props.record.data.foreign_currency_id && props.record.data.foreign_currency_id[0] };
const foreignCurrencyFmtOpts = { currencyId: props.record.data.foreign_currency_id };
const currencyFmtOpts = { currencyId: props.record.data.currency_id && props.record.data.currency_id[0] };
if (totals.subtotals && Array.isArray(totals.subtotals)) {
for (let subtotal of totals.subtotals) {
Expand All @@ -35,11 +36,21 @@ patch(TaxTotalsComponent.prototype, {
totals.formatted_total_amount_currency = formatMonetary(totals.total_amount_currency, currencyFmtOpts);
this.totals = totals;
return totals;
},

formatMonetaryForeign(value) {
const currency = this.props.record.data.foreign_currency_id;
let res = formatMonetary(value, {currencyId: currency.id});

return res;
}


});

export class TaxTotalsComponents extends TaxTotalsComponent {
}
TaxTotalsComponents.template = "l10n_ve_tax.TaxForeignTotalsField";
TaxTotalsComponents.template = "l10n_ve_accountant.TaxForeignTotalsField";
TaxTotalsComponents.props = {
...standardFieldProps,
};
Expand Down
28 changes: 15 additions & 13 deletions l10n_ve_accountant/static/src/components/tax_totals/tax_totals.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

<templates xml:space="preserve">

<!-- Tax Group Component normal -->
<t
t-name="l10n_ve_accountant.TaxGroupComponent"
t-inherit="account.TaxGroupComponent"
Expand All @@ -19,18 +18,18 @@

<td class="o_tax_group">
<span class="o_tax_group_amount_value o_list_monetary">
<t t-out="props.taxGroup.formatted_base_amount_currency" style="white-space: nowrap;"/>
<t t-out="formatMonetary(props.taxGroup.base_amount_currency)" style="white-space: nowrap;"/>
</span>
</td>
</tr>
</xpath>
</t>

<t t-name="l10n_ve_tax.TaxTotalsField" t-inherit="account.TaxTotalsField" t-inherit-mode="extension" owl="1">
<!-- Discounts -->
<t t-name="l10n_ve_accountant.TaxTotalsField" t-inherit="account.TaxTotalsField" t-inherit-mode="extension" owl="1">
<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 All @@ -54,18 +53,21 @@
</tr>
</xpath>
</t>

<t t-name="l10n_ve_tax.TaxForeignTotalsField" owl="1">
<table t-if="totals" class="oe_right">
<!-- Foreign Currency Totals-->
<t t-name="l10n_ve_accountant.TaxForeignTotalsField" owl="1">
<table class="oe_right">
<tbody>
<h1>
<span t-out="totals.currency_id.symbol"/>
</h1>
<t t-foreach="totals.subtotals" t-as="subtotal" t-key="subtotal.name">
<tr>
<td class="o_td_label">
<label class="o_form_label o_tax_total_label" t-esc="subtotal.name"/>
</td>
<td class="o_list_monetary">
<span style="white-space: nowrap; font-weight: bold;"
t-out="subtotal.formatted_base_amount_foreign_currency"/>
t-out="formatMonetaryForeign(subtotal.base_amount_foreign_currency)"/>
</td>
</tr>
<t t-foreach="subtotal.tax_groups" t-as="taxGroup" t-key="taxGroup.id">
Expand All @@ -75,7 +77,7 @@
</td>
<td>
<span class="o_tax_group_amount_value o_list_monetary"
t-out="taxGroup.formatted_base_amount_foreign_currency"
t-out="formatMonetaryForeign(taxGroup.base_amount_foreign_currency)"
style="white-space: nowrap;"/>
</td>
</tr>
Expand All @@ -85,7 +87,7 @@
</td>
<td class="o_list_monetary">
<span style="white-space: nowrap;"
t-out="taxGroup.formatted_tax_amount_foreign_currency"/>
t-out="formatMonetaryForeign(taxGroup.tax_amount_foreign_currency)"/>
</td>
</tr>
</t>
Expand All @@ -96,7 +98,7 @@
</td>
<td class="o_list_monetary">
<span style="font-size: 1.3em; font-weight: bold; white-space: nowrap;"
t-out="totals.formatted_total_amount_foreign_currency"/>
t-out="formatMonetaryForeign(totals.total_amount_foreign_currency)"/>
</td>
</tr>
</tbody>
Expand Down
19 changes: 19 additions & 0 deletions l10n_ve_accountant/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,29 @@
</group>
</page>
</xpath>

<xpath expr="//page[@name='invoice_tab']"
position="inside">
<group colspan="2" class="oe_subtotal_footer oe_right">
<field name="currency_id" invisible="0" colspan="2" nolabel="1"
/>
<group class="oe_subtotal_footer oe_right"
invisible="move_type not in ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt') or payment_state == 'invoicing_legacy'">
<field name="tax_totals"
widget="account-tax-foreign-totals-field"
nolabel="1"
readonly="state != 'draft' or (move_type not in ('in_invoice', 'in_refund') and not quick_edit_mode)" />
</group>
</group>
</xpath>

<xpath expr="//page/field[@name='invoice_line_ids']/list/field[@name='price_unit']"
position="after">
<field name="foreign_price" readonly="move_type != 'in_invoice'" />
</xpath>
<xpath expr="//page/field[@name='invoice_line_ids']/list/field[@name='price_subtotal']"
position="after">

<field name="foreign_currency_id" column_invisible="True" />
<field name="foreign_subtotal"
/>
Expand All @@ -88,11 +105,13 @@
readonly="1"
/>
</xpath>

<xpath
expr="//notebook/page/field[@name='invoice_line_ids']/list/field[@name='tax_ids']"
position="attributes">
<attribute name="readonly">1</attribute>
</xpath>

<xpath expr="//page/field[@name='journal_line_ids']/list/field[@name='balance']"
position="after">
<field name="foreign_currency_id" column_invisible="True" />
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