Coder Social home page Coder Social logo

openerp-booking-chart's Introduction

License: AGPL-3

Build Status

OPENERP BOOKING CHART

Introduction

The Booking Chart View provide an overview in a calendar for any OpenERP resources, you can have different type of resource booking in your calendar and you can freely associate them to any resources listed in rows.

Video Demo

Features

  • Display any resources in a booking chart
  • 2 display modes: by days or by hours
  • Easy scrolling navigation
  • Resource lazy loading
  • Zoom levels (from 1 week to 6 months)
  • Auto-merge overlapping resources
  • Native OpenERP search/group supported on listed resources
  • Manual period selection
  • Period freeze/unfreeze button
  • Mixin to link any OpenERP model with resources booking

Key concepts

The booking chart is decoupled from OpenERP models, by this way you are totally free to display any resources in your chart, the counterpart is that you have to code the link between OpenERP models and your booking chart.

We decide to go on this direction instead of having an OpenERP gantt-like configuration in arch tag because our module need to link booking chart to multiple models, with different logics, and it's hard to achieve this with just some configuration.

openerp-booking-chart's People

Contributors

nguyenminhchien avatar sbevnc avatar tungocbui avatar yelizariev avatar zazabe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openerp-booking-chart's Issues

Wrong render when duration is > 24h

I get a big bug on the booking chart module when e create a tv show or a task that the duration is bigger than 24h, if i schedule another task for the second day of the first task, the calendar shows the second task much dar ahead than it should. Graficly the second task apears 1-2 days ahead than it actually should be. Please how can i resolve this?

1

Error while testing demo_show

Good afternoon,
I want to apply the module that you created, but ran into some errors. I corrected some of them myself, but I do not know what to do now. Screenshot attached.
Please, help.
error demo

Drag & Drop

Sorry if this is not an issue but I'm not sure where to comment or ask.

I wanted to know if dragging and dropping to reschedule a booking is possible?

add booking from chart

Is there a way to add booking (resource in your terms I guess) from chart view or chart is read-only?
Do you have plan to implement it? Is it easy to do?

Simple chart

Hi,
is it possibile to use the openerp-booking-chart in order to display a simple task view through your wonderful chart? (without resources and without handling the sync between model and booking.resource)
I checked a demo_task module, but I don't want to link any resources to my task.

Cheers.

Error installing

Cannot read property 'module' of undefined.

/* /booking_chart/static/src/js/widgets/chart.js defined in bundle 'web.assets_backend' */
openerp.unleashed.module('booking_chart').(...)

booking_chart and odoo

Can you tell me how to use your chart module in openerp V8, is it enough to change openerp.py file in your module or there is some work to be done od javascript

Multiple charts

Hello,
first of all, thanks for your awesome chart. It's incredible.
I've implemented two modules with one chart on each module. When I change between charts (they are on different menu items), only the first chart who click on it displays the records.
In order to show the records on the second chart, I should refresh the page (for destroying the chart object).
I've tried to add a condition to destroy the object and resend the action when the chart model changes on init/start method of booking.js, but always throws an error, goes to infinite recursively or nothing happens.

//defined as global variable on top:
last_view_model = 0;

do_reload: function(){
  if (this.getParent() != undefined){
    var view_manager = this.getParent(), action_manager = view_manager.getParent();
    if (last_view_model != view_manager.action.res_model){
      last_view_model = view_manager.action.res_model;
      this.destroy();
      action_manager.do_action(view_manager.action);
    }
  }
},

I think I should destroy the UnleashedView instead the custom view.
Thanks for your time and any hints to continue?

Does not work in linux?

I installed it in windows sucessfully, but in linux, i get this error:

Uncaught TypeError: Cannot read property 'module' of undefined
openerp.unleashed.module

why the booking view_type is not registered ?

Hi, When i try to install the demo and the module installed ok but when i try to access the menu
(project->project tasks by user) , i am using Chrome developer tool to debug , some how when
calling instance.web.Registry , get_object , the this.map[key](key confirmed is) but the
this.map , cannot find the booking view_type ?

Can you advice why wasn't the booking view_type isn't registered ?
is it the web_unleashed no longer work with the latest version 7 updated code ?

Support for Weeks

Hi, this is more an enhancement, or feature request :
Would it take much to represent weeks in the calendar view as in the attached image ?
I'd love to collaborate but don't know where to start ...
Cheers.
calendar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.