Skip to content

Commit

Permalink
[MIG] l10n_es_facturae: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiadavid committed Jan 2, 2023
1 parent 1f0ae40 commit 222d1e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l10n_es_facturae/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{
"name": "Creación de Facturae",
"version": "15.0.1.4.0",
"version": "16.0.1.0.0",
"author": "ASR-OSS, "
"FactorLibre, "
"Tecon, "
Expand Down
4 changes: 2 additions & 2 deletions l10n_es_facturae/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import base64
from datetime import timedelta
from unittest import mock

import xmlsig
from lxml import etree
from mock import patch

from odoo import exceptions, fields
from odoo.tools.misc import mute_logger
Expand Down Expand Up @@ -262,7 +262,7 @@ def test_facturae_with_attachments(self):
self.move.action_post()
self.move.name = "2999/99999"
self.partner.attach_invoice_as_annex = True
with patch(
with mock.patch(
"odoo.addons.base.models.ir_actions_report.IrActionsReport._render_qweb_pdf"
) as ptch:
ptch.return_value = (b"1234", "pdf")
Expand Down
1 change: 1 addition & 0 deletions l10n_es_facturae/views/account_move_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
icon="fa-tags"
attrs="{'column_invisible': [('parent.facturae','=', False)]}"
type="object"
title="Edit"
/>
</xpath>
<notebook position="inside">
Expand Down
7 changes: 4 additions & 3 deletions l10n_es_facturae/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<field name="inherit_id" ref="account.view_partner_property_form" />
<field name="priority">99</field>
<field name="type">form</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]" />
<field name="arch" type="xml">
<xpath expr="//field[@name='child_ids']/form/sheet/group" position="inside">
<group>
<group groups="account.group_account_invoice">
<group
string="Facturae"
attrs="{'invisible': ['|', ('parent.facturae', '=', False), ('type', '!=', 'invoice')]}"
Expand All @@ -25,13 +24,15 @@
</group>
</xpath>
<group name='accounting_entries' position="inside">
<field name="facturae" />
<field name="facturae" groups="account.group_account_invoice" />
</group>
<group name="accounting_entries" position="after">
<field name="facturae" invisble="1" />
<group
name="group_facturae"
string="Facturae"
attrs="{'invisible': [('facturae', '=', False)]}"
groups="account.group_account_invoice"
>
<field name="facturae_version" />
<field
Expand Down

0 comments on commit 222d1e7

Please sign in to comment.