Skip to content

Commit c763bb8

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 c763bb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sale_invoice_policy/models/sale_order.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ class SaleOrder(models.Model):
88
_inherit = "sale.order"
99

1010
invoice_policy = fields.Selection(
11-
[("order", "Ordered quantities"), ("delivery", "Delivered quantities")],
12-
readonly=True,
11+
[
12+
("order", "Ordered quantities"),
13+
("delivery", "Delivered quantities")
14+
],
1315
help="Ordered Quantity: Invoice based on the quantity the customer "
1416
"ordered.\n"
1517
"Delivered Quantity: Invoiced based on the quantity the vendor "

0 commit comments

Comments
 (0)