Commit Graph
50 Commits
Author SHA1 Message Date
qsm-odoo 6e4db7d13a [REF] *: review scss variables handling
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 15:59:19 +02:00
qsm-odoo 97aa0a8dec [REF] *: convert less content to scss content
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 15:59:16 +02:00
qsm-odoo b04dec4025 [REF] *: rename all LESS files to SCSS
This is a simple renaming without adaptation.
2018-04-18 15:59:15 +02:00
qsm-odoo 55c6785c93 [FIX] event, hr: fix kanban view
Resolve two "bugs" introduced with new design:
- Events kanban dropdown position
- Employees kanban tags position
2017-08-28 14:42:50 +02:00
Yannick Tivisse a7e57d6d1a [IMP] Appswitcher: Better icons for some modules
For Manufacturing and Repairs, replace the gavel by a wrench. A gavel is a small hammer used by a judge; it is not used in manufacturing. Keep it for when we will have a Law app.

For POS, replace the briefcase by a screen:

For timesheet, replace the calendar by a clock:

For calendar, use the calendar:

For event, use a ticket, it's more generic than a martini glass:
2016-05-25 13:12:53 +02:00
Fabien Pinckaers 4c8e908b49 [IMP] Speed up app switcher loading: 645k --> 137k lossless compression for all icons 2016-02-26 11:39:38 +01:00
qsm-odoo 5960d3cff8 [IMP] *: New icons 2015-08-11 14:31:10 +02:00
Simon Lejeune 74d1e43a40 [ADD] many addons: add new icons
This commits adds icons for most applications.  They are
necessary for the home menu in the enterprise edition.
2015-06-18 12:58:18 +02:00
Martin Geubelle eb44be4267 [IMP] event: kanban view in new design 2015-06-18 11:10:30 +02:00
Yannick Tivisse aad2a3cca9 [FIX] event: small view fixes:
- removed 'Edit' link on event vignette, as clicking on it redirect on the event
form view;
- fixed a glitch when hovering an event vignette
2015-01-30 14:40:21 +01:00
Mahendra Barad d9fa702d5e [IMP] event and event_* modules: onboarding improvements
event:
- added tip
- default subscription/reminder/thanks templates for registrations are now using
the reply_to defined on the event
- fixed check of available seats: use seats_availability field, unlimited events
should never trigger the constraint
- added a sequence on scheduled emails on events
- config: wording improvements
- various improvements in event, registration, event_mail and event_report views

event_sale:
- removed override of seats_max: should not depend on available seats in
tickets. Indeed you may have less available places than the sum of seats for
each ticket type, for example if you have 0-10 VIP and 0-20 Standard tickets
for a 20-seats event.
- removed a duplicated view override
- added a seats_availability field on tickets, same meaning as on event.
- improved event form view: registration tab is now replaced by the tickets tab
when tickets are used

website_event:
- better management of sold-out event in the front-end, when doing registrations

website_event_sale:
- removed register link on the event kanban view. There is no need to to from
the back-end to the front-end from the kanban view. The published button on the
event form view already allows to go to the front-end view on the event
- better management of sold-out event in the front-end, when doing registrations
- fixed a template that was in customize and should not

website_event_track:
- wording improvements
- small improvements in the front-end of tracks
2015-01-29 17:39:41 +01:00
Prashant Panchal 3ad9349373 [IMP] event: new kanban view. New! Shiny! With popcorn!
Added two features in kanban view
- having a data-routing attribute on the oe_kanban_global_click
container allow to have a custom routing instead of only
'form view' / 'edit view'. This is used for example to go to
the website view of events.
- allow type=url along with object, action, ... to have some specific
urls for links.
2014-10-01 14:03:39 +02:00
Pariket Trivedi a77123fccc [FIX]: Bad display in kanban view with a group by in Event. 2014-05-22 11:49:09 +05:30
Antony Lesuisse fc70550ca2 [IMP] move html module description and icon
bzr revid: al@openerp.com-20130628100441-swpanf2jwcojygh4
2013-06-28 12:04:41 +02:00
Vishmita fd762aba95 [Fix]Improve code for IE for kanban view in event
bzr revid: vja@tinyerp.com-20121025090712-h3a7fls712w45fon
2012-10-25 14:37:12 +05:30
Jiten (OpenERP) ee077e0c7e [MERGE] Merged trunk.
bzr revid: jra@tinyerp.com-20121015095749-yglvi7gur28q1vqu
2012-10-15 15:27:49 +05:30
Fabien Pinckaers 3bb88076e1 [MERGE] events improvements
bzr revid: fp@tinyerp.com-20121013104045-w552j40hzvqv9d89
2012-10-13 12:40:45 +02:00
Amit Patel 072cf9e897 [MERGE]:event
bzr revid: apa@tinyerp.com-20121004123150-2hfqhhhhvzmm0rzg
2012-10-04 18:01:50 +05:30
Randhir Mayatra (OpenERP) c24d52183e [IMP] improve the button style in event kanban view
bzr revid: rma@tinyerp.com-20121004104110-cy7koe2xiqt9xlde
2012-10-04 16:11:10 +05:30
Paramjit Singh Sahota 3f51a37d3b [IMP]Improved code for the kanban of EVENT module. In which date is not getting the shadow effect.
bzr revid: psa@tinyerp.com-20121003131611-5i0fvvwjdm7hqety
2012-10-03 18:46:11 +05:30
Antony Lesuisse df59b0b7d2 [FIX] google map on event part1
bzr revid: al@openerp.com-20120525191127-v5o88etlbdq0jbzn
2012-05-25 21:11:27 +02:00
Fabien Pinckaers cdd8b9d47a [IMP] merge events
bzr revid: fp@tinyerp.com-20120525134306-3lz3127527hyly77
2012-05-25 15:43:06 +02:00
Fabien Pinckaers 7a70637b10 [IMP] layout
bzr revid: fp@tinyerp.com-20120525072829-34lyox1jl60ffye8
2012-05-25 09:28:29 +02:00
Fabien Pinckaers 3f31dd0d0c [merge] events
bzr revid: fp@tinyerp.com-20120525072114-x1ylvnbw2k3twbhy
2012-05-25 09:21:14 +02:00
Atul Patel (OpenERP) e21492a8bf [REM]: Remove unused code and refactor code as per specification
bzr revid: atp@tinyerp.com-20120523134448-9vqtiufzjgmmaq0b
2012-05-23 19:14:48 +05:30
Atul Patel (OpenERP) 7f93ac0dc3 [FIX]: ADD google map in event form view. remove preveiw wizard.
bzr revid: atp@tinyerp.com-20120523131956-ttslmltvzscz024o
2012-05-23 18:49:56 +05:30
Atul Patel (OpenERP) 4a02e98d42 [FIX]: Add osv memory wizard for event preview.Refactor code as per new specification.
bzr revid: atp@tinyerp.com-20120521132458-xozrh3vcz4wbo6t5
2012-05-21 18:54:58 +05:30
Atul Patel (OpenERP) 08cd412d78 [ADD]: Add event google map file.
bzr revid: atp@tinyerp.com-20120517073046-i47jypr9p6ndckox
2012-05-17 13:00:46 +05:30
Atul Patel (OpenERP) 986e134ab4 [ADD]: Load script from web to addons and set indentations for google maps.
bzr revid: atp@tinyerp.com-20120511125434-pwz2hqbgxtmrurgy
2012-05-11 18:24:34 +05:30
Atul Patel (OpenERP) 9dc92d18d5 [Add]: Add css file into event_sale modules.
bzr revid: atp@tinyerp.com-20120509173839-q3y5egsp8xliyfvi
2012-05-09 23:08:39 +05:30
Atul Patel (OpenERP) 8d2723ac4f [FIX]: Fix address template problem.
bzr revid: atp@tinyerp.com-20120509121244-ougokpvpe9i5dxkx
2012-05-09 17:42:44 +05:30
Atul Patel (OpenERP) 042e72de8d [FIX]: Fix alignment in kanban view. add accessrights for event.items.
bzr revid: atp@tinyerp.com-20120509114210-r3tp1nnn5rvoipqy
2012-05-09 17:12:10 +05:30
Atul Patel (OpenERP) 0a09dbed34 [FIX]: Improve css file. Improve view.
bzr revid: atp@tinyerp.com-20120505173340-1jmgy4clza1gy6sh
2012-05-05 23:03:40 +05:30
Atul Patel (OpenERP) aab3d7379d [MERGE]: Merged lp:~openerp-dev/openobject-addons/trunk-event_improvements-atp-event_page_with_google_map-nco
bzr revid: atp@tinyerp.com-20120504133632-qes40ecp3t17zcnv
2012-05-04 19:06:32 +05:30
Nimesh (Open ERP) 12f03240ef [remove] remove the unused console statement.
bzr revid: nco@tinyerp.com-20120504114741-ik1ft1ln90188tpt
2012-05-04 17:17:41 +05:30
Nimesh (Open ERP) bfe0509846 [imp] add the event page view for user
bzr revid: nco@tinyerp.com-20120504113136-ws9nxquin9sk95vu
2012-05-04 17:01:36 +05:30
Vidhin Mehta (OpenERP) 09dc29291d [IMP]impelment map widget.
bzr revid: vme@tinyerp.com-20120502071535-5h213fx2p5s0tlqi
2012-05-02 12:45:35 +05:30
Atul Patel (OpenERP) 2d6fba0621 [ADD]: Add event_items one2many fields into event form view.
bzr revid: atp@tinyerp.com-20120502070722-3twkfw14q89nznuo
2012-05-02 12:37:22 +05:30
Atul Patel (OpenERP) 49ca301bd6 [MERGE]: Merged lp:~openerp-dev/openobject-addons/trunk-event_improvements-atp-event_pageview-nco with some changes
bzr revid: atp@tinyerp.com-20120429180729-nscqe9nix9am0367
2012-04-29 23:37:29 +05:30
Nimesh (Open ERP) 66814b5501 [imp] event : remove unused code.
bzr revid: nco@tinyerp.com-20120427094634-foba34c88a4mn2ja
2012-04-27 15:16:34 +05:30
Nimesh (Open ERP) fa10c5cec7 [imp] change the event view.
bzr revid: nco@tinyerp.com-20120427093242-o9srduq715lbqt8t
2012-04-27 15:02:42 +05:30
Atul Patel (OpenERP) 8a3642861e [MERGE]: Merged lp:~openerp-dev/openobject-addons/trunk-event_improvements-atp-improve-kanban-for-registration-bde
bzr revid: atp@tinyerp.com-20120420134326-i8m23eos2atpg4su
2012-04-20 19:13:26 +05:30
Bharat Devnani (OpenERP) 89547acdfb [ADD] added text area in kanban view inorder to input number of seats
bzr revid: bde@tinyerp.com-20120418092637-uprsxgafbu1tl8vw
2012-04-18 14:56:37 +05:30
Khushboo Bhatt (Open ERP) 7ecc59bde9 [IMP]conflicts resolved
bzr revid: kbh@tinyerp.com-20120320103846-gt5dalg2tejw98lv
2012-03-20 16:08:46 +05:30
Khushboo Bhatt (Open ERP) 4606fe32b7 [IMP]help changed.
bzr revid: kbh@tinyerp.com-20120320102454-4q2hvlbg2rsouj1r
2012-03-20 15:54:54 +05:30
Amit Patel (OpenERP) 00f7fbe550 [IMP]:event:remove mouse hover for subscribe button.
bzr revid: apa@tinyerp.com-20120320102217-80icy0kj5ronpfq4
2012-03-20 15:52:17 +05:30
Dharti Ratani (OpenERP) 456b417f0b [IMP]
bzr revid: dhr@tinyerp.com-20120307084418-uaemwhxf24f95fkw
2012-03-07 14:14:18 +05:30
Dharti Ratani (OpenERP) 43c887aff7 [IMP]changes in css for buttons
bzr revid: dhr@tinyerp.com-20120307070004-wvmtqmqu8ybj0uz3
2012-03-07 12:30:04 +05:30
Amit (OpenERP) 8085156454 [ADD]:event:added kanban view for event and realted changes for that.
bzr revid: apa@tinyerp.com-20120306064902-rdx250ihctkpjph8
2012-03-06 12:19:02 +05:30
Quentin (OpenERP) 131d494134 [IMP] event: set as application + added icon
bzr revid: qdp-launchpad@openerp.com-20120229130041-anyfajbjvkjk7lbk
2012-02-29 14:00:41 +01:00