Supplier invoice form view shows discount field if enabled in *sale orders* settings

Bug #1260000 reported by Leonardo Donelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 3

Bug Description

View `account.invoice_supplier_form` displays the field `discount` if the `group_discount_per_so_line` flag is selected in the Sales settings.

That view is related to a purchase order (it's the form view for a purchase order invoice), not a sale order, and therefore should not use that flag.

summary: - Supplier invoice form view shows discount field if enabled is *sale
+ Supplier invoice form view shows discount field if enabled in *sale
orders* settings
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

As per my opinion we have to change the group name. Instead of "Discount on Sale order line " we can use the "Disount on order/Invoice line" would be better option.

Thank you!

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Leonardo Donelli (learts92) wrote :

Then the name wouldn't reflect the functionality, because you only see a discount field in sale orders view when the option is activated, not in purchase orders view. The problem is in only in purchase order *invoice*.

Revision history for this message
Amit Parik (amit-parik) wrote :

Ok, we have to remove disount field from invoice_supplier_form and put this field on invoice_form which is for customer invoice.

Revision history for this message
Leonardo Donelli (learts92) wrote :

Already present in invoice_form.
Either the author just copy-pasted it and so it got in invoice_supplier_form for mistake; or there is confusion about the role of the flag between the writers of the account module and the writers of the purchases/sales modules.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.