Commit c7fc6e5e authored by Romain Courteaud's avatar Romain Courteaud

Get the price directly from the service

parent cdc684e4
......@@ -79,11 +79,13 @@ if invoice_line is None:\n
created_by_builder=1, # XXX to prevent init script to create lines\n
**kw\n
)\n
service = portal.restrictedTraverse(portal.portal_preferences.getPreferredRegistrationResource())\n
invoice.newContent(\n
portal_type=\'Invoice Line\',\n
resource=portal.portal_preferences.getPreferredRegistrationResource(),\n
resource=service.getRelativeUrl(),\n
quantity=1,\n
price=1,\n
# XXX Hardcode price on service\n
price=service.getSaleSupplyLineBasePrice(),\n
**kw\n
)\n
\n
......
561
\ No newline at end of file
562
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment