Merge lp:~bruno-bottacini/domsense-agilebg-addons/7-account_due_list_partner_optout_enable into lp:domsense-agilebg-addons

Proposed by bruno bottacini
Status: Needs review
Proposed branch: lp:~bruno-bottacini/domsense-agilebg-addons/7-account_due_list_partner_optout_enable
Merge into: lp:domsense-agilebg-addons
Diff against target: 634 lines (+577/-0)
11 files modified
account_due_list/AUTHORS.txt (+2/-0)
account_due_list/__init__.py (+21/-0)
account_due_list/__openerp__.py (+34/-0)
account_due_list/account_move_line.py (+91/-0)
account_due_list/i18n/de.po (+109/-0)
account_due_list/i18n/it.po (+157/-0)
account_due_list/payment_view.xml (+75/-0)
partner_optout_enable/AUTHORS.txt (+1/-0)
partner_optout_enable/__init__.py (+21/-0)
partner_optout_enable/__openerp__.py (+37/-0)
partner_optout_enable/partner.py (+29/-0)
To merge this branch: bzr merge lp:~bruno-bottacini/domsense-agilebg-addons/7-account_due_list_partner_optout_enable
Reviewer Review Type Date Requested Status
Lorenzo Battistini Disapprove
Review via email: mp+170812@code.launchpad.net
To post a comment you must log in.
227. By bruno bottacini

function fields_view_get give an error on installation

Revision history for this message
Lorenzo Battistini (elbati) wrote :

Ciao Bruno, grazie della proposta, ma questi due moduli probabilmente non approderanno mai alla 7.

Per quanto riguarda 'partner_optout_enable', avevo già proposto il merge sui community branches
https://code.launchpad.net/~elbati/partner-contact-management/adding_partner_optout_enable/+merge/147950
ma poi ci siamo accorti che il campo in questione era inutilizzato.
Se invece hai scoperto che il modulo può comunque essere utile, puoi continuare la discussione su quella MP.

Mentre 'account_due_list' contiene funzionalità già presenti nel modulo 'account_payment_extension' ( https://code.launchpad.net/~account-payment-team/account-payment/7.0 ), quindi sarebbe superfluo.
Anche in questo caso, se ritieni che il modulo possa essere comunque utile, puoi proporre il merge su lp:~account-payment-team/account-payment/7.0

A proposito del pensionamento di account_due_list, bisognerà considerarlo quando migreremo il modulo RiBa (che dipende da account_due_list), rimuovendo la dipendenza.

review: Disapprove
Revision history for this message
bruno bottacini (bruno-bottacini) wrote :

ciao,
peccato, preferivo 'account_due_list' perchè è più pulito ed essenziale

Revision history for this message
Lorenzo Battistini (elbati) wrote :

Ciao Bruno,

proprio in questi giorni si sta parlando di come gestire le compatibilità tra i moduli:
http://openerp-community.2306076.n4.nabble.com/Openerp-community-Proposal-to-document-addons-incompatibilities-tt4642740.html

Inoltre, recentemente è stata dichiarata una incompatibilità proprio con account_payment_extension
http://bazaar.launchpad.net/~acsone-openerp/banking-addons/ba-70-payment-export-refactoring/revision/186
per motivi simili a quelli relativi ad account_due_list: account_payment_extension, in parole povere, fa troppe cose.

Alla luce di questo, ti inviterei a proporre il merge sul branch lp:account-payment/7.0 , specificando l'incompatibilità con account_payment_extension

Revision history for this message
Alex Comba - Agile BG (tafaru) wrote :

Ciao Bruno,

ti informo che me ne sto occupando io di proporre il MP su lp:account-payment/7.0, ti chiederei pertanto di ignorare il precedente commento di Lorenzo:

>Alla luce di questo, ti inviterei a proporre il merge sul branch lp:account-payment/7.0 , specificando l'incompatibilità con account_payment_extension

Grazie.

Unmerged revisions

227. By bruno bottacini

function fields_view_get give an error on installation

226. By bruno bottacini

migrate account_due_list and partner_optout_enable to openerp 7

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'account_due_list'
=== added file 'account_due_list/AUTHORS.txt'
--- account_due_list/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ account_due_list/AUTHORS.txt 2013-06-21 14:32:23 +0000
@@ -0,0 +1,2 @@
1Jordi Esteve <jesteve@zikzakmedia.com>
2Lorenzo Battistini <lorenzo.battistini@agilebg.com>
03
=== added file 'account_due_list/__init__.py'
--- account_due_list/__init__.py 1970-01-01 00:00:00 +0000
+++ account_due_list/__init__.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,21 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
5# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as published
9# by the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21import account_move_line
022
=== added file 'account_due_list/__openerp__.py'
--- account_due_list/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_due_list/__openerp__.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,34 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
5# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as published
9# by the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{
22 'name': "Payments Due list",
23 'version': '0.1',
24 'category': 'Generic Modules/Payment',
25 'description': """A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable.""",
26 'author': 'Agile Business Group, Zikzakmedia SL',
27 'website': 'http://www.agilebg.com',
28 'license': 'AGPL-3',
29 "depends" : ['account'],
30 "data" : ['payment_view.xml'],
31 "demo_xml" : [],
32 "active": False,
33 "installable": True
34}
035
=== added file 'account_due_list/account_move_line.py'
--- account_due_list/account_move_line.py 1970-01-01 00:00:00 +0000
+++ account_due_list/account_move_line.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,91 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (c) 2008 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
6# Jordi Esteve <jesteve@zikzakmedia.com>
7#
8# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
9# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
10#
11# This program is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Affero General Public License as published
13# by the Free Software Foundation, either version 3 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU Affero General Public License
22# along with this program. If not, see <http://www.gnu.org/licenses/>.
23#
24##############################################################################
25
26from openerp.osv import fields, orm
27
28class account_move_line(orm.Model):
29
30 def _get_invoice(self, cr, uid, ids, field_name, arg, context=None):
31 invoice_pool = self.pool.get('account.invoice')
32 res = {}
33 for line in self.browse(cr, uid, ids):
34 inv_ids = invoice_pool.search(cr, uid, [('move_id', '=', line.move_id.id)])
35 if len(inv_ids)>1:
36 raise orm.except_orm(_('Error'), _('Incongruent data: move %s has more than one invoice') % line.move_id.name)
37 if inv_ids:
38 res[line.id] = inv_ids[0]
39 else:
40 res[line.id] = False
41 return res
42
43 def _get_day(self, cr, uid, ids, field_name, arg, context=None):
44 res = {}
45 for line in self.browse(cr, uid, ids):
46 if line.date_maturity:
47 res[line.id] = line.date_maturity
48 else: res[line.id] = False
49 return res
50
51 def _get_move_lines(self, cr, uid, ids, context=None):
52 invoice_pool = self.pool.get('account.invoice')
53 res = []
54 for invoice in invoice_pool.browse(cr, uid, ids):
55 if invoice.move_id:
56 for line in invoice.move_id.line_id:
57 if line.id not in res:
58 res.append(line.id)
59 return res
60
61 _inherit = 'account.move.line'
62
63 _columns = {
64 'invoice_origin': fields.related('invoice', 'origin', type='char', string='Source Doc', store=False),
65 'invoice_date': fields.related('invoice', 'date_invoice', type='date', string='Invoice Date', store=False),
66 'partner_ref': fields.related('partner_id', 'ref', type='char', string='Partner Ref', store=False),
67 'payment_term_id': fields.related('invoice', 'payment_term', type='many2one', string='Payment Term', store=False, relation="account.payment.term"),
68 'stored_invoice_id': fields.function(_get_invoice, method=True, string="Invoice", type="many2one", relation="account.invoice",
69 store={
70 'account.move.line': (lambda self, cr, uid, ids, c={}: ids, ['move_id'], 10),
71 'account.invoice': (_get_move_lines, ['move_id'], 10),
72 }),
73 'day': fields.function(_get_day, method=True, string="Day", type="char", size=16,
74 store={
75 'account.move.line': (lambda self, cr, uid, ids, c={}: ids, ['date_maturity'], 10),
76 }),
77 }
78
79 def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False, submenu=False):
80 model_data_obj = self.pool.get('ir.model.data')
81 ids = model_data_obj.search(cr, uid, [('module','=','account_due_list'), ('name','=','view_payments_tree')])
82 if ids:
83 view_payments_tree_id = model_data_obj.get_object_reference(
84 cr, uid, 'account_due_list', 'view_payments_tree')
85 if ids and view_id == view_payments_tree_id[1]:
86 # Use due list
87 result = super(orm.Model, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
88 else:
89 # Use special views for account.move.line object (for ex. tree view contains user defined fields)
90 result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
91 return result
092
=== added directory 'account_due_list/i18n'
=== added file 'account_due_list/i18n/de.po'
--- account_due_list/i18n/de.po 1970-01-01 00:00:00 +0000
+++ account_due_list/i18n/de.po 2013-06-21 14:32:23 +0000
@@ -0,0 +1,109 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_due_list
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-10-11 08:28+0000\n"
10"PO-Revision-Date: 2011-10-11 10:35+0100\n"
11"Last-Translator: Thomas Winteler <info@win-soft.ch>\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"Plural-Forms: \n"
17
18#. module: account_due_list
19#: view:account.move.line:0
20msgid "Receivable"
21msgstr "Debitor"
22
23#. module: account_due_list
24#: field:account.move.line,invoice_origin:0
25msgid "Source Doc"
26msgstr "Herkunft"
27
28#. module: account_due_list
29#: view:account.move.line:0
30msgid "Payable"
31msgstr "Kreditor"
32
33#. module: account_due_list
34#: constraint:account.move.line:0
35msgid "You can not create move line on closed account."
36msgstr "Sie können keine Buchung auf einem bereits abgeschlossenen Konto vornehmen."
37
38#. module: account_due_list
39#: field:account.move.line,invoice_date:0
40msgid "Invoice Date"
41msgstr "Rechnungsdatum"
42
43#. module: account_due_list
44#: view:account.move.line:0
45msgid "Unreconciled"
46msgstr "Offene Posten"
47
48#. module: account_due_list
49#: view:account.move.line:0
50msgid "Total Debit"
51msgstr "Total Debit"
52
53#. module: account_due_list
54#: view:account.move.line:0
55msgid "Group By..."
56msgstr "Gruppierung..."
57
58#. module: account_due_list
59#: sql_constraint:account.move.line:0
60msgid "Wrong credit or debit value in accounting entry !"
61msgstr "Falscher Buchungsbetrag in Soll oder Haben"
62
63#. module: account_due_list
64#: view:account.move.line:0
65#: model:ir.actions.act_window,name:account_due_list.action_invoice_payments
66#: model:ir.ui.menu,name:account_due_list.menu_action_invoice_payments
67msgid "Payments"
68msgstr "Zahlungen"
69
70#. module: account_due_list
71#: view:account.move.line:0
72msgid "Search Payments"
73msgstr "Zahlungen suchen"
74
75#. module: account_due_list
76#: model:ir.model,name:account_due_list.model_account_move_line
77msgid "Journal Items"
78msgstr "Buchungsjournale"
79
80#. module: account_due_list
81#: view:account.move.line:0
82msgid "Partner"
83msgstr "Partner"
84
85#. module: account_due_list
86#: constraint:account.move.line:0
87msgid "You can not create move line on view account."
88msgstr "Sie können keine Buchungen auf Konten des Typs Ansicht erstellen."
89
90#. module: account_due_list
91#: constraint:account.move.line:0
92msgid "Company must be same for its related account and period."
93msgstr "Das Unternehmen muss für zugehörige Konten und Perioden identisch sein."
94
95#. module: account_due_list
96#: view:account.move.line:0
97msgid "Total Credit"
98msgstr "Total Kredit"
99
100#. module: account_due_list
101#: field:account.move.line,partner_ref:0
102msgid "Partner Ref"
103msgstr "Partner Ref"
104
105#. module: account_due_list
106#: view:account.move.line:0
107msgid "Overdue"
108msgstr "Überfällig"
109
0110
=== added file 'account_due_list/i18n/it.po'
--- account_due_list/i18n/it.po 1970-01-01 00:00:00 +0000
+++ account_due_list/i18n/it.po 2013-06-21 14:32:23 +0000
@@ -0,0 +1,157 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_due_list
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2012-01-01 14:38+0000\n"
10"PO-Revision-Date: 2012-01-01 15:39+0100\n"
11"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\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"Plural-Forms: \n"
17
18#. module: account_due_list
19#: view:account.move.line:0
20msgid "Receivable"
21msgstr "Crediti"
22
23#. module: account_due_list
24#: field:account.move.line,payment_term_id:0
25msgid "Payment Term"
26msgstr "Termini di pagamento"
27
28#. module: account_due_list
29#: view:account.move.line:0
30msgid "Unreconciled"
31msgstr "Non riconciliate"
32
33#. module: account_due_list
34#: view:account.move.line:0
35msgid "Group By..."
36msgstr "Raggruppa per..."
37
38#. module: account_due_list
39#: field:account.move.line,invoice_origin:0
40msgid "Source Doc"
41msgstr "Documento di origine"
42
43#. module: account_due_list
44#: field:account.move.line,invoice_date:0
45msgid "Invoice Date"
46msgstr "Data fattura"
47
48#. module: account_due_list
49#: code:addons/account_due_list/account_move_line.py:37
50#, python-format
51msgid "Incongruent data: move %s has more than one invoice"
52msgstr "Dati incongruenti: la registrazione %s ha più di una fattura"
53
54#. module: account_due_list
55#: view:account.move.line:0
56msgid "Payable"
57msgstr "Debiti"
58
59#. module: account_due_list
60#: view:account.move.line:0
61msgid "Search Payments"
62msgstr "Ricerca pagamenti"
63
64#. module: account_due_list
65#: model:ir.model,name:account_due_list.model_account_move_line
66msgid "Journal Items"
67msgstr "Voci sezionale"
68
69#. module: account_due_list
70#: constraint:account.move.line:0
71msgid "Company must be same for its related account and period."
72msgstr "L'azienda deve essere la stessa del suo conto e periodo."
73
74#. module: account_due_list
75#: view:account.move.line:0
76msgid "Total Credit"
77msgstr "Credito totale"
78
79#. module: account_due_list
80#: constraint:account.move.line:0
81msgid "You can not create move line on closed account."
82msgstr "Nonè possibile creare movimenti su un conto chiuso."
83
84#. module: account_due_list
85#: view:account.move.line:0
86msgid "Total Debit"
87msgstr "Debito totale"
88
89#. module: account_due_list
90#: sql_constraint:account.move.line:0
91msgid "Wrong credit or debit value in accounting entry !"
92msgstr "Valore di debito o credito errato nella registrazione contabile"
93
94#. module: account_due_list
95#: view:account.move.line:0
96#: model:ir.actions.act_window,name:account_due_list.action_invoice_payments
97#: model:ir.ui.menu,name:account_due_list.menu_action_invoice_payments
98msgid "Payments"
99msgstr "Pagamenti"
100
101#. module: account_due_list
102#: code:addons/account_due_list/account_move_line.py:37
103#, python-format
104msgid "Error"
105msgstr "Errore"
106
107#. module: account_due_list
108#: model:ir.module.module,description:account_due_list.module_meta_information
109msgid "A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable."
110msgstr "A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable."
111
112#. module: account_due_list
113#: view:account.move.line:0
114msgid "Overdue"
115msgstr "Scaduti"
116
117#. module: account_due_list
118#: view:account.move.line:0
119msgid "Due date"
120msgstr "Data scadenza"
121
122#. module: account_due_list
123#: model:ir.module.module,shortdesc:account_due_list.module_meta_information
124msgid "Payments Due list"
125msgstr "Scadenzario pagamenti"
126
127#. module: account_due_list
128#: field:account.move.line,day:0
129msgid "Day"
130msgstr "Giorno"
131
132#. module: account_due_list
133#: view:account.move.line:0
134msgid "Month"
135msgstr "Mese"
136
137#. module: account_due_list
138#: view:account.move.line:0
139#: field:account.move.line,stored_invoice_id:0
140msgid "Invoice"
141msgstr "Fattura"
142
143#. module: account_due_list
144#: view:account.move.line:0
145msgid "Partner"
146msgstr "Partner"
147
148#. module: account_due_list
149#: field:account.move.line,partner_ref:0
150msgid "Partner Ref"
151msgstr "Rif Partner"
152
153#. module: account_due_list
154#: constraint:account.move.line:0
155msgid "You can not create move line on view account."
156msgstr "Non è possibile creare movimenti su conti vista."
157
0158
=== added file 'account_due_list/payment_view.xml'
--- account_due_list/payment_view.xml 1970-01-01 00:00:00 +0000
+++ account_due_list/payment_view.xml 2013-06-21 14:32:23 +0000
@@ -0,0 +1,75 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3<data>
4
5 <!--****************************** PAYMENTS ***********************************-->
6 <record id="view_payments_tree" model="ir.ui.view">
7 <field name="name">Payments</field>
8 <field name="model">account.move.line</field>
9 <field name="field_parent">partner_id</field>
10 <field name="priority" eval="20"/>
11 <field name="arch" type="xml">
12 <tree string="Payments" colors="grey:reconcile_id!=False;red:date_maturity&lt;current_date">
13 <field name="stored_invoice_id" readonly="1"/>
14 <field name="invoice_date" readonly="1"/>
15 <field name="invoice_origin" readonly="1"/>
16 <field name="partner_id" readonly="1"/>
17 <field name="partner_ref" readonly="1"/>
18 <field name="payment_term_id" readonly="1"/>
19 <field name="account_id" readonly="1"/>
20 <field name="debit" readonly="1" sum="Total Debit"/>
21 <field name="credit" readonly="1" sum="Total Credit"/>
22 <field name="date_maturity"/>
23 <field name="move_id" readonly="1"/>
24 <field name="reconcile_id" readonly="1"/>
25 <field name="reconcile_partial_id" readonly="1"/>
26 <field name="day" invisible="1"/>
27 </tree>
28 </field>
29 </record>
30
31 <record id="view_payments_filter" model="ir.ui.view">
32 <field name="name">Payments Select</field>
33 <field name="model">account.move.line</field>
34 <field name="priority" eval="20"/>
35 <field name="arch" type="xml">
36 <search string="Search Payments">
37 <group col='10' colspan='4'>
38 <filter icon="terp-sale" string="Receivable" domain="[('account_id.type','=','receivable')]" help="Receivable payments"/>
39 <filter icon="terp-purchase" string="Payable" domain="[('account_id.type','=','payable')]" help="Payable payments"/>
40 <separator orientation="vertical"/>
41 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False)]" help="Unreconciled payments"/>
42 <separator orientation="vertical"/>
43 <filter icon="terp-go-today" string="Overdue" domain="[('date_maturity','&lt;',time.strftime('%%Y-%%m-%%d'))]" help="Overdue payments" name="overdue"/>
44 <separator orientation="vertical"/>
45 <field name="account_id"/>
46 <field name="partner_id"/>
47 <field name="invoice"/>
48 <field name="invoice_origin"/>
49 <field name="date_maturity"/>
50 </group>
51 <newline/>
52 <group expand="0" string="Group By...">
53 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
54 <filter string="Invoice" icon="terp-folder-orange" domain="[]" context="{'group_by':'stored_invoice_id'}"/>
55 <filter string="Due date" icon="terp-go-today" domain="[]" context="{'group_by':'day'}"/>
56 <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'date_maturity'}"/>
57 </group>
58 </search>
59 </field>
60 </record>
61
62 <!-- Invoice Payments -->
63 <record model="ir.actions.act_window" id="action_invoice_payments">
64 <field name="name">Payments</field>
65 <field name="res_model">account.move.line</field>
66 <field name="view_type">form</field>
67 <field name="view_mode">tree,form</field>
68 <field name="view_id" ref="view_payments_tree"/>
69 <field name="search_view_id" ref="view_payments_filter"/>
70 <field name="domain">['&amp;','|',('account_id.type','=','payable'),('account_id.type','=','receivable'),'|','|','|',('journal_id.code','=','SAJ'),('journal_id.code','=','EXJ'),('journal_id.code','=','SCNJ'),('journal_id.code','=','ECNJ')]</field>
71 </record>
72 <menuitem name="Payments" parent="account.menu_finance_entries" action="action_invoice_payments" id="menu_action_invoice_payments" sequence="5"/>
73
74</data>
75</openerp>
076
=== added directory 'partner_optout_enable'
=== added file 'partner_optout_enable/AUTHORS.txt'
--- partner_optout_enable/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ partner_optout_enable/AUTHORS.txt 2013-06-21 14:32:23 +0000
@@ -0,0 +1,1 @@
1Lorenzo Battistini <lorenzo.battistini@agilebg.com>
02
=== added file 'partner_optout_enable/__init__.py'
--- partner_optout_enable/__init__.py 1970-01-01 00:00:00 +0000
+++ partner_optout_enable/__init__.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,21 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
5# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as published
9# by the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21import partner
022
=== added file 'partner_optout_enable/__openerp__.py'
--- partner_optout_enable/__openerp__.py 1970-01-01 00:00:00 +0000
+++ partner_optout_enable/__openerp__.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,37 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>)
5# Copyright (C) 2012 Domsense srl (<http://www.domsense.com>)
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as published
9# by the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{
22 'name': "Enable Opt-out for partners",
23 'version': '0.1',
24 'category': 'Marketing',
25 'description': """
26This module simply enable by default the 'opt-out' field on partner.
27So that, by default, partner will not receive any automated email notification, such as the availability of invoices.
28""",
29 'author': 'Agile Business Group',
30 'website': 'http://www.agilebg.com',
31 'license': 'AGPL-3',
32 "depends" : ['email_template'],
33 "data" : [],
34 "demo_xml" : [],
35 "active": False,
36 "installable": True
37}
038
=== added file 'partner_optout_enable/partner.py'
--- partner_optout_enable/partner.py 1970-01-01 00:00:00 +0000
+++ partner_optout_enable/partner.py 2013-06-21 14:32:23 +0000
@@ -0,0 +1,29 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>)
5# Copyright (C) 2012 Domsense srl (<http://www.domsense.com>)
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as published
9# by the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from openerp.osv import fields,orm
23
24class res_partner(orm.Model):
25 _inherit = 'res.partner'
26
27 _defaults = {
28 'opt_out': True,
29 }

Subscribers

People subscribed via source and target branches