summaryrefslogtreecommitdiff
path: root/addons/account/wizard
diff options
context:
space:
mode:
authorBenjamin Frantzen (bfr) <bfr@odoo.com>2020-05-26 12:53:23 +0000
committerLaurent Smet <las@odoo.com>2020-08-17 10:22:01 +0000
commit013936261b26c601ce55015dbbbb99a7313a9a39 (patch)
tree5bdfc89dbdba487644c23c8dbe9b4dd31b614279 /addons/account/wizard
parent34c4752eeafc33bd88e18c7f0408dfda17dfa8d8 (diff)
[IMP] account_edi: added flows to manage web-services and payments.
Added edi.documents representing an electronic document for a move and an edi.format. A format can be asynchronous if it needs to call a web-service to generate the document, it will then be generated by the CRON (otherwise it's generated in post). The formats can support payments if needed (can be generated immediately or by the CRON). Added support for errors and related views. Setting defaults format on a journal can be done automatically (based on a hook). Added tests : xml comparaison with diff and helpers to test a EDI import/export --task: 2247368
Diffstat (limited to 'addons/account/wizard')
-rw-r--r--addons/account/wizard/account_payment_register.py1
-rw-r--r--addons/account/wizard/account_payment_register_views.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/addons/account/wizard/account_payment_register.py b/addons/account/wizard/account_payment_register.py
index 0d996f20ddc..459d8097f66 100644
--- a/addons/account/wizard/account_payment_register.py
+++ b/addons/account/wizard/account_payment_register.py
@@ -103,6 +103,7 @@ class AccountPaymentRegister(models.TransientModel):
require_partner_bank_account = fields.Boolean(
compute='_compute_show_require_partner_bank',
help="Technical field used to know whether the field `partner_bank_id` needs to be required or not in the payments form views")
+ country_code = fields.Char(related='company_id.country_id.code', readonly=True)
# -------------------------------------------------------------------------
# HELPERS
diff --git a/addons/account/wizard/account_payment_register_views.xml b/addons/account/wizard/account_payment_register_views.xml
index 15aee188635..edf4f5db2c0 100644
--- a/addons/account/wizard/account_payment_register_views.xml
+++ b/addons/account/wizard/account_payment_register_views.xml
@@ -18,6 +18,7 @@
<field name="source_currency_id" invisible="1" force_save="1"/>
<field name="company_id" invisible="1" force_save="1"/>
<field name="partner_id" invisible="1" force_save="1"/>
+ <field name="country_code" invisible="1" force_save="1"/>
<field name="show_partner_bank_account" invisible="1"/>
<field name="require_partner_bank_account" invisible="1"/>