Set a name_get method for wh_docs (IVA & ISLR)

Registered by Juan Márquez on 2013-07-23

Add this code to upgrade wh_doc (IVA & ISLR)

models: account_wh_iva & islr_wh_doc

    def name_get(self,cr, uid, ids, context):
        if not len(ids):
            return []
        res = []
        for item in self.browse(cr, uid, ids, context):
            if item.number and item.state=='done':
                res.append((item.id, '%s (%s)'%(item.number,item.name)))
            else:
                res.append((item.id, '%s'%(item.name)))
        return res

Blueprint information

Status:
Started
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
Juan Márquez
Definition:
New
Series goal:
None
Implementation:
Needs Code Review
Milestone target:
None
Started by
Juan Márquez on 2013-07-23

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.