lp://qastaging/~zyphos/openobject-server/trunk-resource-link

Created by Nicolas DS and last modified

Branch to add resource-link feature.
Link any kind of Open Object ressource to another one.
Aim:
- Make attachments more generic. Example: Attach an invoice, or product to a case.

Limitations:
- Memory object cannot be linked because there is no persistance on those objects.

Future Usage:
------------------
Syntax:
- Object.set_link2resource(user, cr, resource_id, other_model, other_resource_id)
- Object.del_link2resource(user, cr, resource_id, other_model, other_resource_id)
- Object.get_link2resource(user, cr, resource_id) Return: list of tupple [(other_model, other_resource_id),...]

Examples:
- Object.set_link2resource(user, cr, 25, 'ir_attachment', 48)
- Object.del_link2resource(user, cr, 2, 'res_invoice', 57)
- Object.get_link2resource(user, cr, 25) Return: [( 'ir_attachment', 48)]

Note: I made this branch private because somebody deleted one the public branch I created...

Get this branch:
bzr branch lp://qastaging/~zyphos/openobject-server/trunk-resource-link
Only Nicolas DS can upload to this branch. If you are Nicolas DS please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Nicolas DS
Project:
Odoo Server (MOVED TO GITHUB)
Status:
Experimental

Recent revisions

1895. By Nicolas DS

[MERGE] from trunk

1894. By Nicolas DS

[MERGE] from server trunk equal2equal branch

1893. By Nicolas DS

[FIX] typos + function should be defined before used :p

1892. By Nicolas DS

[FIX] Python 2.5 doesn't take 'as' in exception catching

1891. By Nicolas DS

[IMP] Add security check, Unlink ORM delete links

1890. By Nicolas DS

[MERGE] from server trunk equal2equal branch

1889. By Nicolas DS

[IMP] Changing dependency from osv.osv_link to new Equal2equal field

1888. By Nicolas DS

[MERGE] Trunk many2many equal2equal branch

1887. By Nicolas DS

[SYNC] Last work done so far

1886. By Nicolas DS

[SYNC] Work done so far

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers