@@ -0,0 +1,1911 @@
+# -*- encoding: utf-8 -*-%0A###############################################################################%0A#                                                                             #%0A# Copyright (C) 2014  Renato Lima - Akretion                                  #%0A#                                                                             #%0A#This program is free software: you can redistribute it and/or modify         #%0A#it under the terms of the GNU Affero General Public License as published by  #%0A#the Free Software Foundation, either version 3 of the License, or            #%0A#(at your option) any later version.                                          #%0A#                                                                             #%0A#This program is distributed in the hope that it will be useful,              #%0A#but WITHOUT ANY WARRANTY; without even the implied warranty of               #%0A#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                #%0A#GNU Affero General Public License for more details.                          #%0A#                                                                             #%0A#You should have received a copy of the GNU Affero General Public License     #%0A#along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.        #%0A###############################################################################%0A%0Afrom openerp import models, api%0A%0A%0Aclass ProcurementOrder(models.Model):%0A    _inherit = %22procurement.order%22%0A%0A    @api.model%0A    def _run_move_create(self, procurement):%0A        result = super(ProcurementOrder, self)._run_move_create(procurement)%0A        if procurement.purchase_line_id:%0A            result.update(%7B%0A                'fiscal_category_id': procurement.purchase_line_id.fiscal_category_id.id,%0A                'fiscal_position': procurement.purchase_line_id.fiscal_position.id,%0A            %7D)%0A        return result

add l10n_br_purchase/procurement.py