Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] autofill: support date autofill #5011

Closed
wants to merge 1 commit into from
Closed

Conversation

rrahir
Copy link
Collaborator

@rrahir rrahir commented Sep 20, 2024

Task: 4173602

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 (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Sep 20, 2024

Pull request status dashboard

Copy link
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improving the autofill, this sounds easy 🙃

src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
tests/autofill/autofill_plugin.test.ts Show resolved Hide resolved
src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
@rrahir rrahir force-pushed the master-autofill-dates-rar branch 2 times, most recently from 491296d to 20a2ed0 Compare September 24, 2024 07:26
Comment on lines 140 to 142
copy() {
return DateTime.fromTimestamp(this.getTime());
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is a good method. it looks like a new constructor, and has only 1 usage...
Also, it only copies the time.

Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)
Might be worth merging in 18 ? What do you think ?

Comment on lines 134 to 136
if (group.length === 2) {
group.length * (group[1] - group[0]);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a useless if: no side effect and no return

src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
src/registries/autofill_rules.ts Outdated Show resolved Hide resolved
@rrahir
Copy link
Collaborator Author

rrahir commented Oct 1, 2024

let's go for 18.0 :o

@rrahir rrahir changed the base branch from master to 18.0 October 1, 2024 07:17
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's go for 18.0 :o

on est des fous nous 🙃
robodoo r+

@robodoo robodoo closed this in a006d0b Oct 1, 2024
@fw-bot fw-bot deleted the master-autofill-dates-rar branch October 15, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants