Fix errors, improve menus, views, readme

(cherry picked from commit 93a9b1ee4fd05c2a8fd97c305e392cab6a24f865)
This commit is contained in:
Akim Juillerat
2017-05-29 18:34:23 +02:00
committed by Pedro M. Baeza
parent 26557ddb24
commit 0d567fa4b0
4 changed files with 13 additions and 19 deletions

View File

@@ -1,5 +1,8 @@
<<<<<<< f4a71683cf11965d8ffc1f5016e254fe6aa2eaf5
# -*- coding: utf-8 -*-
# Copyright 2017 Okia SPRL (https://okia.be)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
=======
>>>>>>> Fix errors, improve menus, views, readme
from . import models
from . import wizard

View File

@@ -1,23 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi, Guewen Baconnier
# Copyright 2012-2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright 2012-2017 Camptocamp SA
# Copyright 2017 Okia SPRL (https://okia.be)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{'name': 'Account Credit Control',
'version': '8.0.0.3.0',
'author': "Camptocamp,Odoo Community Association (OCA)",

View File

@@ -1,6 +1,9 @@
<<<<<<< f4a71683cf11965d8ffc1f5016e254fe6aa2eaf5
# -*- coding: utf-8 -*-
# Copyright 2017 Okia SPRL (https://okia.be)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
=======
>>>>>>> Fix errors, improve menus, views, readme
from . import account_account
from . import account_invoice
from . import credit_control_line

View File

@@ -82,6 +82,10 @@ class CreditControlPolicyChanger(models.TransientModel):
@api.model
def _set_invoice_policy(self, move_lines, policy):
""" Force policy on invoice """
<<<<<<< f4a71683cf11965d8ffc1f5016e254fe6aa2eaf5
=======
invoice_obj = self.env['account.invoice']
>>>>>>> Fix errors, improve menus, views, readme
invoices = move_lines.mapped('invoice_id')
invoices.write({'credit_policy_id': policy.id})