addons/point_of_sale/static/src/app/models/res_currency.js
raw| 1 | import { registry } from "@web/core/registry"; |
| 2 | import * as numbers from "@point_of_sale/app/utils/numbers"; |
| 3 | |
| 4 | export class ResCurrency extends numbers.AbstractNumbers { |
| 5 | static pythonModel = "res.currency"; |
| 6 | get precision() { |
| 7 | return this.rounding; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | registry.category("pos_available_models").add(ResCurrency.pythonModel, ResCurrency); |