diff --git a/addons/account_edi/views/account_move_views.xml b/addons/account_edi/views/account_move_views.xml
index 8e7ed38f13f..566b333de65 100644
--- a/addons/account_edi/views/account_move_views.xml
+++ b/addons/account_edi/views/account_move_views.xml
@@ -16,6 +16,8 @@
+
+
@@ -27,6 +29,21 @@
+
+
+
+
+
+
+
+ account.move.tree.inherit
+ account.move
+
+
+
+
+
+
@@ -37,7 +54,11 @@
-
+
+
+
diff --git a/addons/account_edi_proxy_client/__manifest__.py b/addons/account_edi_proxy_client/__manifest__.py
index 478a52fe9ed..26a5f826e51 100644
--- a/addons/account_edi_proxy_client/__manifest__.py
+++ b/addons/account_edi_proxy_client/__manifest__.py
@@ -18,6 +18,7 @@ Odoo database.
'data': [
'security/ir.model.access.csv',
'security/account_edi_proxy_client_security.xml',
+ 'views/account_edi_proxy_user_views.xml',
],
'installable': True,
'license': 'LGPL-3',
diff --git a/addons/account_edi_proxy_client/models/account_edi_proxy_user.py b/addons/account_edi_proxy_client/models/account_edi_proxy_user.py
index 8250d38d170..2978a58895b 100644
--- a/addons/account_edi_proxy_client/models/account_edi_proxy_user.py
+++ b/addons/account_edi_proxy_client/models/account_edi_proxy_user.py
@@ -49,6 +49,7 @@ class AccountEdiProxyClientUser(models.Model):
edi_format_code = fields.Char(related='edi_format_id.code', readonly=True)
edi_identification = fields.Char(required=True, help="The unique id that identifies this user for on the edi format, typically the vat")
private_key = fields.Binary(required=True, attachment=False, groups="base.group_system", help="The key to encrypt all the user's data")
+ private_key_filename = fields.Char(compute='_compute_private_key_filename')
refresh_token = fields.Char(groups="base.group_system")
_sql_constraints = [
@@ -56,6 +57,10 @@ class AccountEdiProxyClientUser(models.Model):
('unique_edi_identification_per_for', 'unique(edi_identification, edi_format_id)', 'This edi identification is already assigned to a user'),
]
+ def _compute_private_key_filename(self):
+ for record in self:
+ record.private_key_filename = f'{record.id_client}_{record.edi_identification}.key'
+
def _get_demo_state(self):
demo_state = self.env['ir.config_parameter'].sudo().get_param('account_edi_proxy_client.demo', False)
return 'prod' if demo_state in ['prod', False] else 'test' if demo_state == 'test' else 'demo'
diff --git a/addons/account_edi_proxy_client/views/account_edi_proxy_user_views.xml b/addons/account_edi_proxy_client/views/account_edi_proxy_user_views.xml
new file mode 100644
index 00000000000..20bdce2ec51
--- /dev/null
+++ b/addons/account_edi_proxy_client/views/account_edi_proxy_user_views.xml
@@ -0,0 +1,58 @@
+
+
+
+
+ EDI Proxy User
+ account_edi_proxy_client.user
+
+
+
+
+
+
+ EDI Proxy Users
+ account_edi_proxy_client.user
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EDI Proxy User
+ account_edi_proxy_client.user
+ tree,form
+
+
+
+
+
+
+
diff --git a/addons/l10n_it_edi/views/l10n_it_view.xml b/addons/l10n_it_edi/views/l10n_it_view.xml
index 716d81efbe9..7ba549c1c9e 100644
--- a/addons/l10n_it_edi/views/l10n_it_view.xml
+++ b/addons/l10n_it_edi/views/l10n_it_view.xml
@@ -83,6 +83,67 @@
+
+ account.move.tree.inherit
+ account.move
+
+
+
+
+
+
+
+
+
+
+ account.invoice.select.inherit
+ account.move
+
+
+
+
+
+
+
+
+
+
+ account.move.tree.inherit
+ account.move
+
+
+
+
+
+
+
+
+
+
+
+ account.move.tree.inherit
+ account.move
+
+
+
+
+
+
+
+
+
+
+ account.invoice.select.inherit
+ account.move
+
+
+
+
+
+
+
+
+
account.move.form.l10n.it
account.move
@@ -96,6 +157,7 @@
attrs="{'invisible': ['|', ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('country_code', '!=', 'IT')]}">
+