- This is the first pass of a big cleanup. This breaks
all backward compatibility of pos .js extensions.
- PosWidget has been renamed to 'Chrome'. The Chrome is both
the root widget but also a reference to all chrome subwidgets.
It is the V of MVC.
- ScreenSelector has been renamed to 'Gui'. The Gui contains
the method to manipulate the user interface by changing
screens and instanciating popups. It is the C of MVC
- PosModel is still the root model, the M of MVC
- All these objects are available to all Pos objects trough the
.pos .chrome and .gui references. This is very practical, but
usually you should not need to refer to the chrome or to the
gui in your models. And you should also minimize references
to .chrome, which should be manipulated via .gui
- The Popups, Screens, and Widgets are now declared declaratively
in the Chrome prototype for easier extension by external modules
- You can hook yourself into the various loading steps trough
deferreds:
- pos.ready -> All models have been loaded
- chrome.started -> The chrome dom is inserted but incomplete
- chrome.ready -> The pos is fully rendered and ready to use
- The Chrome subwidgets are available trough .widget
ex: pos_widget.numpad -> chrome.widget.numpad
- The GUI api has been changed a bit :
- set_current_screen -> .show_screen
In case of different directory for stroing po and pot files than 'i18n'
(e.g. 'i18n_extra'), a po could be linked to a wrong pot file.
Use the same folder as the po file to look for pot.
Fixes#4326
- Old behavior: each page with such a modifier was first set
invisible at creation of the InvisibiliyChanger attached to
it, and then, after domain evaluation, the page was reset
to visible if needed.
- New behavior: wait for the domain evaluation to decide to set
a page invisible. It also fixes a bug when 2 pages where
active simultaneously. Moreover, we only switch to a newly
displayed page if we are in edit mode (use case: we edited
a field making the page's domain true, so we want the user
to pay attention to this page).
This view was intended to extend the tree view of mrp.bom, not
mrp.bom.line. Nonetheless, the view mrp.mrp_bom_tree_view which is extended here is a
view for a mrp.bom.line, and there is no tree view for a mrp.bom.
So this extension has no meaning anymore and seems to have worked only
by accident...
linting views.js revealed some problems. Most of them minor, but
some of them more serious: redeclared variables in if clauses can
shadow the outer variable, or not. It is fragile, and will cause bugs
if the code is refactored.
Remove old source_id
Use hr.recruitment.source to generate link with utm and create
alias with default value for utm
[FIX] crm/utm: Fix bug with utm (ddac26cdbb)
Move demo into data
Move ir_http to save the utm in the dispatch
- simplifed name of vehicle model; the name is now the model name; the old function
is used to compute the name_get.
- added Suzuki data
- parent of a cost is now hidden except for technical group, because it is the
same as the vehicle
- fixed some vehicule -> vehicle typos
context and no specific order, order on limited leaves then on remaining leaves.
This is usefull for users having their normal leaves being displayed in top of
the list (legal leaves, compensatory leaves, then sick and unpaid for example).
Also updated the name_get of holidays status, displaying (remaining leaves /
max leaves) instead of (taken leaves / max leaves). What is important for
users is the number of remaining leaves, not the number of leaves already
taken in that type.
Also updated and reindented demo data (compensatory is now limited + order
of declaration due to this change).
Previously to this fix, url matching the same base url were linked to
the same shortened url: foo.be -> /aaa, foo.be/bar -> /aaa/bar instead of
a new shortened url.
Attendees are created and deleted on changing the quantity from the cart.
Added sale_order_id and sale_order_line_id fields on registrations, allowing
to find the order and the order line that created the registration without
to rely on origin and ticket.
Also fixed check_auto_confirmation, now in multi mode to avoid issues due to
the specific behavior of api.one.
If the date format language was changed to invert month & day values (so, changed to the classic european format instead of the american format)
Then, when entering manually a datetime without the time (so just '01/02/2014' instead of '01/02/2014 00:00:00', the day and month were inverted (the datetime was set to 02/01/2014 instead of 01/02/2014) because the datetime entered did not exactly match the date + time pattern.
We therefore added a fallback case, to test to parse the value with the date pattern alone (without the time)
For FIFO and standard price, return product at the purchased price instead of
the cost or current standard price.
Not applied for average as returning a purchased product do not recompute
the average price and would lead to an inconsistency in the stock value.
opw 615263
With a config like
[options]
addons_path: ~/foo,
~/bar
'~/bar' was interprated as '\n ~/bar' and is considered as a local directory
by os.path.abspath
Fixes#4403