Post by Terence »

That one is fixed in version 1.2.4 see patch above in function 'def get_assignment'. I think Odoo store will pull the latest sources within a few hours


Post by visiniaga »

so I get confused, which version that you mention it is already resolved?

https://apps.odoo.com/apps/modules/14.0/bryntum_gantt_enterprise/

stil showing version 1.2.3

Attachments
Screenshot 2021-09-21 8.25.44 PM.png
Screenshot 2021-09-21 8.25.44 PM.png (169.23 KiB) Viewed 1369 times

Post by Terence »

I have pushed the fix to the Odoo store yesterday, Odoo pulls the latest code once a time within 24 hours. That means you have to wait until the Odoo store refreshes. That means you have to wait until you see version 1.2.4.

Or change to function which caused the error with the code I have posted above meanwhile.


Post by visiniaga »

Which one? I have compare controller.py from version 1.2.3 with code you have posted previous, thats already the same.


Post by Terence »

Yes is it? Can you post it?

@staticmethod
    def get_assignment(assignment, task):

    if len(assignment.resource.ids) > 0:
        resource = assignment.resource
        prefix = 'u_'

    if len(assignment.resource_base.ids) > 0:
        resource = assignment.resource_base
        prefix = 'r_'

    resource_id = prefix + str(resource.id)

    return {
            'id': '%d-%s' % (task.id, resource_id),
            'resource': resource_id,
            'event': task.id,
            'units': assignment.units
            }

Prefix

prefix = 'u_'

is missing in version 1.2.3. After you made the change update the module.


Post by visiniaga »

Hi Terrence,

thanks a lot, yes that resolved the problem.
just to note that:

  • request for the curve s for the gantt chart
  • and ability to print / export excel & pdf will be Great

Post by Terence »

Good to hear! We are continuously working on improvements. The s curve is not currently on the list.

Export not likely before Q2 next year since pure client side export will take quite some time to implement. If you are interested in sponsoring those features, please reach out to us (use Contact form)


Post Reply