Skip to content

Commit 16ded28

Browse files
committed
[FIX] sale_invoice_policy: invoice_policy
Allow empty value on invoice_policy by removing readonly option. Without this it's not possible to select nothing which forces always to use invoice policy from sale order level.
1 parent ab0fee6 commit 16ded28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sale_invoice_policy/models/sale_order.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ class SaleOrder(models.Model):
88
_inherit = "sale.order"
99

1010
invoice_policy = fields.Selection(
11-
[("order", "Ordered quantities"), ("delivery", "Delivered quantities")],
11+
[
12+
# ("", ""),
13+
("order", "Ordered quantities"),
14+
("delivery", "Delivered quantities")
15+
],
1216
readonly=True,
1317
help="Ordered Quantity: Invoice based on the quantity the customer "
1418
"ordered.\n"

0 commit comments

Comments
 (0)