Merge lp:~camptocamp/account-invoicing/account-analytic-required-vre into lp:~account-core-editors/account-invoicing/7.0

Proposed by Vincent Renaville@camptocamp
Status: Needs review
Proposed branch: lp:~camptocamp/account-invoicing/account-analytic-required-vre
Merge into: lp:~account-core-editors/account-invoicing/7.0
Diff against target: 239 lines (+203/-0)
7 files modified
account_invoice_analytic_required/__init__.py (+23/-0)
account_invoice_analytic_required/__openerp__.py (+38/-0)
account_invoice_analytic_required/account_invoice_analytic_required.py (+31/-0)
account_invoice_analytic_required/i18n/account_invoice_analytic_required.pot (+27/-0)
account_invoice_analytic_required/i18n/es.po (+30/-0)
account_invoice_analytic_required/i18n/fr_BE.po (+27/-0)
account_invoice_analytic_required/i18n/sv.po (+27/-0)
To merge this branch: bzr merge lp:~camptocamp/account-invoicing/account-analytic-required-vre
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza Needs Resubmitting
Lorenzo Battistini (community) Needs Fixing
Holger Brunn (Therp) code review Needs Fixing
Review via email: mp+218974@code.launchpad.net

Description of the change

Hello,

The account_invoice_analytic_required force the user to specify an analytic account on invoice line

Vincent

To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

#60 sale.invoice.line?
#104 _description is not necessary here
#180ff you should remove translation files that don't actually contain translations

And per default, the field is only visible for analytic.group_analytic_accounting. I think this addon should remove this group from the view definition.

review: Needs Fixing (code review)
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Thanks Vincent,

some style fixes:

account_invoice_analytic_required/__init__.py:3:2: W291 trailing whitespace
account_invoice_analytic_required/__init__.py:19:75: W291 trailing whitespace
account_invoice_analytic_required/__init__.py:23:14: E271 multiple spaces after keyword
account_invoice_analytic_required/__openerp__.py:3:2: W291 trailing whitespace
account_invoice_analytic_required/__openerp__.py:19:75: W291 trailing whitespace
account_invoice_analytic_required/__openerp__.py:23:1: O603 Manifest "license" key is missing
account_invoice_analytic_required/__openerp__.py:24:11: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:25:14: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:26:15: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:28:13: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:29:14: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:30:14: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:32:11: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:33:11: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:34:11: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:35:18: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:36:19: E203 whitespace before ':'
account_invoice_analytic_required/__openerp__.py:37:18: E203 whitespace before ':'
account_invoice_analytic_required/account_invoice_analytic_required.py:23:1: O603 Manifest "license" key is missing
account_invoice_analytic_required/account_invoice_analytic_required.py:25:1: E302 expected 2 blank lines, found 1
account_invoice_analytic_required/account_invoice_analytic_required.py:27:13: E225 missing whitespace around operator

account_invoice_analytic_required/__openerp__.py:24:80: E501 line too long (84 > 79 characters)
account_invoice_analytic_required/__openerp__.py:27:80: E501 line too long (94 > 79 characters)
account_invoice_analytic_required/account_invoice_analytic_required.py:30:80: E501 line too long (110 > 79 characters)

review: Needs Fixing
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

This project is now hosted on https://github.com/OCA/account-invoicing. Please move your proposal there. This guide may help you https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub

review: Needs Resubmitting

Unmerged revisions

47. By Vincent Renaville@camptocamp

[ADD] account_invoice_analytic_required : this modules force the user to specificed a analytic account on invoice line

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'account_invoice_analytic_required'
=== added file 'account_invoice_analytic_required/__init__.py'
--- account_invoice_analytic_required/__init__.py 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/__init__.py 2014-05-09 12:02:43 +0000
@@ -0,0 +1,23 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
6# Copyright (c) 2014 Camptocamp SA (http://www.camptocamp.com)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from . import account_invoice_analytic_required
024
=== added file 'account_invoice_analytic_required/__openerp__.py'
--- account_invoice_analytic_required/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/__openerp__.py 2014-05-09 12:02:43 +0000
@@ -0,0 +1,38 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
6# Copyright (c) 2014 Camptocamp SA (http://www.camptocamp.com)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23{
24 'name' : 'Make Account invoice analytic account required in sale.invoice.line.',
25 'version' : '1.0',
26 'category' : 'Generic Modules/Accounting',
27 'description': '''Module to make analytic account field required in sale.invoice.line.''',
28 'author' : 'OpenERP SA/Camptocamp SA',
29 'website' : 'http://www.camptocamp.com',
30 'depends' : ['base',
31 'account'],
32 'data' : [],
33 'demo' : [],
34 'test' : [],
35 'installable' : True,
36 'auto_install' : False,
37 'application' : True,
38}
039
=== added file 'account_invoice_analytic_required/account_invoice_analytic_required.py'
--- account_invoice_analytic_required/account_invoice_analytic_required.py 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/account_invoice_analytic_required.py 2014-05-09 12:02:43 +0000
@@ -0,0 +1,31 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
6# Copyright (c) 2014 Camptocamp SA (http://www.camptocamp.com)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from openerp.osv import orm, fields
24
25class account_invoice_line(orm.Model):
26 _name = 'account.invoice.line'
27 _inherit='account.invoice.line'
28 _description = 'Invoice line'
29 _columns = {
30 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True),
31 }
032
=== added directory 'account_invoice_analytic_required/i18n'
=== added file 'account_invoice_analytic_required/i18n/account_invoice_analytic_required.pot'
--- account_invoice_analytic_required/i18n/account_invoice_analytic_required.pot 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/i18n/account_invoice_analytic_required.pot 2014-05-09 12:02:43 +0000
@@ -0,0 +1,27 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_invoice_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.6\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2009-11-24 13:15:30+0000\n"
10"PO-Revision-Date: 2009-11-24 13:15:30+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_invoice_analytic_required
19#: model:ir.module.module,shortdesc:account_invoice_analytic_required.module_meta_information
20msgid "Account invoice analytic required"
21msgstr ""
22
23#. module: account_invoice_analytic_required
24#: model:ir.module.module,description:account_invoice_analytic_required.module_meta_information
25msgid "Module to make analytic account field required in sale.invoice.line."
26msgstr ""
27
028
=== added file 'account_invoice_analytic_required/i18n/es.po'
--- account_invoice_analytic_required/i18n/es.po 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/i18n/es.po 2014-05-09 12:02:43 +0000
@@ -0,0 +1,30 @@
1# Spanish translation for openobject-addons
2# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011
3# This file is distributed under the same license as the openobject-addons package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openobject-addons\n"
9"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10"POT-Creation-Date: 2009-11-24 13:15+0000\n"
11"PO-Revision-Date: 2011-02-15 15:01+0000\n"
12"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13"Language-Team: Spanish <es@li.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"X-Launchpad-Export-Date: 2011-08-13 05:35+0000\n"
18"X-Generator: Launchpad (build 13674)\n"
19
20#. module: account_invoice_analytic_required
21#: model:ir.module.module,shortdesc:account_invoice_analytic_required.module_meta_information
22msgid "Account invoice analytic required"
23msgstr "Requerida cuenta analítica en factura"
24
25#. module: account_invoice_analytic_required
26#: model:ir.module.module,description:account_invoice_analytic_required.module_meta_information
27msgid "Module to make analytic account field required in sale.invoice.line."
28msgstr ""
29"Módulo para hacer que la cuenta analítica sea requerida en la línea de "
30"factura"
031
=== added file 'account_invoice_analytic_required/i18n/fr_BE.po'
--- account_invoice_analytic_required/i18n/fr_BE.po 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/i18n/fr_BE.po 2014-05-09 12:02:43 +0000
@@ -0,0 +1,27 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_invoice_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.6\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2009-11-24 13:15:30+0000\n"
10"PO-Revision-Date: 2009-11-24 13:15:30+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_invoice_analytic_required
19#: model:ir.module.module,shortdesc:account_invoice_analytic_required.module_meta_information
20msgid "Account invoice analytic required"
21msgstr ""
22
23#. module: account_invoice_analytic_required
24#: model:ir.module.module,description:account_invoice_analytic_required.module_meta_information
25msgid "Module to make analytic account field required in sale.invoice.line."
26msgstr ""
27
028
=== added file 'account_invoice_analytic_required/i18n/sv.po'
--- account_invoice_analytic_required/i18n/sv.po 1970-01-01 00:00:00 +0000
+++ account_invoice_analytic_required/i18n/sv.po 2014-05-09 12:02:43 +0000
@@ -0,0 +1,27 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_invoice_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.14\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2009-11-24 13:15+0000\n"
10"PO-Revision-Date: 2011-02-15 15:01+0000\n"
11"Last-Translator: Olivier Dony (OpenERP) <Unknown>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"X-Launchpad-Export-Date: 2011-08-13 05:35+0000\n"
17"X-Generator: Launchpad (build 13674)\n"
18
19#. module: account_invoice_analytic_required
20#: model:ir.module.module,shortdesc:account_invoice_analytic_required.module_meta_information
21msgid "Account invoice analytic required"
22msgstr ""
23
24#. module: account_invoice_analytic_required
25#: model:ir.module.module,description:account_invoice_analytic_required.module_meta_information
26msgid "Module to make analytic account field required in sale.invoice.line."
27msgstr "Module to make analytic account field required in sale.invoice.line."

Subscribers

People subscribed via source and target branches