OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
300 stars 741 forks source link

[16.0][FIX] - Set the default date from and date to #1823

Open DucTruongKomit opened 4 months ago

DucTruongKomit commented 4 months ago

Current Behavior: When odoo only has 1 company and open Accounting -> Reporting -> Financial Assets -> Financial Assets Report. Open the wizard, the Date from and Date to does not set as default. image

Note: If there are multi company the date fields will be set as default.

AaronHForgeFlow commented 4 months ago

why not removing the groups attribute instead?

DucTruongKomit commented 4 months ago

Hi thanks for your question! I think we should not remove because for the case only 1 company(mostly happen I think), we don't need to display it.(selecting main_company by default)

If there are many company, user can select there choice.