diff options
| author | Florian Gilbert <flg@odoo.com> | 2019-10-11 14:04:44 +0000 |
|---|---|---|
| committer | Florian Gilbert <flg@odoo.com> | 2019-12-04 13:47:28 +0000 |
| commit | ed26e9eafa31dd8bcaea491b2a6dcd1728a90bd0 (patch) | |
| tree | 76e502d54192ef1c75d0704216ac844096e262e6 /addons/account/wizard | |
| parent | 51d020e5fa82ca4d935fe2420711b8365b5e5621 (diff) | |
[IMP] account: Various usability improvements
List of improvements:
Invoice/Bill
- Hide "untaxed amount" section when there is no tax.
- Remove tooltips for tax groups field.
- Remove invoice_partner_icon and set this icon in "Vendor" (in a list view)
Chart of Accounts
- Same views for config bar and regulare one
- By default don't show deprecated accounts and add filter to display them.
- Add some optional fields in list view (taxes, tags, ...)
Dashboard opening balance wizard
- The opening move entry date equals to the opening date - 1 day.
Bank Statements
- Set default order for the list view (by date desc and name desc)
Tax report configuration:
Add 3 new columns for the list view (country_id, code, tag_name)
Add 4 new searchs (name, tag_name, code, country_id)
Task ID: 2048225
closes odoo/odoo#38694
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/account/wizard')
| -rw-r--r-- | addons/account/wizard/setup_wizards.py | 7 | ||||
| -rw-r--r-- | addons/account/wizard/setup_wizards_view.xml | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/addons/account/wizard/setup_wizards.py b/addons/account/wizard/setup_wizards.py index e54f38a0ea8..1925d5f9750 100644 --- a/addons/account/wizard/setup_wizards.py +++ b/addons/account/wizard/setup_wizards.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from datetime import date +from datetime import date, timedelta from odoo import _, api, fields, models from odoo.exceptions import ValidationError @@ -47,9 +47,12 @@ class FinancialYearOpeningWizard(models.TransientModel): # one value at a time... so it is likely to fail. for wiz in self: wiz.company_id.write({ - 'account_opening_date': vals.get('opening_date') or wiz.company_id.account_opening_date, 'fiscalyear_last_day': vals.get('fiscalyear_last_day') or wiz.company_id.fiscalyear_last_day, 'fiscalyear_last_month': vals.get('fiscalyear_last_month') or wiz.company_id.fiscalyear_last_month, + 'account_opening_date': vals.get('opening_date'), + }) + wiz.company_id.account_opening_move_id.write({ + 'date': fields.Date.from_string(vals.get('opening_date')) - timedelta(days=1), }) vals.pop('opening_date', None) vals.pop('fiscalyear_last_day', None) diff --git a/addons/account/wizard/setup_wizards_view.xml b/addons/account/wizard/setup_wizards_view.xml index 9ae9c8d00da..8e6c02f1e28 100644 --- a/addons/account/wizard/setup_wizards_view.xml +++ b/addons/account/wizard/setup_wizards_view.xml @@ -73,13 +73,16 @@ <field name="name">account.setup.opening.move.line.tree</field> <field name="model">account.account</field> <field name="arch" type="xml"> - <tree editable="top" create="1" delete="1" decoration-muted="opening_debit == 0 and opening_credit == 0"> + <tree editable="top" create="1" delete="1" multi_edit="1" decoration-muted="opening_debit == 0 and opening_credit == 0"> <field name="code"/> <field name="name"/> <field name="user_type_id"/> <field name="reconcile" widget="boolean_toggle"/> <field name="opening_debit"/> <field name="opening_credit"/> + <field name="tax_ids" optional="hide" widget="many2many_tags"/> + <field name="tag_ids" optional="hide" widget="many2many_tags"/> + <field name="allowed_journal_ids" optional="hide" widget="many2many_tags"/> <button name="action_read_account" type="object" icon="fa-expand" title="Open" aria-label="Open" class="float-right"/> </tree> </field> |
