diff --git a/document_page_multi_company/__init__.py b/document_page_multi_company/__init__.py index 013e6d95..19c4eb32 100644 --- a/document_page_multi_company/__init__.py +++ b/document_page_multi_company/__init__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2013 Savoir-faire Linux (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## diff --git a/document_page_multi_company/__openerp__.py b/document_page_multi_company/__openerp__.py index 03761b7e..3dd0017b 100644 --- a/document_page_multi_company/__openerp__.py +++ b/document_page_multi_company/__openerp__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2013 Savoir-faire Linux (). # @@ -15,16 +15,16 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## { 'name': 'Document Page Multi-Company', 'version': '1.0', - "author" : "Savoir-faire Linux", - "website" : "http://www.savoirfairelinux.com", - "license" : "AGPL-3", + "author": "Savoir-faire Linux", + "website": "http://www.savoirfairelinux.com", + "license": "AGPL-3", 'category': 'Knowledge Management', 'description': """ This module adds a company field to document page and the multi-company rule. diff --git a/document_page_multi_company/document_page_multi_company.py b/document_page_multi_company/document_page_multi_company.py index 5f46d86c..de93b0b1 100644 --- a/document_page_multi_company/document_page_multi_company.py +++ b/document_page_multi_company/document_page_multi_company.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2013 Savoir-faire Linux (). # @@ -15,11 +15,12 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## from openerp.osv import fields, orm + class document_page_history(orm.Model): _inherit = 'document.page.history' _columns = { @@ -29,7 +30,8 @@ class document_page_history(orm.Model): _defaults = { 'company_id': lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id, } - + + class document_page(orm.Model): _inherit = 'document.page' _columns = {