Merge lp:~vauxoo/addons-vauxoo/distribution_account_analytic_plans-dev-yani into lp:~vauxoo/addons-vauxoo/addons-vauxoo-cicsa

Proposed by Yanina Aular (Vauxoo)
Status: Merged
Merged at revision: 1067
Proposed branch: lp:~vauxoo/addons-vauxoo/distribution_account_analytic_plans-dev-yani
Merge into: lp:~vauxoo/addons-vauxoo/addons-vauxoo-cicsa
Diff against target: 1437 lines (+1151/-1)
33 files modified
analytic_entry_line_group/__init__.py (+27/-0)
analytic_entry_line_group/__openerp__.py (+55/-0)
analytic_entry_line_group/model/__init__.py (+26/-0)
analytic_entry_line_group/model/account_analytic_plans.py (+42/-0)
analytic_entry_line_group/view/account_analytic_plans_view.xml (+46/-0)
analytic_entry_line_group/wizard/__init__.py (+25/-0)
analytic_entry_line_partner/__init__.py (+27/-0)
analytic_entry_line_partner/__openerp__.py (+54/-0)
analytic_entry_line_partner/model/__init__.py (+26/-0)
analytic_entry_line_partner/model/account_analytic_plans.py (+59/-0)
analytic_entry_line_partner/view/account_analytic_plans_view.xml (+38/-0)
analytic_entry_line_partner/wizard/__init__.py (+25/-0)
analytic_entry_line_plans/__init__.py (+27/-0)
analytic_entry_line_plans/__openerp__.py (+54/-0)
analytic_entry_line_plans/model/__init__.py (+26/-0)
analytic_entry_line_plans/model/account_analytic_plans.py (+59/-0)
analytic_entry_line_plans/view/account_analytic_plans_view.xml (+39/-0)
analytic_entry_line_plans/wizard/__init__.py (+25/-0)
analytic_entry_line_taxcode/__init__.py (+27/-0)
analytic_entry_line_taxcode/__openerp__.py (+54/-0)
analytic_entry_line_taxcode/model/__init__.py (+26/-0)
analytic_entry_line_taxcode/model/account_analytic_plans.py (+60/-0)
analytic_entry_line_taxcode/view/account_analytic_plans_view.xml (+39/-0)
analytic_entry_line_taxcode/wizard/__init__.py (+25/-0)
analytic_plans_group/__init__.py (+27/-0)
analytic_plans_group/__openerp__.py (+57/-0)
analytic_plans_group/data/res_groups.xml (+8/-0)
analytic_plans_group/model/__init__.py (+26/-0)
analytic_plans_group/model/account_analytic_plans.py (+46/-0)
analytic_plans_group/security/ir.model.access.csv (+2/-0)
analytic_plans_group/view/account_analytic_plans_view.xml (+48/-0)
analytic_plans_group/wizard/__init__.py (+25/-0)
pr_line_related_po_line/__openerp__.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/distribution_account_analytic_plans-dev-yani
Reviewer Review Type Date Requested Status
Yanina Aular (Vauxoo) Approve
Review via email: mp+225682@code.launchpad.net

Description of the change

Grouping analytic entry lines by analytic group, partner, tax code and analytics

To post a comment you must log in.
1074. By Yanina Aular (Vauxoo)

[ADD] analytic_plans_group module added, with new model account.analytic.group for grouping account analytic and journal analytic by group analytic

1075. By Yanina Aular (Vauxoo)

[ADD] security to analytic_plans_group module

1076. By Yanina Aular (Vauxoo)

[IMP] groups added to menu, fix in depends of analytic_entry_line_group

1077. By Yanina Aular (Vauxoo)

[CC] group name changed

1078. By Yanina Aular (Vauxoo)

[ADD] group by analytic groups in account analytics

1079. By Yanina Aular (Vauxoo)

[FIX]

1080. By Yanina Aular (Vauxoo)

[ADD] documentation

Revision history for this message
Yanina Aular (Vauxoo) (yanina-aular) :
review: Approve
Revision history for this message
Yanina Aular (Vauxoo) (yanina-aular) wrote :

A new module called analytic_plans_group creates a field to group analytic distributions. Four new modules that take the group of analytical distribution from analytical distribution, the tax code from account move line, the partner from account move line, and analytic distribution from account move line to pass to the analytic entry line

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'analytic_entry_line_group'
=== added file 'analytic_entry_line_group/__init__.py'
--- analytic_entry_line_group/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,27 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import model
27import wizard
028
=== added file 'analytic_entry_line_group/__openerp__.py'
--- analytic_entry_line_group/__openerp__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,55 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Analytic Entry Line Group',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': '',
32 'description': '''
33Analytic Entry Line Group
34-------------------------
35This module takes analytic_group_id field from analytic account for grouping of
36analytics entry lines.
37
38''',
39 'depends': [
40 'analytic',
41 'account_analytic_plans',
42 'purchase_analytic_plans',
43 'analytic_plans_group',
44 ],
45 'data': [
46 'view/account_analytic_plans_view.xml',
47 ],
48 'demo': [],
49 'test': [],
50 'qweb': [],
51 'js': [],
52 'css': [],
53 'active': False,
54 'installable': True,
55}
056
=== added directory 'analytic_entry_line_group/data'
=== added directory 'analytic_entry_line_group/demo'
=== added directory 'analytic_entry_line_group/doc'
=== added directory 'analytic_entry_line_group/doc/images'
=== added directory 'analytic_entry_line_group/i18n'
=== added directory 'analytic_entry_line_group/model'
=== added file 'analytic_entry_line_group/model/__init__.py'
--- analytic_entry_line_group/model/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/model/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import account_analytic_plans
027
=== added file 'analytic_entry_line_group/model/account_analytic_plans.py'
--- analytic_entry_line_group/model/account_analytic_plans.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/model/account_analytic_plans.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,42 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import time
27from lxml import etree
28
29from openerp.osv import fields, osv
30from openerp import tools
31from openerp.tools.translate import _
32
33class account_analytic_line(osv.Model):
34
35 _inherit = 'account.analytic.line'
36
37 _columns = {
38 'analytic_group_id': fields.related('account_id', 'analytic_group_id',
39 type='many2one', relation='account.analytic.group', string='Analytic Group',
40 store=True, readonly=True),
41 }
42
043
=== added directory 'analytic_entry_line_group/report'
=== added directory 'analytic_entry_line_group/security'
=== added directory 'analytic_entry_line_group/static'
=== added directory 'analytic_entry_line_group/static/description'
=== added file 'analytic_entry_line_group/static/description/index.html'
=== added directory 'analytic_entry_line_group/static/src'
=== added directory 'analytic_entry_line_group/static/src/css'
=== added directory 'analytic_entry_line_group/static/src/img'
=== added file 'analytic_entry_line_group/static/src/img/icon.png'
1Binary files analytic_entry_line_group/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_group/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ44Binary files analytic_entry_line_group/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_group/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ
=== added directory 'analytic_entry_line_group/static/src/js'
=== added directory 'analytic_entry_line_group/static/src/xml'
=== added directory 'analytic_entry_line_group/test'
=== added directory 'analytic_entry_line_group/view'
=== added file 'analytic_entry_line_group/view/account_analytic_plans_view.xml'
--- analytic_entry_line_group/view/account_analytic_plans_view.xml 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/view/account_analytic_plans_view.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,46 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <record id="view_account_analytic_line_form_group" model="ir.ui.view">
6 <field name="name">account.analytic.line.form.group</field>
7 <field name="model">account.analytic.line</field>
8 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
9 <field name="arch" type="xml">
10 <xpath expr="//field[@name='company_id']" position="after">
11 <field name="analytic_group_id"
12 groups="analytic_plans_group.group_account_analytic_group"
13 readonly="1"/>
14 </xpath>
15 </field>
16 </record>
17
18 <record id="view_account_analytic_line_tree_group" model="ir.ui.view">
19 <field name="name">account.analytic.line.tree.group</field>
20 <field name="model">account.analytic.line</field>
21 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
22 <field name="arch" type="xml">
23 <xpath expr="//field[@name='date']" position="after">
24 <field name="analytic_group_id"
25 groups="analytic_plans_group.group_account_analytic_group"
26 />
27 </xpath>
28 </field>
29 </record>
30
31
32 <record id="view_account_analytic_line_filter_group" model="ir.ui.view">
33 <field name="name">account.analytic.line.filter.group</field>
34 <field name="model">account.analytic.line</field>
35 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
36 <field name="arch" type="xml">
37 <xpath expr="//group" position="inside">
38 <filter string="Analytic Group"
39 groups="analytic_plans_group.group_account_analytic_group"
40 context="{'group_by':'analytic_group_id'}"/>
41 </xpath>
42 </field>
43 </record>
44
45 </data>
46</openerp>
047
=== added directory 'analytic_entry_line_group/wizard'
=== added file 'analytic_entry_line_group/wizard/__init__.py'
--- analytic_entry_line_group/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_group/wizard/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'analytic_entry_line_group/workflow'
=== added directory 'analytic_entry_line_partner'
=== added file 'analytic_entry_line_partner/__init__.py'
--- analytic_entry_line_partner/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,27 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import model
27import wizard
028
=== added file 'analytic_entry_line_partner/__openerp__.py'
--- analytic_entry_line_partner/__openerp__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,54 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Analytic Entry Line Partner',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': '',
32 'description': '''
33Analytic Entry Line Partner
34---------------------------
35
36This module takes partner_id field from move line for grouping of
37analytics entry lines by partner_id.
38''',
39 'depends': [
40 'account',
41 'analytic',
42 'account_analytic_plans',
43 ],
44 'data': [
45 'view/account_analytic_plans_view.xml',
46 ],
47 'demo': [],
48 'test': [],
49 'qweb': [],
50 'js': [],
51 'css': [],
52 'active': False,
53 'installable': True,
54}
055
=== added directory 'analytic_entry_line_partner/data'
=== added directory 'analytic_entry_line_partner/demo'
=== added directory 'analytic_entry_line_partner/doc'
=== added directory 'analytic_entry_line_partner/doc/images'
=== added directory 'analytic_entry_line_partner/i18n'
=== added directory 'analytic_entry_line_partner/model'
=== added file 'analytic_entry_line_partner/model/__init__.py'
--- analytic_entry_line_partner/model/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/model/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import account_analytic_plans
027
=== added file 'analytic_entry_line_partner/model/account_analytic_plans.py'
--- analytic_entry_line_partner/model/account_analytic_plans.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/model/account_analytic_plans.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,59 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import time
27from lxml import etree
28
29from openerp.osv import fields, osv
30from openerp import tools
31from openerp.tools.translate import _
32
33class account_analytic_line(osv.Model):
34
35 _inherit = 'account.analytic.line'
36
37 _columns = {
38 'partner_id': fields.many2one('res.partner', 'Partner'),
39 }
40
41class account_move_line(osv.Model):
42
43 _inherit = "account.move.line"
44
45 def create_analytic_lines(self, cr, uid, ids, context=None):
46 if context is None:
47 context = {}
48 ids = isinstance(ids, (int, long)) and [ids] or ids
49
50 res = super(account_move_line, self).create_analytic_lines(cr, uid, ids,context=context)
51
52 analytic_line_obj = self.pool.get('account.analytic.line')
53 for move_line in self.browse(cr, uid, ids, context=context):
54 if move_line.analytics_id:
55 for line in move_line.analytic_lines:
56 analytic_line_obj.write(cr, uid, line.id, {
57 'partner_id': move_line.partner_id.id,
58 }, context=context)
59 return res
060
=== added directory 'analytic_entry_line_partner/report'
=== added directory 'analytic_entry_line_partner/security'
=== added directory 'analytic_entry_line_partner/static'
=== added directory 'analytic_entry_line_partner/static/description'
=== added file 'analytic_entry_line_partner/static/description/index.html'
=== added directory 'analytic_entry_line_partner/static/src'
=== added directory 'analytic_entry_line_partner/static/src/css'
=== added directory 'analytic_entry_line_partner/static/src/img'
=== added file 'analytic_entry_line_partner/static/src/img/icon.png'
1Binary files analytic_entry_line_partner/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_partner/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ61Binary files analytic_entry_line_partner/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_partner/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ
=== added directory 'analytic_entry_line_partner/static/src/js'
=== added directory 'analytic_entry_line_partner/static/src/xml'
=== added directory 'analytic_entry_line_partner/test'
=== added directory 'analytic_entry_line_partner/view'
=== added file 'analytic_entry_line_partner/view/account_analytic_plans_view.xml'
--- analytic_entry_line_partner/view/account_analytic_plans_view.xml 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/view/account_analytic_plans_view.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,38 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record id="view_account_analytic_line_form_partner" model="ir.ui.view">
5 <field name="name">account.analytic.line.form.partner</field>
6 <field name="model">account.analytic.line</field>
7 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
8 <field name="arch" type="xml">
9 <xpath expr="//field[@name='company_id']" position="after">
10 <field name="partner_id" readonly="1"/>
11 </xpath>
12 </field>
13 </record>
14
15 <record id="view_account_analytic_line_tree_partner" model="ir.ui.view">
16 <field name="name">account.analytic.line.tree.partner</field>
17 <field name="model">account.analytic.line</field>
18 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
19 <field name="arch" type="xml">
20 <xpath expr="//field[@name='date']" position="after">
21 <field name="partner_id"/>
22 </xpath>
23 </field>
24 </record>
25
26 <record id="view_account_analytic_line_filter_partner" model="ir.ui.view">
27 <field name="name">account.analytic.line.filter.partner</field>
28 <field name="model">account.analytic.line</field>
29 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
30 <field name="arch" type="xml">
31 <xpath expr="//group" position="inside">
32 <filter string="Partner" context="{'group_by':'partner_id'}"/>
33 </xpath>
34 </field>
35 </record>
36
37 </data>
38</openerp>
039
=== added directory 'analytic_entry_line_partner/wizard'
=== added file 'analytic_entry_line_partner/wizard/__init__.py'
--- analytic_entry_line_partner/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_partner/wizard/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'analytic_entry_line_partner/workflow'
=== added directory 'analytic_entry_line_plans'
=== added file 'analytic_entry_line_plans/__init__.py'
--- analytic_entry_line_plans/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,27 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import model
27import wizard
028
=== added file 'analytic_entry_line_plans/__openerp__.py'
--- analytic_entry_line_plans/__openerp__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,54 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Analytic Entry Line Plans',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': '',
32 'description': '''
33Analytic Entry Line Plans
34-------------------------
35
36This module takes analytics_id field from move line for grouping of
37analytics entry lines by analytics_id.
38''',
39 'depends': [
40 'account',
41 'analytic',
42 'account_analytic_plans',
43 ],
44 'data': [
45 'view/account_analytic_plans_view.xml',
46 ],
47 'demo': [],
48 'test': [],
49 'qweb': [],
50 'js': [],
51 'css': [],
52 'active': False,
53 'installable': True,
54}
055
=== added directory 'analytic_entry_line_plans/data'
=== added directory 'analytic_entry_line_plans/demo'
=== added directory 'analytic_entry_line_plans/doc'
=== added directory 'analytic_entry_line_plans/doc/images'
=== added directory 'analytic_entry_line_plans/i18n'
=== added directory 'analytic_entry_line_plans/model'
=== added file 'analytic_entry_line_plans/model/__init__.py'
--- analytic_entry_line_plans/model/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/model/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import account_analytic_plans
027
=== added file 'analytic_entry_line_plans/model/account_analytic_plans.py'
--- analytic_entry_line_plans/model/account_analytic_plans.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/model/account_analytic_plans.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,59 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import time
27from lxml import etree
28
29from openerp.osv import fields, osv
30from openerp import tools
31from openerp.tools.translate import _
32
33class account_analytic_line(osv.Model):
34
35 _inherit = 'account.analytic.line'
36
37 _columns = {
38 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
39 }
40
41class account_move_line(osv.osv):
42
43 _inherit = "account.move.line"
44
45 def create_analytic_lines(self, cr, uid, ids, context=None):
46 if context is None:
47 context = {}
48 ids = isinstance(ids, (int, long)) and [ids] or ids
49
50 res = super(account_move_line, self).create_analytic_lines(cr, uid, ids,context=context)
51
52 analytic_line_obj = self.pool.get('account.analytic.line')
53 for move_line in self.browse(cr, uid, ids, context=context):
54 if move_line.analytics_id:
55 for line in move_line.analytic_lines:
56 analytic_line_obj.write(cr, uid, line.id, {
57 'analytics_id': move_line.analytics_id.id,
58 }, context=context)
59 return res
060
=== added directory 'analytic_entry_line_plans/report'
=== added directory 'analytic_entry_line_plans/security'
=== added directory 'analytic_entry_line_plans/static'
=== added directory 'analytic_entry_line_plans/static/description'
=== added file 'analytic_entry_line_plans/static/description/index.html'
=== added directory 'analytic_entry_line_plans/static/src'
=== added directory 'analytic_entry_line_plans/static/src/css'
=== added directory 'analytic_entry_line_plans/static/src/img'
=== added file 'analytic_entry_line_plans/static/src/img/icon.png'
1Binary files analytic_entry_line_plans/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_plans/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ61Binary files analytic_entry_line_plans/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_plans/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ
=== added directory 'analytic_entry_line_plans/static/src/js'
=== added directory 'analytic_entry_line_plans/static/src/xml'
=== added directory 'analytic_entry_line_plans/test'
=== added directory 'analytic_entry_line_plans/view'
=== added file 'analytic_entry_line_plans/view/account_analytic_plans_view.xml'
--- analytic_entry_line_plans/view/account_analytic_plans_view.xml 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/view/account_analytic_plans_view.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,39 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <record id="view_account_analytic_line_form_analytics" model="ir.ui.view">
6 <field name="name">account.analytic.line.form.analytics</field>
7 <field name="model">account.analytic.line</field>
8 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
9 <field name="arch" type="xml">
10 <xpath expr="//field[@name='company_id']" position="after">
11 <field name="analytics_id" readonly="1"/>
12 </xpath>
13 </field>
14 </record>
15
16 <record id="view_account_analytic_line_tree_analytics" model="ir.ui.view">
17 <field name="name">account.analytic.line.tree.analytics</field>
18 <field name="model">account.analytic.line</field>
19 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
20 <field name="arch" type="xml">
21 <xpath expr="//field[@name='date']" position="after">
22 <field name="analytics_id"/>
23 </xpath>
24 </field>
25 </record>
26
27 <record id="view_account_analytic_line_filter_analytics" model="ir.ui.view">
28 <field name="name">account.analytic.line.filter.analytics</field>
29 <field name="model">account.analytic.line</field>
30 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
31 <field name="arch" type="xml">
32 <xpath expr="//group" position="inside">
33 <filter string="Analytics" context="{'group_by':'analytics_id'}"/>
34 </xpath>
35 </field>
36 </record>
37
38 </data>
39</openerp>
040
=== added directory 'analytic_entry_line_plans/wizard'
=== added file 'analytic_entry_line_plans/wizard/__init__.py'
--- analytic_entry_line_plans/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_plans/wizard/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'analytic_entry_line_plans/workflow'
=== added directory 'analytic_entry_line_taxcode'
=== added file 'analytic_entry_line_taxcode/__init__.py'
--- analytic_entry_line_taxcode/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,27 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import model
27import wizard
028
=== added file 'analytic_entry_line_taxcode/__openerp__.py'
--- analytic_entry_line_taxcode/__openerp__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,54 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Analytic Entry Line Tax Code',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': '',
32 'description': '''
33Analytic Entry Line Tax Code
34----------------------------
35
36This module takes tax_code_id field from move line for grouping of
37analytics entry lines by tax_code_id.
38''',
39 'depends': [
40 'account',
41 'analytic',
42 'account_analytic_plans',
43 ],
44 'data': [
45 'view/account_analytic_plans_view.xml',
46 ],
47 'demo': [],
48 'test': [],
49 'qweb': [],
50 'js': [],
51 'css': [],
52 'active': False,
53 'installable': True,
54}
055
=== added directory 'analytic_entry_line_taxcode/data'
=== added directory 'analytic_entry_line_taxcode/demo'
=== added directory 'analytic_entry_line_taxcode/doc'
=== added directory 'analytic_entry_line_taxcode/doc/images'
=== added directory 'analytic_entry_line_taxcode/i18n'
=== added directory 'analytic_entry_line_taxcode/model'
=== added file 'analytic_entry_line_taxcode/model/__init__.py'
--- analytic_entry_line_taxcode/model/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/model/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import account_analytic_plans
027
=== added file 'analytic_entry_line_taxcode/model/account_analytic_plans.py'
--- analytic_entry_line_taxcode/model/account_analytic_plans.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/model/account_analytic_plans.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,60 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import time
27from lxml import etree
28
29from openerp.osv import fields, osv
30from openerp import tools
31from openerp.tools.translate import _
32
33class account_analytic_line(osv.Model):
34
35 _inherit = 'account.analytic.line'
36
37 _columns = {
38 'tax_code_id': fields.many2one('account.tax.code', 'Tax Account',
39 help="The Account can either be a base tax code or a tax code account."),
40 }
41
42class account_move_line(osv.Model):
43
44 _inherit = "account.move.line"
45
46 def create_analytic_lines(self, cr, uid, ids, context=None):
47 if context is None:
48 context = {}
49 ids = isinstance(ids, (int, long)) and [ids] or ids
50
51 res = super(account_move_line, self).create_analytic_lines(cr, uid, ids,context=context)
52
53 analytic_line_obj = self.pool.get('account.analytic.line')
54 for move_line in self.browse(cr, uid, ids, context=context):
55 if move_line.analytics_id:
56 for line in move_line.analytic_lines:
57 analytic_line_obj.write(cr, uid, line.id, {
58 'tax_code_id': move_line.tax_code_id.id,
59 }, context=context)
60 return res
061
=== added directory 'analytic_entry_line_taxcode/report'
=== added directory 'analytic_entry_line_taxcode/security'
=== added directory 'analytic_entry_line_taxcode/static'
=== added directory 'analytic_entry_line_taxcode/static/description'
=== added file 'analytic_entry_line_taxcode/static/description/index.html'
=== added directory 'analytic_entry_line_taxcode/static/src'
=== added directory 'analytic_entry_line_taxcode/static/src/css'
=== added directory 'analytic_entry_line_taxcode/static/src/img'
=== added file 'analytic_entry_line_taxcode/static/src/img/icon.png'
1Binary files analytic_entry_line_taxcode/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_taxcode/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ62Binary files analytic_entry_line_taxcode/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_entry_line_taxcode/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ
=== added directory 'analytic_entry_line_taxcode/static/src/js'
=== added directory 'analytic_entry_line_taxcode/static/src/xml'
=== added directory 'analytic_entry_line_taxcode/test'
=== added directory 'analytic_entry_line_taxcode/view'
=== added file 'analytic_entry_line_taxcode/view/account_analytic_plans_view.xml'
--- analytic_entry_line_taxcode/view/account_analytic_plans_view.xml 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/view/account_analytic_plans_view.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,39 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <record id="view_account_analytic_line_form_taxcode" model="ir.ui.view">
6 <field name="name">account.analytic.line.form.taxcode</field>
7 <field name="model">account.analytic.line</field>
8 <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
9 <field name="arch" type="xml">
10 <xpath expr="//field[@name='company_id']" position="after">
11 <field name="tax_code_id" readonly="1"/>
12 </xpath>
13 </field>
14 </record>
15
16 <record id="view_account_analytic_line_tree_taxcode" model="ir.ui.view">
17 <field name="name">account.analytic.line.tree.taxcode</field>
18 <field name="model">account.analytic.line</field>
19 <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
20 <field name="arch" type="xml">
21 <xpath expr="//field[@name='date']" position="after">
22 <field name="tax_code_id"/>
23 </xpath>
24 </field>
25 </record>
26
27 <record id="view_account_analytic_line_filter_taxcode" model="ir.ui.view">
28 <field name="name">account.analytic.line.filter.taxcode</field>
29 <field name="model">account.analytic.line</field>
30 <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
31 <field name="arch" type="xml">
32 <xpath expr="//group" position="inside">
33 <filter string="Tax Code" context="{'group_by':'tax_code_id'}"/>
34 </xpath>
35 </field>
36 </record>
37
38 </data>
39</openerp>
040
=== added directory 'analytic_entry_line_taxcode/wizard'
=== added file 'analytic_entry_line_taxcode/wizard/__init__.py'
--- analytic_entry_line_taxcode/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_entry_line_taxcode/wizard/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'analytic_entry_line_taxcode/workflow'
=== added directory 'analytic_plans_group'
=== added file 'analytic_plans_group/__init__.py'
--- analytic_plans_group/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,27 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import model
27import wizard
028
=== added file 'analytic_plans_group/__openerp__.py'
--- analytic_plans_group/__openerp__.py 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,57 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Analytic Plans Group',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': '',
32 'description': '''
33Analytic Plans Group
34--------------------
35
36This module adds analytic_group_id field in analytic account for grouping of
37analytics entry lines in future.
38
39''',
40 'depends': [
41 'analytic',
42 'account_analytic_plans',
43 'purchase_analytic_plans',
44 ],
45 'data': [
46 'data/res_groups.xml',
47 'security/ir.model.access.csv',
48 'view/account_analytic_plans_view.xml',
49 ],
50 'demo': [],
51 'test': [],
52 'qweb': [],
53 'js': [],
54 'css': [],
55 'active': False,
56 'installable': True,
57}
058
=== added directory 'analytic_plans_group/data'
=== added file 'analytic_plans_group/data/res_groups.xml'
--- analytic_plans_group/data/res_groups.xml 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/data/res_groups.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,8 @@
1<?xml version='1.0' encoding='UTF-8'?>
2<openerp>
3 <data noupdate="1">
4 <record id="group_account_analytic_group" model="res.groups">
5 <field name="name">Grouping Analytics Account</field>
6 </record>
7 </data>
8</openerp>
09
=== added directory 'analytic_plans_group/demo'
=== added directory 'analytic_plans_group/doc'
=== added directory 'analytic_plans_group/doc/images'
=== added directory 'analytic_plans_group/i18n'
=== added directory 'analytic_plans_group/model'
=== added file 'analytic_plans_group/model/__init__.py'
--- analytic_plans_group/model/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/model/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import account_analytic_plans
027
=== added file 'analytic_plans_group/model/account_analytic_plans.py'
--- analytic_plans_group/model/account_analytic_plans.py 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/model/account_analytic_plans.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,46 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import time
27from lxml import etree
28
29from openerp.osv import fields, osv
30from openerp import tools
31from openerp.tools.translate import _
32
33class account_analytic_group(osv.Model):
34 _name = 'account.analytic.group'
35
36 _columns = {
37 'name' : fields.char('Name', required=True, size=128),
38 }
39
40class account_analytic_account(osv.Model):
41 _inherit = 'account.analytic.account'
42
43 _columns = {
44 'analytic_group_id': fields.many2one('account.analytic.group', 'Analytic Group'),
45 }
46
047
=== added directory 'analytic_plans_group/report'
=== added directory 'analytic_plans_group/security'
=== added file 'analytic_plans_group/security/ir.model.access.csv'
--- analytic_plans_group/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/security/ir.model.access.csv 2014-07-04 17:59:48 +0000
@@ -0,0 +1,2 @@
1id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2access_account_analytic_group,access_account_analytic_group,analytic_plans_group.model_account_analytic_group,analytic_plans_group.group_account_analytic_group,1,1,1,1
03
=== added directory 'analytic_plans_group/static'
=== added directory 'analytic_plans_group/static/description'
=== added file 'analytic_plans_group/static/description/index.html'
=== added directory 'analytic_plans_group/static/src'
=== added directory 'analytic_plans_group/static/src/css'
=== added directory 'analytic_plans_group/static/src/img'
=== added file 'analytic_plans_group/static/src/img/icon.png'
1Binary files analytic_plans_group/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_plans_group/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ4Binary files analytic_plans_group/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and analytic_plans_group/static/src/img/icon.png 2014-07-04 17:59:48 +0000 differ
=== added directory 'analytic_plans_group/static/src/js'
=== added directory 'analytic_plans_group/static/src/xml'
=== added directory 'analytic_plans_group/test'
=== added directory 'analytic_plans_group/view'
=== added file 'analytic_plans_group/view/account_analytic_plans_view.xml'
--- analytic_plans_group/view/account_analytic_plans_view.xml 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/view/account_analytic_plans_view.xml 2014-07-04 17:59:48 +0000
@@ -0,0 +1,48 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5
6 <record model="ir.actions.act_window" id="action_account_analytic_group">
7 <field name="name">Account Analytic Group</field>
8 <field name="res_model">account.analytic.group</field>
9 <field name="view_type">form</field>
10 <field name="view_mode">tree,form</field>
11 </record>
12
13 <menuitem parent="account.menu_analytic_accounting"
14 action="action_account_analytic_group"
15 sequence="30"
16 id="menu_analytic_group"
17 name="Analytic Group"
18 groups="analytic_plans_group.group_account_analytic_group"
19 />
20
21 <record id="view_account_analytic_account_form_group" model="ir.ui.view">
22 <field name="name">account.analytic.account.form.group</field>
23 <field name="model">account.analytic.account</field>
24 <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
25 <field name="arch" type="xml">
26 <xpath expr="//field[@name='manager_id']" position="after">
27 <field name="analytic_group_id"
28 groups="analytic_plans_group.group_account_analytic_group"
29 />
30 </xpath>
31 </field>
32 </record>
33
34 <record id="view_account_analytic_account_search_group" model="ir.ui.view">
35 <field name="name">account.analytic.account.search.group</field>
36 <field name="model">account.analytic.account</field>
37 <field name="inherit_id" ref="account.view_account_analytic_account_search"/>
38 <field name="arch" type="xml">
39 <xpath expr="//group[@string='Group By...']" position="inside">
40 <filter string="Analytic Group"
41 groups="analytic_plans_group.group_account_analytic_group"
42 context="{'group_by':'analytic_group_id'}"/>
43 </xpath>
44 </field>
45 </record>
46
47 </data>
48</openerp>
049
=== added directory 'analytic_plans_group/wizard'
=== added file 'analytic_plans_group/wizard/__init__.py'
--- analytic_plans_group/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ analytic_plans_group/wizard/__init__.py 2014-07-04 17:59:48 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'analytic_plans_group/workflow'
=== modified file 'pr_line_related_po_line/__openerp__.py'
--- pr_line_related_po_line/__openerp__.py 2014-06-02 22:16:01 +0000
+++ pr_line_related_po_line/__openerp__.py 2014-07-04 17:59:48 +0000
@@ -24,7 +24,7 @@
24###############################################################################24###############################################################################
2525
26{26{
27 'name': 'pr_line_related_po_line',27 'name': 'PR Line related PO Line',
28 'version': '1.0',28 'version': '1.0',
29 'author': 'Vauxoo',29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',30 'website': 'http://www.vauxoo.com/',

Subscribers

People subscribed via source and target branches

to all changes: