Can delete a pricelist still linked to a partner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
Can be replicated as follows:
Create a new database using demo data and install the CRM and Sales applications.
With that you get two default price lists, one for sales and one for purchases.
Create a new price list and an associated price list version.
Go to an existing customer and associate the new price list with them.
Then go and create an order for the same customer, which will default to the new price list.
Save the order and then go and delete the price list linked to the customer and the order.
The system will complain saying that a sales order is linked, therefore you cannot delete the price list.
On the sales order, change the price list to the default one supplied by the system, and now go and delete the price list you created.
The system will let you do it, even though it is still linked to a customer.
Now try and open the customer form to modify. The system does not allow you to.
This is the error:
[2010-12-21 16:21:35,
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/
replaces[rep] = dict(obj.
File "/home/
name = pl.name + ' ('+ pl.currency_id.name + ')'
File "/home/
raise AttributeError(e)
AttributeError: 'Field name not found in browse_
I would have expected that maybe I would not be allowed to delete a price list linked to a customer, and if so, at least to have the ability to modify the customer to put them on another price list.
Using Linux platform, trunk version 6, addons revision 4033, server revision 3137.
.
Related branches
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Fix Released → Confirmed |
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-server: | |
milestone: | none → 6.0 |
i fear this problem is affecting all reference fields, and thus is more appropriate for the framework team.
good luck!