when `pos_cache` is installed, the product is read from the cache and
became a `dict` instance instead of `OdooClass` object instance.
This PR, assures that `get_price` is always processed with an `OdooClass` object.
fixes: #274
The removed function was introduced in momentjs in version 2.11.0, but Odoo 10.0 ships 2.8.1, so I'm using a different comparison system here that should yield the same results without exceptions.
This module included previously support for taxes and pricelists.
Taxes are now included in upstream Odoo v10, so that feature is removed.
The pricelist feature, however, is supported in upstream Odoo v11. Thus, to ease the migration path, that functionality has been scalpel-backported from there.
This also means a great diff between previous OCA-only code and current Odoo-backport-only code, but with the advantage that the end user gets exactly the behavior that he would have when updating to v11.
Since most of the code has been copied from Odoo, the addon now has to become LGPL, and Odoo has been added as an author.
- the UI is updated when we change the customer in order to adapt the prices
- the computation take in account the pricelist and the fiscal position of the customer