Antony Lesuisse (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/trunk-onchange-al into lp:openobject-server.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-onchange-al/+merge/90808
Allow views to append content to an attribute useful for onchange_fields. See
spec in kanban pad.
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-onchange-al/+merge/90808
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/trunk-onchange-al.
=== modified file 'openerp/osv/orm.py'
--- openerp/osv/orm.py 2012-01-25 11:34:29 +0000
+++ openerp/osv/orm.py 2012-01-30 23:14:24 +0000
@@ -2040,6 +2040,10 @@
node.set(attribute[0], attribute[1])
else:
del(node.attrib[attribute[0]])
+ for child in spec.getiterator('append'):
+ attribute = (child.get('name'), child.text and child.text.encode('utf8') or None)
+ if attribute[1]:
+ node.set(attribute[0], node.get(attribute[0]) + attribute[1])
else:
sib = node.getnext()
for child in spec:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp