summaryrefslogtreecommitdiff
path: root/addons/google_calendar/static/src
AgeCommit message (Collapse)Author
2019-03-06[REF] google_calendar: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2018-07-27[REF] *: BS4, rename btn-default to btn-secondaryqsm-odoo
BS4 "btn-default" class was replaced with "btn-secondary", which makes more sense.
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-04-18[REF] *: review scss variables handlingqsm-odoo
Unlike LESS, SCSS variables are not lazy loaded. Our system has thus to be updated. This commit creates new templates which are t-called in assets bundles (to replace the old less_helpers template): - web._assets_utils: regroups the mixins and functions which *can* (and so should) be available in every asset bundle - web._assets_primary_variables: regroups the variables (or mixins used as variables) which *can* (and so should) be available in every asset bundle - web._assets_secondary_variables: same as above but provides an environnement where all the 'primary' ones are accessible. This is for example useful to handle the community/enterprise split: // Community primary variables $o-pink-color: pink; // enterprise color $o-brand-primary: blue; // Enterprise primary variables $o-brand-primary: $o-pink-color; // Community secondary variables $o-my-darker-primary: darken($o-brand-primary, 5%); => If there was only one variable template, enterprise edition would have been able to define its primary color at the end but the darker primary would not have been updated. Using the "!default" system and putting enterprise definition above would not have solved the problem as the $o-pink-color would not have been accessible. - web._assets_backend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the backend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. - web._assets_frontend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the frontend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. Note: bootstrap variables are not accessible in any of those anymore. If you have variables that should depend on bootstrap, you have 3 solutions: - Find another way: your variable is probably useless, use bootstrap variables directly or create a variable that will influence the value of bootstrap variables. E.g. instead of declaring: `$myvar: $bootstrapvar * 3` and using $myvar alone, declare: `$myvar: 3` and use `$myvar * $bootstrapvar` where needed. - Declare a copy of the bootstrap variable and use that one. In that case, you should also force-set the real bootstrap one to be sure they match (this should be done in appropriate templates mentioned above). E.g. ``` $o-boostrapvar: 5; ... $boostrapvar: $o-bootstrapvar; ``` - Set your variable to null and set it to your bootstrap expression in the file you will need it (where bootstrap variables are accessible) without forgetting to add the !default flag to allow overriddes. ``` $myvar: null; ... $myvar: $bootstrapvar * 5 !default; ``` This commit also partly changes the variable names to follow the convention: $o-<app_id>-<name> where 'app_id' is the current's app name or a meaningful unique identifier ("theme" for all themes for example, as no multiple themes can be installed).
2018-04-18[REF] *: convert less content to scss contentqsm-odoo
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2017-07-03[FIX] web,google_calendar: fix google calendar syncDavid Monjoie
2017-04-11[REF] web, *: simplify our RPC system (in JS)Géry Debongnie
The RPC system was not completely satisfactory, we decided to prepare the future and do it properly. This commit introduces the new rpc system, which replace the previous new one. We now simply have a method, this._rpc, which takes a dictionary of parameters. The idea is that depending on the parameters, it is able to add correct default value when necessary. For situations where we don't have the this._rpc method, we can use the rpc.query method, which takes the same arguments, but directly calls ajax.rpc instead of triggering up some events.
2017-04-11[REF] *: use _rpc method for all rpcsGéry Debongnie
The _rpc method is now the preferred method to do a rpc, so we need to update all calls.
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-01-03[IMP] base_setup: Improve the `General Settings` form viewAkash Bhavsar
2016-08-08[MOV] google_calendar: moved models and data file in to models and data ↵Mohammed Shekha
directory
2016-04-22[FIX] google_calendar : sync with google button not boundJérome Maes
Commit 002660a9b05cf8620e1c5287a8538ac5e806d59e remove 'view_loading' method, but doesn't adapt this code.
2015-09-23[MERGE] forward port of branch saas-6 up to a669433Christophe Simonis
2015-09-17[FIX] calendar: filter events by attendees when sidebar is used with ↵Olivier Dony
`useContacts` Add some missing deferred chains + change domain for loading calendar.events.
2015-07-29[FIX] google_calendar: Refresh codeqsm-odoo
- Google sync was dropped with new design - Use new API alert/confirm dialogs - The user was able to click on the button... by clicking next to it (remove the button template, create it in JS) - Fix some exceptions in routes - Convert CSS to LESS - Update google tutorial (google_calendar module needs some improvments, especially to give meaningful error messages to the user when the google server sends back errors)
2015-04-17[MERGE] forward port of branch saas-6 up to e941c0fChristophe Simonis
2015-04-02[FIX] google_calendar: update tutorialNicolas Martinelli
Update the tutorial to know how to get the 'Client ID' and 'Client Secret': updated procedure and screenshots. opw: 631876
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] update various small addons to the new module systemGéry Debongnie
2014-11-05[MERGE] forward port of branch saas-3 up to ec27773Christophe Simonis
2014-11-05[MERGE] forward port of branch 7.0 up to 3e3e35eChristophe Simonis
2014-07-30[FIX] google_calendar: cleanup/spellcheck translatable termsOlivier Dony
2014-07-18[REF] OpenERP --> Odoo in various UI textsrlu-odoo
Rebranding has been done in: - data/demo files - html templates - help notices - comments - logger messages - and other various messages (Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08) Closes #1260
2014-05-14[IMP] Improve Calendar synchronizationKersten Jeremy
- Use the new fields from calendar (renamed in 9398.1.7 trunk-cal-v8-jke) - Manage some google excpetions about token expiration - Manage some google excpetions about token revokation - Manage some google excpetions about 410 - Gone from google - Detect / Allow user to change the calendar and remove all old reference. - Use by default the since_modified for synchronization and not always a full (updatedTime in google) - Add some key for ir_parameters : 'calendar.week_synchro' : number of week to synchornize when we are in full mode 'calendar.block_synchro_attendee' : need to synchronize the attendees between google and openerp (creation of partner) 'calendar.block_since_synchro' : Always use the full synchro. (Can be forced in "one time" removing the last synchro from res_users form) 'calendar.debug_print' : _logger is more verbose - Pep 8 - Change behaviour of do_request to return a tuple with status raquest and response - Add field from token and synchro date in res_users view form
2014-01-15[REF] Rename model crm.meeting into calendar.eventjke-openerp
Remove 2 unsused field from calendar.event model (dir,sequence) bzr revid: jke@openerp.com-20140115093805-1g1j1oymyxsb6kgh
2014-01-14[REF] Add order fix on calendar list view, flake google_calendar, undelete ↵jke-openerp
function get_sequence needed for google synchro bzr revid: jke@openerp.com-20140114133736-cvvftr4hmaa3w3ad
2014-01-13[REF] Refactoring according to CHS and AL reviewjke-openerp
bzr revid: jke@openerp.com-20140113174157-ins4vf57g0p6v82u
2013-12-19[IMP] Redo tuto to get api key, because Google have changed console UI ↵jke-openerp
during the dev bzr revid: jke@openerp.com-20131219174536-msjd005fxhxgl9qq
2013-12-19[IMP] Redirect admin to configurations page for Google Calendar API when ↵jke-openerp
trying synchro but not still configured bzr revid: jke@openerp.com-20131219165011-xgy18qcr1n1q4jz1
2013-12-19[TYPO] Rename google_base_account into google_accountjke-openerp
bzr revid: jke@openerp.com-20131219142514-8epaqnt0mb16xd4n
2013-12-17[IMP] Add menu for api google credentials visible from settings without the ↵jke-openerp
need to be a technical user bzr revid: jke@openerp.com-20131217134207-vthjc9vud75pb471
2013-12-17[IMP] Show button google cal only on crm meeting modeljke-openerp
bzr revid: jke@openerp.com-20131217121808-miv2zlo2guuxrt1r
2013-12-16[TYPO] Continue install module google calendar and descriptions + typo + ...jke-openerp
bzr revid: jke@openerp.com-20131216162147-qygweglpl0k6qzux
2013-12-11[IMP] Add wizard and tuto for google synchro. add permission missing on ↵jke-openerp
calendar object bzr revid: jke@openerp.com-20131211163849-z438c5d8m7w4qt3l
2013-12-11[REF] Ref to remove warning about missing user_id in calendar.attendeejke-openerp
bzr revid: jke@openerp.com-20131211130635-hjrb306zrph4dcg5
2013-12-10[REF] Refactoring complete of synchro calendar with pre-processingjke-openerp
bzr revid: jke@openerp.com-20131210164525-y8z6yhandea7x0ry
2013-12-09[REF] Synchro method create-delete-update, to replace with always ↵jke-openerp
active=False and pre-processing bzr revid: jke@openerp.com-20131209140819-v0njlfjvl2biep2m
2013-12-02[IMP] google oAuth2 + start synchro calendar (insert ok, bug with recurrent)jke-openerp
bzr revid: jke@openerp.com-20131202143133-u6vi1xw1oa9w8qpf