From f9f0d929e78726f0e178d5452425f53dc26c6438 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Tue, 23 Nov 2010 17:31:59 +0200 Subject: [PATCH] ir.attachment: mark 'type' and 'company_id' with change_defaults Other fields of attachments (like the directories, in document) should have their default properties depending on these. bzr revid: p_christ@hol.gr-20101123153159-wpus8bxls1q03ks9 --- bin/addons/base/ir/ir_attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/addons/base/ir/ir_attachment.py b/bin/addons/base/ir/ir_attachment.py index fb621ea..b536ae1 100644 --- a/bin/addons/base/ir/ir_attachment.py +++ b/bin/addons/base/ir/ir_attachment.py @@ -114,11 +114,11 @@ class ir_attachment(osv.osv): 'url': fields.char('Url', size=512, oldname="link"), 'type': fields.selection( [ ('url','URL'), ('binary','Binary'), ], - 'Type', help="Binary File or external URL", required=True), + 'Type', help="Binary File or external URL", required=True, change_default=True), 'create_date': fields.datetime('Date Created', readonly=True), 'create_uid': fields.many2one('res.users', 'Owner', readonly=True), - 'company_id': fields.many2one('res.company', 'Company'), + 'company_id': fields.many2one('res.company', 'Company', change_default=True), } _defaults = { -- 1.7.10.4