Browse files

[FIX] point_of_sale: export all missing classes from js modules

In the interest of being flexible and customizeable all of the defined
classes in the POS should be exported so people can easily inherit them
and change their behavior. A lot of the time you can get to them even if
they're not exported if you get creative enough, but noone should have
to resort to such ugly methods.

This commit does this for all of the modules except for
point_of_sale.popups. It has been omitted because currently it exports a
single object (PopupWidget). Modifying this to export an object of
objects could potentially break other unofficial modules which we do not
want in a stable release.
  • Loading branch information...
jorenvo committed Feb 19, 2016
1 parent e701e56 commit 406255ac6b66770f23bb6dad49d5ef4fb392cdfa
Showing with 11 additions and 0 deletions.
  1. +6 −0 addons/point_of_sale/static/src/js/chrome.js
  2. +5 −0 addons/point_of_sale/static/src/js/screens.js
@@ -759,7 +759,13 @@ var Chrome = PosBaseWidget.extend({
return {
Chrome: Chrome,
DebugWidget: DebugWidget,
HeaderButtonWidget: HeaderButtonWidget,
OrderSelectorWidget: OrderSelectorWidget,
ProxyStatusWidget: ProxyStatusWidget,
StatusWidget: StatusWidget,
SynchNotificationWidget: SynchNotificationWidget,
UsernameWidget: UsernameWidget,
@@ -1962,6 +1962,11 @@ return {
ProductScreenWidget: ProductScreenWidget,
ProductListWidget: ProductListWidget,
ClientListScreenWidget: ClientListScreenWidget,
ActionpadWidget: ActionpadWidget,
DomCache: DomCache,
ProductCategoriesWidget: ProductCategoriesWidget,
ScaleScreenWidget: ScaleScreenWidget,
set_fiscal_position_button: set_fiscal_position_button,

0 comments on commit 406255a

Please sign in to comment.