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

[16.0] web_timeline: Create record: Cannot SAVE & CLOSE #2619

Open
norlinhenrik opened this issue Sep 25, 2023 · 1 comment
Open

[16.0] web_timeline: Create record: Cannot SAVE & CLOSE #2619

norlinhenrik opened this issue Sep 25, 2023 · 1 comment
Labels

Comments

@norlinhenrik
Copy link
Contributor

When I mark an area of a timeline, I can create a new record in a popup window. But when I click SAVE & CLOSE, I get this error: Uncaught Promise > Cannot convert object of type Boolean to type Date

image

Both project_timeline and resource_booking_timeline give this bug. I have tested with python 3.11.3.

Steps to reproduce::

  1. Install project_timeline from https://github.com/OCA/project/tree/16.0.
  2. Create a project.
  3. Create a stage.
  4. Create a task with a start date and an ending date, e.g. one day period.
  5. Go to timeline view.
  6. Click on Week.
  7. Ctrl+Click in the timeline (not on your existing task) and drag the mouse to select a period of the timeline.
  8. Fill in values for your new task.
  9. Click SAVE & CLOSE.
  10. The error occurs.

As a workaround, I have created a SAVE button:

                <button
                    name="action_save"
                    class="oe_highlight"
                    string="SAVE"
                    type="object"
                />

    def action_save(self):
        pass

When I SAVE, close the popup window, select another view, and then timeline view again, the task shows in the timeline.

@unique4
Copy link

unique4 commented Dec 14, 2023

I believe this is syntax error "res_id" / "resId"

onRecordSaved: (record) => this.create_completed([record.res_id]),

dhx pushed a commit to cibex/web that referenced this issue May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants