o-spreadsheet icon indicating copy to clipboard operation
o-spreadsheet copied to clipboard

[FIX] locale: align en_US locale to Odoo's locale

Open LucasLefevre opened this issue 2 years ago • 2 comments

The en_US default locale in o-spreadsheet is m/d/yyyy but it's mm/dd/yyyy in odoo.

Because of this mismatch, spreadsheets from the source code of odoo (dashboards, templates) will have a small warning saying the spreadsheet locale and the user locale mismatch. That's because existing spreadsheet don't have any locale and the default one is used.

This commit changes o-spreadsheet en_US locale to be the same as odoo. All new spreadsheet created will have odoo's locale anyway. (only existing ones, from the source code have the mismatch)

Description:

description of this task, what is implemented and why it is implemented that way.

Task: : TASK_ID

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_lt("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

LucasLefevre avatar Oct 16 '23 12:10 LucasLefevre

@LucasLefevre the target branch 'saas-16.4' has been disabled, you may want to close this PR.

robodoo avatar Jul 02 '24 10:07 robodoo