Skip to content

Commit ce9fa34

Browse files
committed
[FIX] sale_order_price_precision: Product Price Sales precision also on invoices
1 parent 928e36d commit ce9fa34

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

sale_order_price_precision/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33
{
44
"name": "Sale Order Price Precision",
5-
"summary": "Add decimal precision for sale order prices",
5+
"summary": "Add decimal precision for sale order and invoice prices",
66
"version": "17.0.1.0.0",
77
"author": "Open Source Integrators, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/sale-workflow",
99
"category": "Sales",
1010
"depends": [
1111
"sale",
12+
"account",
1213
],
1314
"data": [
1415
"data/decimal_precision_data.xml",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Copyright 2026 Open Source Integrators
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
from . import account_move_line
34
from . import sale_order
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Open Source Integrators
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class AccountMoveLine(models.Model):
8+
_inherit = "account.move.line"
9+
10+
# Override price_unit to use Product Price Sales decimal precision
11+
price_unit = fields.Float(
12+
string="Unit Price",
13+
digits="Product Price Sales",
14+
)

0 commit comments

Comments
 (0)