Giter Club home page Giter Club logo

calendar's People

Contributors

abdawone avatar carmenbianca avatar chienandalu avatar eugenichafer avatar gurneyalex avatar hbrunn avatar hparfr avatar huguesdk avatar ivorra78 avatar jguenat avatar joao-p-marques avatar oca-git-bot avatar oca-travis avatar pedrobaeza avatar remi-filament avatar sbidoul avatar victoralmau avatar weblate avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calendar's Issues

[15.0] null value in column "partner_id" violates not-null constraint

We have followed the guide on how to synchronize odoo and microsoft calendar.
https://www.odoo.com/documentation/15.0/applications/general/calendars/outlook/outlook_calendar.html
Synchronization seems to be working. But every time the calendar plugin is loaded for one of our users the following popup shows up.
image
Note that for our other users the synchronization works without any issues.
Below the log output of odoo.

2021-10-20 09:24:33,497 485359 INFO TowerEye werkzeug: 84.196.36.57 - - [20/Oct/2021 09:24:33] "POST /microsoft_calendar/sync_data HTTP/1.0" 200 - 362 0.142 1.238
2021-10-20 09:24:36,598 485358 INFO TowerEye werkzeug: 84.196.36.57 - - [20/Oct/2021 09:24:36] "POST /web/dataset/call_kw/calendar.filters/search_read HTTP/1.0" 200 - 2 0.001 0.005
2021-10-20 09:24:36,639 485362 INFO TowerEye werkzeug: 84.196.36.57 - - [20/Oct/2021 09:24:36] "POST /web/dataset/call_kw/calendar.event/search_read HTTP/1.0" 200 - 12 0.004 0.013
2021-10-20 09:24:36,666 485358 INFO TowerEye werkzeug: 84.196.36.57 - - [20/Oct/2021 09:24:36] "POST /web/dataset/call_kw/res.partner/get_attendee_detail HTTP/1.0" 200 - 7 0.002 0.007
2021-10-20 09:24:36,800 485359 ERROR TowerEye odoo.sql_db: bad query: INSERT INTO "calendar_attendee" ("id", "access_token", "create_date", "create_uid", "event_id", "partner_id", "state", "write_date", "write_uid") VALUES (nextval('calendar_attendee_id_seq'), '88a810b418e043269103b11932f77fe5', '2021-10-20 09:24:35.586112', 2, 152939, NULL, 'tentative', '2021-10-20 09:24:35.586112', 2) RETURNING id
ERROR: null value in column "partner_id" violates not-null constraint
DETAIL:  Failing row contains (86102, 152939, null, null, 88a810b418e043269103b11932f77fe5, tentative, null, 2, 2021-10-20 09:24:35.586112, 2, 2021-10-20 09:24:35.586112).
 
2021-10-20 09:24:36,804 485359 WARNING TowerEye odoo.http: The operation cannot be completed:
- Create/update: a mandatory field is not set.
- Delete: another model requires the record being deleted. If possible, archive it instead.

Model: Calendar Attendee Information (calendar.attendee), Field: Attendee (partner_id) 

Warning while creating another record at same time with different resource , diff customer and diff type!.

module: resource_booking
version: 13.0

Steps to reproduce

  • ...

Current behavior
i've created a booking an appoinment for a customer in a saloon(for example) for nail polishing . meanwhile at the same time tried to create another appoinment for another customer with another resource. still it's showing the warning image. i didn't understand why this is happening. any helps please

Screenshot from 2022-01-03 21-18-47

Screenshot from 2022-01-03 21-19-30
64/147951739-161f5390-0334-47a8-84c8-5cb53ed3a708.png)

Expected behavior
i guess , it should create another appoinment , if the resource are free , but instead it's raising error.
NB : there are no other tasks /records in pending , schedule states etc

Odoo Server Error - Validation Error

Verrsion 12 Enterprise on Odoo.sh

I keep getting this validation error in any Schedule try

Cannot schedule these bookings because they do not fit in their type or resources calendars, or because all resources are busy:

Validation Error2

What is the meaning of fit in their type? also, neitther the user or the resources are busy

[RFC] calendar_project

Repository: OCA/calendar
Module name: calendar_event_link_project_task
Dependency: ["calendar", "project"]
License: AGPL-3

Module description

This Module creates corresponding Calendar Events for Project Tasks, the two objects are synchronized so any changes made to the Project Task should be reflected in the Calendar Event

Usage

  • Create a Project Task
  • Verify that a Calendar Event has been created
  • Edit the Project Tasks Starting Date or Planned Hours
  • Verify the Calendar Event reflects the changes made on the Project Task
  • Delete the Project Task, verify the Calendar Event has also been deleted

Test Scenarios

Scenario 1

  • Create a Project Task
  • Verify Calendar Event has been created
  • Delete the Project Task
  • Verify Calendar Event has been deleted

Scenario 2

  • Create a Project Task
  • Verify Calendar Event has been created
  • Change any of the following fields (schedule_date_start, duration, user_id, person_id)
  • Verify the change has been made on the Calendar Event

Scenario 3

  • Create a Project Task
  • Verify Calendar Event has been created
  • Change any of the following fields (date_start, planned_hours, user_id, manager_id)
  • Verify the change has been made on the Project Task

I think we can build off of or add this to this PR #12 the modules here are very good, the purpose of this issue is to synchronize a calendar event with a project task.

Cannot Install Resource booking Odoo V16

Hey All,
I want to install your
Plugin but get these Error:

Traceback (most recent call last):
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\service\model.py", line 133, in retrying
result = func()
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\http.py", line 1815, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\base\models\ir_module.py", line 76, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\base\models\ir_module.py", line 491, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\modules\registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\modules\loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\modules\loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\modules\loading.py", line 231, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\modules\loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\tools\convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\tools\convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\tools\convert.py", line 749, in parse
self._tag_root(de)
File "C:\Program Files\Odoo 16.0.20230627\server\odoo\tools\convert.py", line 709, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/odoo%2016.0.20230627/server/odoo/addons/resource_booking/views/calendar_event_views.xml:5
Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition

View error context:
'-no context-'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (http://IP:8069/web/assets/294-67d339c/web.assets_backend.min.js:985:163)
at XMLHttpRequest. (http://IP:8069/web/assets/294-67d339c/web.assets_backend.min.js:993:13)

Curretn Version of Odoo ist 16.

Thanks a lot!

Resource booking - access error for confirmed bookings [v12]

Module

resource_booking

Describe the bug

Resource Booking / Manager and User can't open and view bookings confirmed via portal user.

Odoo server error [access error]
The requested operation cannot be completed due to security restrictions.
Please contact your system administrator.
(Document type: Event, Operation: read) - (Records: [1238], User: 7)

To Reproduce

Affected versions:
Odoo 12.0-20211006 (Community Edition)
resource_booking: 12.0.1.5.1

Steps to reproduce the behavior:

  1. Create human resource with any working times
  2. Create Combination (use human resource created above)
  3. Create Types (use combination used above)
  4. Create Booking (from list view)
  • set Requester (random contact)
  • set Type (use created above)
  • Save
  1. Share booking - Send email
  2. Schedule and confirm booking by portal user (use link in email)
  3. Open booking from Resource Booking - Odoo server error [access error] occurs

Expected behavior
Can open and view confirmed booking.

Additional context
Tried in several environements with different odoo v12 builds.

[12.0] resource_booking

Module

resource_booking

Describe the bug

Try to install the module on odoo.sh and obtain
Failed to load registry
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 417, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 179, in load_module_graph
load_openerp_module(package.name)
File "/home/odoo/src/odoo/odoo/modules/module.py", line 368, in load_openerp_module
import('odoo.addons.' + module_name)
File "/home/odoo/src/odoo/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 2, in
File "/home/odoo/src/user/b_OCA/calendar/resource_booking/controllers/init.py", line 1, in
from . import portal
File "/home/odoo/src/user/b_OCA/calendar/resource_booking/controllers/portal.py", line 7, in
from dateutil.parser import isoparse
ImportError: cannot import name 'isoparse'

To Reproduce

Affected versions:

  • 12.0

Steps to reproduce the behavior:

  1. create an env 12.0 on odoo.sh
  2. add repo OCA Calendard
  3. obtain error:
  4. Failed to load registry
    Traceback (most recent call last):
    File "/home/odoo/src/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
    File "/home/odoo/src/odoo/odoo/modules/loading.py", line 417, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check)
    File "/home/odoo/src/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
    File "/home/odoo/src/odoo/odoo/modules/loading.py", line 179, in load_module_graph
    load_openerp_module(package.name)
    File "/home/odoo/src/odoo/odoo/modules/module.py", line 368, in load_openerp_module
    import('odoo.addons.' + module_name)
    File "/home/odoo/src/odoo/odoo/modules/module.py", line 82, in load_module
    exec(open(modfile, 'rb').read(), new_mod.dict)
    File "", line 2, in
    File "/home/odoo/src/user/b_OCA/calendar/resource_booking/controllers/init.py", line 1, in
    from . import portal
    File "/home/odoo/src/user/b_OCA/calendar/resource_booking/controllers/portal.py", line 7, in
    from dateutil.parser import isoparse
    ImportError: cannot import name 'isoparse'

Expected behavior
not obtain error

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

Calendar Partner Color error

I get this error when i'm trying to install this module on odoo15.

Element '' cannot be located in parent view

View error context:
{'file': '/home/giorgos/odoo15/custom/calendar_partner_color/views/calendar_event.xml',
'line': 2,
'name': 'calendar.event',
'view': ir.ui.view(1368,),
'view.model': 'calendar.event',
'view.parent': ir.ui.view(1276,),
'xmlid': 'view_calendar_event_calendar'}

[RFC] calendar_fieldservice

Calendar Field Service
Repository: OCA/calendar

Module name: calendar_fieldservice

Dependency: ['calendar_timeline', 'fieldservice']

License: AGPL-3

Module description
"This Module creates corresponding Calendar Events for FSM Orders, the two objects are synchronized so any changes made ton/a the FSM Order should be reflected in the Calendar Event"

Usage

  • Create an FSM Order
  • Verify that a Calendar Event has been created
  • Edit the FSM Order Starting Date or Estimated Duration
  • Verify the Calendar Event reflects the changes made on the FSM Order
  • Delete the FSM Order, verify the Calendar Event has also been deleted

Test Scenarios
Scenario 1:

  • Create an FSM Order
  • Verify Calendar Event has been created
  • Delete the FSM Order
  • Verify Calendar Event has been deleted

Scenario 2:

  • Create an FSM Order
  • Verify Calendar Event has been created
  • Change any of the following fields (schedule_date_start, duration, user_id, person_id)
  • Verify the change has been made on the Calendar Event

Scenario 3:

  • Create an FSM Order
  • Verify Calendar Event has been created
  • Change any of the following fields (date_start, planned_hours, user_id, manager_id)
  • Verify the change has been made on the FSM Order

As stated in my previous Issue, I think we can build off of or add this to this PR #12 the modules here are very good, the purpose of this issue is to synchronize a calendar event with an fsm.order

create type resource_booking error

Module

resource_booking

Describe the bug

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\Program Files\server\odoo\http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files\server\odoo\http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files\server\odoo\http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files\server\odoo\http.py", line 910, in call
return self.method(*args, **kw)
File "C:\Program Files\server\odoo\http.py", line 535, in response_wrap
response = f(*args, **kw)
File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1326, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1318, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\server\odoo\api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\server\odoo\api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files\server\odoo\models.py", line 6367, in onchange
defaults = self.default_get(missing_names)
File "C:\Program Files\server\odoo\models.py", line 1410, in default_get
defaults[name] = field.default(self)
File "C:\Program Files\server\odoo\addons\resource_booking\models\resource_booking_type.py", line 87, in
default=lambda self: self._default_resource_calendar(),
File "C:\Program Files\server\odoo\addons\resource_booking\models\resource_booking_type.py", line 104, in _default_resource_calendar
return self._default_company().resource_calendar_id
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Program Files\server\odoo\http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\server\odoo\http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'resource.booking.type' object has no attribute '_default_company'

To Reproduce

Affected versions:

odoo 15

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.