customer/supplier invoice: when selecting supplier from supplier field in supplier invoice it shows both customer and supplier and vice versa for customer

Bug #909297 reported by Hardik Ansodariya (OpenERP)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

customer/supplier invoice: when selecting supplier from supplier field in supplier invoice it shows both customer and supplier and vice versa for customer

it should show only supplier in suppliers invoice and only customers in customer invoice

Related branches

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :
Changed in openerp-web:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
Revision history for this message
Vaibhav Darji (vaibhav-openerp) wrote :

Hello Amit Bhavsar,

I think this should be fixed from server side by adding domain `[('supplier','=','1')] on Supplier Field.`

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

Hello,

I totally agreed with vaibhav, We have seen all partner in supplier/customer field.

We have already put a default search in context like "context="{'search_default_customer': 1}" so when we search a supplier/customer via supplier/customer invoice then it will shows correctly.

Here on web-client for drop-down list it's called a name_search method (we can try also with gtk client by giving a name of supplier in customer field).

So better way we have to put a domain on this field, that's why I am transferring this in to addons.

Thank you!

Amit Parik (amit-parik)
affects: openerp-web → openerp-addons
affects: openerp-addons → openobject-addons
Changed in openobject-addons:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Hardik Ansodariya,

Thanks for reporting. The solution for this bug is proposed in the branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-909297-mdi/

with following Revision ID and Number.

Revision ID : <email address hidden>
Revision Number : 6256

Thanks and Regards,

Divyesh Makwana(MDI)

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Hello,

Thanks for your fix! It landed in trunk.
revno: 6279
revision-id: <email address hidden>

Regards,

Thibault.

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.