[IMP] account, base_import: improve accounting import

- Remove FEC from res.config.settings - everything is now linked in the import guide (in enterprise)
- Compute debit and credit from opening_balance
- Update import templates for account.account, account.move, res.partner
- Small UI changes in base_import: add an action title and improve the template button design

task-2888243

closes odoo/odoo#96291

Related: odoo/enterprise#29627
Related: odoo/upgrade#3794
Signed-off-by: Cedric Snauwaert <csn@odoo.com>
This commit is contained in:
aliya
2022-08-26 17:16:52 +02:00
parent 81c801c894
commit 514ff773a2
13 changed files with 41 additions and 34 deletions
@@ -135,7 +135,7 @@ var DataImport = AbstractAction.extend({
// import object id
this.id = null;
this.session = session;
this._title = _t('Import a File'); // Displayed in the breadcrumbs
this._title = action.name || _t('Import a File'); // Displayed in the breadcrumbs
this.do_not_change_match = false;
this.sheets = [];
this.selectionFields = {}; // Used to compute fallback values in backend.
@@ -20,7 +20,7 @@
</p>
<div class="mt16 mb4">Need Help?</div>
<div t-foreach="widget.importTemplates" t-as="template">
<a t-att-href="template.template" aria-label="Download" title="Download">
<a class="btn btn-outline-primary mb32 mt8" t-att-href="template.template" aria-label="Download" title="Download">
<i class="fa fa-download"/> <span><t t-esc="template.label"/></span>
</a>
</div>