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