- [[ move_ids.name ]] - [[ get_ref(voucher.id,move_ids) ]]
+ [[ move_ids.name ]] - [[ voucher.reference ]]
diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py
index df30539b3ff..4b1e48d15eb 100644
--- a/addons/account_voucher/voucher.py
+++ b/addons/account_voucher/voucher.py
@@ -89,7 +89,7 @@ class account_voucher(osv.osv):
('purchase','Purchase'),
('payment','Payment'),
('receipt','Receipt'),
- ],'Type'),
+ ],'Default Type', readonly=True, states={'draft':[('readonly',False)]}),
'name':fields.char('Memo', size=256, readonly=True, states={'draft':[('readonly',False)]}),
'date':fields.date('Date', readonly=True, states={'draft':[('readonly',False)]}, help="Effective date for accounting entries"),
'journal_id':fields.many2one('account.journal', 'Journal', required=True, readonly=True, states={'draft':[('readonly',False)]}),
@@ -116,7 +116,7 @@ class account_voucher(osv.osv):
\n* The \'Cancelled\' state is used when user cancel voucher.'),
'amount': fields.float('Total', digits=(16, 2), required=True, readonly=True, states={'draft':[('readonly',False)]}),
'tax_amount':fields.float('Tax Amount', digits=(14,2), readonly=True, states={'draft':[('readonly',False)]}),
- 'reference': fields.char('Ref #', size=64, readonly=True, states={'draft':[('readonly',False)]}, help="Payment or Receipt transaction number, i.e. Bank cheque number or payorder number or Wire transfer number or Acknowledge number."),
+ 'reference': fields.char('Ref #', size=64, readonly=True, states={'draft':[('readonly',False)]}, help="Transaction referance number."),
'number': fields.related('move_id', 'name', type="char", readonly=True, string='Number'),
'move_id':fields.many2one('account.move', 'Account Entry'),
'move_ids': fields.related('move_id','line_id', type='many2many', relation='account.move.line', string='Journal Items', readonly=True),
@@ -155,8 +155,8 @@ class account_voucher(osv.osv):
voucher_amount = 0.0
for line in voucher.line_ids:
voucher_amount += line.untax_amount or line.amount
- line.amount = line.untax_amount
- voucher_line_pool.write(cr, uid, [line.id], {'amount':line.untax_amount, 'untax_amount':line.untax_amount})
+ line.amount = line.untax_amount or line.amount
+ voucher_line_pool.write(cr, uid, [line.id], {'amount':line.amount, 'untax_amount':line.untax_amount})
if not voucher.tax_id:
continue
@@ -611,6 +611,7 @@ class account_voucher(osv.osv):
}
if view_type == 'form':
tview = voucher_type.get(context.get('type'))
+ tview = tview or 'view_voucher_form'
result = data_pool._get_id(cr, uid, 'account_voucher', tview)
view_id = data_pool.browse(cr, uid, result, context=context).res_id
@@ -707,13 +708,16 @@ class account_voucher_line(osv.osv):
return values
journal = journal_pool.browse(cr, user, journal_id)
account_id = False
+ ttype = 'cr'
if journal.type in ('sale', 'purchase_refund'):
account_id = journal.default_credit_account_id and journal.default_credit_account_id.id or False
elif journal.type in ('purchase', 'expense', 'sale_refund'):
account_id = journal.default_debit_account_id and journal.default_debit_account_id.id or False
+ ttype = 'dr'
elif partner_id:
partner = partner_pool.browse(cr, user, partner_id, context=context)
if context.get('type') == 'payment':
+ ttype = 'dr'
account_id = partner.property_account_payable.id
elif context.get('type') == 'receipt':
account_id = partner.property_account_receivable.id
@@ -722,6 +726,7 @@ class account_voucher_line(osv.osv):
raise osv.except_osv(_('Invalid Error !'), _('Please change partner and try again !'))
values.update({
'account_id':account_id,
+ 'type':ttype
})
return values
account_voucher_line()
diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml
index 4e2dc624381..dfeeb78ec17 100644
--- a/addons/account_voucher/voucher_payment_receipt_view.xml
+++ b/addons/account_voucher/voucher_payment_receipt_view.xml
@@ -8,7 +8,7 @@
@@ -74,7 +77,7 @@
-
+
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index 31dc8f58c0a..e109865be72 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -2,18 +2,19 @@
-
-
-
-
-
-
+
-
+
@@ -26,7 +27,7 @@
-
+
@@ -34,7 +35,7 @@
-
+
@@ -79,7 +80,7 @@
-
+
@@ -130,17 +131,19 @@
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml
index bd081fca7ec..a8b86f5877e 100644
--- a/addons/account_voucher/voucher_view.xml
+++ b/addons/account_voucher/voucher_view.xml
@@ -27,46 +27,37 @@
-
+
-
-
-
+
+
+
+
-
+
-
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
@@ -78,9 +69,10 @@
-
+
+
From 118aee0ca156ae50e79e0091340ccf153114531e Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 10:15:01 +0530
Subject: [PATCH 32/62] [IMP, ADD, REM] account_payment: Tree view improved,
Add search view on payment order, remove some unused actions
bzr revid: mra@mra-laptop-20100901044501-6togaledzvdn1gko
---
.../account_payment/account_payment_view.xml | 51 ++++++++++++-------
1 file changed, 32 insertions(+), 19 deletions(-)
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index 4fe86cf44c6..9f0daff6b8c 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -179,43 +179,56 @@
tree
-
+
-
+
+
+
+
+
+ payment.order.tree.search
+ payment.order
+ search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Payment Orders
payment.order
form
tree,form
+
+
-
- Draft Payment Order
- payment.order
- form
- tree,form
- [('state','=','draft')]
-
-
-
-
- Payment Orders to Approve
- payment.order
- form
- tree,form
- [('state','=','open')]
-
-
New Payment Order
payment.order
From cebf48057f2a7b897eba1eb2e07a6e709b20d7d8 Mon Sep 17 00:00:00 2001
From: "pap (openerp)"
Date: Wed, 1 Sep 2010 10:34:20 +0530
Subject: [PATCH 33/62] [IMP] Account: added selection to dispaly all the
partners or only partners with non-zero balance on partner balance report
wizard
bzr revid: pap@tinyerp.co.in-20100901050420-7jyu1o7nh0qyrjbv
---
addons/account/report/account_partner_balance.py | 12 ++++++++----
.../account/wizard/account_report_partner_balance.py | 5 ++++-
.../wizard/account_report_partner_balance_view.xml | 1 +
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/addons/account/report/account_partner_balance.py b/addons/account/report/account_partner_balance.py
index 55c9d7b89cc..5d6788f240c 100644
--- a/addons/account/report/account_partner_balance.py
+++ b/addons/account/report/account_partner_balance.py
@@ -100,10 +100,11 @@ class partner_balance(report_sxw.rml_parse, common_report_header):
## Compute Code
#
self.initial_balance = data['form'].get('initial_balance', True)
+ self.display_partner = data['form'].get('display_partner', 'non-zero_balance')
self.query = data['form'].get('query_line', '')
self.init_query = data['form'].get('initial_bal_query', '')
self.result_selection = data['form'].get('result_selection')
-
+
if (self.result_selection == 'customer' ):
self.ACCOUNT_TYPE = ('receivable',)
elif (self.result_selection == 'supplier'):
@@ -205,9 +206,12 @@ class partner_balance(report_sxw.rml_parse, common_report_header):
res_init['enlitige'] = 0.0 # fix me
res_init['account_id'] = r['account_id']
final_init[r['account_id']] = res_init
- for r in res:
- full_account.append(r)
-
+
+ if self.display_partner == 'non-zero_balance':
+ full_account = [r for r in res if r['sdebit'] > 0 or r['scredit'] > 0]
+ else:
+ full_account = [r for r in res]
+
## We will now compute Total
subtotal_row = self._add_subtotal(full_account)
if not self.initial_balance:
diff --git a/addons/account/wizard/account_report_partner_balance.py b/addons/account/wizard/account_report_partner_balance.py
index cadce66a831..819889b5128 100644
--- a/addons/account/wizard/account_report_partner_balance.py
+++ b/addons/account/wizard/account_report_partner_balance.py
@@ -31,16 +31,19 @@ class account_partner_balance(osv.osv_memory):
_columns = {
'initial_balance': fields.boolean('Include Initial Balances'
,help='It adds initial balance row on report which display previous sum amount of debit/credit/balance'),
+ 'display_partner': fields.selection([('non-zero_balance', 'With balance is not equal to 0'), ('all', 'All Partners')]
+ ,'Display Partners')
}
_defaults = {
'initial_balance': True,
+ 'display_partner': 'non-zero_balance'
}
def _print_report(self, cr, uid, ids, data, query_line, context=None):
if context is None:
context = {}
data = self.pre_print_report(cr, uid, ids, data, query_line, context=context)
- data['form'].update(self.read(cr, uid, ids, ['initial_balance'])[0])
+ data['form'].update(self.read(cr, uid, ids, ['initial_balance', 'display_partner'])[0])
return {
'type': 'ir.actions.report.xml',
'report_name': 'account.partner.balance',
diff --git a/addons/account/wizard/account_report_partner_balance_view.xml b/addons/account/wizard/account_report_partner_balance_view.xml
index 72e94b767c3..dc75d032329 100644
--- a/addons/account/wizard/account_report_partner_balance_view.xml
+++ b/addons/account/wizard/account_report_partner_balance_view.xml
@@ -11,6 +11,7 @@
+
From 8197f130f3f49c90bc6847e4ed339c16466cd961 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 10:41:44 +0530
Subject: [PATCH 34/62] [IMP] account_payment: put attrs on schedule if fixed
(readonly if not fixed) + rename that field (schedule date)
bzr revid: mra@mra-laptop-20100901051144-jarlb1vncdi5j2u1
---
addons/account_payment/account_payment.py | 10 +++++-----
addons/account_payment/account_payment_view.xml | 4 ++--
addons/account_payment/i18n/account_payment.pot | 4 ++--
addons/account_payment/i18n/ar.po | 4 ++--
addons/account_payment/i18n/bg.po | 4 ++--
addons/account_payment/i18n/bs.po | 4 ++--
addons/account_payment/i18n/ca.po | 4 ++--
addons/account_payment/i18n/cs.po | 4 ++--
addons/account_payment/i18n/de.po | 4 ++--
addons/account_payment/i18n/el.po | 4 ++--
addons/account_payment/i18n/es.po | 4 ++--
addons/account_payment/i18n/es_AR.po | 4 ++--
addons/account_payment/i18n/et.po | 4 ++--
addons/account_payment/i18n/fi.po | 4 ++--
addons/account_payment/i18n/fr.po | 4 ++--
addons/account_payment/i18n/hi.po | 4 ++--
addons/account_payment/i18n/hr.po | 4 ++--
addons/account_payment/i18n/hu.po | 4 ++--
addons/account_payment/i18n/id.po | 4 ++--
addons/account_payment/i18n/it.po | 4 ++--
addons/account_payment/i18n/ko.po | 4 ++--
addons/account_payment/i18n/lt.po | 4 ++--
addons/account_payment/i18n/mn.po | 4 ++--
addons/account_payment/i18n/nl.po | 4 ++--
addons/account_payment/i18n/nl_BE.po | 4 ++--
addons/account_payment/i18n/oc.po | 4 ++--
addons/account_payment/i18n/pl.po | 4 ++--
addons/account_payment/i18n/pt.po | 4 ++--
addons/account_payment/i18n/pt_BR.po | 4 ++--
addons/account_payment/i18n/ro.po | 4 ++--
addons/account_payment/i18n/ru.po | 4 ++--
addons/account_payment/i18n/sl.po | 4 ++--
addons/account_payment/i18n/sq.po | 4 ++--
addons/account_payment/i18n/sv.po | 4 ++--
addons/account_payment/i18n/tlh.po | 4 ++--
addons/account_payment/i18n/tr.po | 4 ++--
addons/account_payment/i18n/uk.po | 4 ++--
addons/account_payment/i18n/vi.po | 4 ++--
addons/account_payment/i18n/zh_CN.po | 4 ++--
addons/account_payment/i18n/zh_TW.po | 4 ++--
addons/account_payment/wizard/account_payment_order.py | 2 +-
addons/l10n_ch/wizard/create_dta.py | 4 ++--
42 files changed, 86 insertions(+), 86 deletions(-)
diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py
index a27a2d2e72d..149ec5eaad8 100644
--- a/addons/account_payment/account_payment.py
+++ b/addons/account_payment/account_payment.py
@@ -90,7 +90,7 @@ class payment_order(osv.osv):
return res
_columns = {
- 'date_planned': fields.date('Scheduled date if fixed', states={'done':[('readonly',True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'),
+ 'date_scheduled': fields.date('Scheduled date if fixed', states={'done':[('readonly',True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'),
'reference': fields.char('Reference', size=128, required=1, states={'done':[('readonly',True)]}),
'mode': fields.many2one('payment.mode','Payment mode', select=True, required=1, states={'done':[('readonly',True)]}, help='Select the Payment Mode to be applied.'),
'state': fields.selection([
@@ -107,7 +107,7 @@ class payment_order(osv.osv):
('now', 'Directly'),
('due', 'Due date'),
('fixed', 'Fixed date')
- ], "Preferred date", change_default=True, required=True, states={'done':[('readonly',True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."),
+ ], "Preferred date", change_default=True, required=True, states={'done':[('readonly', True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."),
'date_created': fields.date('Creation date', readonly=True),
'date_done': fields.date('Execution date', readonly=True),
}
@@ -252,7 +252,7 @@ class payment_line(osv.osv):
res = {}
for line in self.browse(cursor, user, ids, context=context):
if line.order_id.date_prefered == 'fixed':
- res[line.id] = line.order_id.date_planned
+ res[line.id] = line.order_id.date_scheduled
elif line.order_id.date_prefered == 'due':
res[line.id] = line.due_date or time.strftime('%Y-%m-%d')
else:
@@ -330,7 +330,7 @@ class payment_line(osv.osv):
('name_uniq', 'UNIQUE(name)', 'The payment line name must be unique!'),
]
- def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_planned, currency=False, company_currency=False, context=None):
+ def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_scheduled, currency=False, company_currency=False, context=None):
data={}
data['amount_currency']=data['communication']=data['partner_id']=data['reference']=data['date_created']=data['bank_id']=data['amount']=False
@@ -365,7 +365,7 @@ class payment_line(osv.osv):
elif date_prefered == 'due':
data['date'] = line.date_maturity
elif date_prefered == 'fixed':
- data['date'] = date_planned
+ data['date'] = date_scheduled
return {'value': data}
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index 9f0daff6b8c..79bca265531 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -109,14 +109,14 @@
-
+
-
+
diff --git a/addons/account_payment/i18n/account_payment.pot b/addons/account_payment/i18n/account_payment.pot
index 35376e770af..8c99499e5d9 100644
--- a/addons/account_payment/i18n/account_payment.pot
+++ b/addons/account_payment/i18n/account_payment.pot
@@ -16,7 +16,7 @@ msgstr ""
"Plural-Forms: \n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -166,7 +166,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/ar.po b/addons/account_payment/i18n/ar.po
index 0bbb577bafc..02ce6504dad 100644
--- a/addons/account_payment/i18n/ar.po
+++ b/addons/account_payment/i18n/ar.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/bg.po b/addons/account_payment/i18n/bg.po
index 3efda3ce450..9dbda1f16e2 100644
--- a/addons/account_payment/i18n/bg.po
+++ b/addons/account_payment/i18n/bg.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Планирана дата ако е определена"
@@ -172,7 +172,7 @@ msgid "Payment lines"
msgstr "Редове от плащане"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Избор на дата ако искате да има зададена предпочитана дата"
diff --git a/addons/account_payment/i18n/bs.po b/addons/account_payment/i18n/bs.po
index 0dc31e7a75f..68001a226b9 100644
--- a/addons/account_payment/i18n/bs.po
+++ b/addons/account_payment/i18n/bs.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Zakazani datum ako je fiskno"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Linije plaćanja"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Odaberite datum ako ste odabrali fiksni poželjni datum"
diff --git a/addons/account_payment/i18n/ca.po b/addons/account_payment/i18n/ca.po
index 8968ee373ef..0813a1573ea 100644
--- a/addons/account_payment/i18n/ca.po
+++ b/addons/account_payment/i18n/ca.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Data planificada si fixa"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Línies de pagament"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Seleccioneu una data si heu seleccionat que la data preferida sigui fixa."
diff --git a/addons/account_payment/i18n/cs.po b/addons/account_payment/i18n/cs.po
index dc873b6d817..8eaccebcfd1 100644
--- a/addons/account_payment/i18n/cs.po
+++ b/addons/account_payment/i18n/cs.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/de.po b/addons/account_payment/i18n/de.po
index d4300e1d944..212d27f150e 100644
--- a/addons/account_payment/i18n/de.po
+++ b/addons/account_payment/i18n/de.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Terminierung bei Auswahl 'festes Datum'"
@@ -173,7 +173,7 @@ msgid "Payment lines"
msgstr "Zahlungsvorschlag Positionen"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Wähle ein Datum wenn Ihre Auswahl 'festes Datum' sein soll."
diff --git a/addons/account_payment/i18n/el.po b/addons/account_payment/i18n/el.po
index 485677bd368..8b96dbb8347 100644
--- a/addons/account_payment/i18n/el.po
+++ b/addons/account_payment/i18n/el.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Προγραμματισμένη ημερομηνία εάν είναι καθορισμένο"
@@ -175,7 +175,7 @@ msgid "Payment lines"
msgstr "Γραμμές Πληρωμής"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Επιλέξτε μιά ημερομηνία εάν έχετε επιλέξει προτιμώμενη ημερομηνία ως "
diff --git a/addons/account_payment/i18n/es.po b/addons/account_payment/i18n/es.po
index 27c523068c2..ad5017945a7 100644
--- a/addons/account_payment/i18n/es.po
+++ b/addons/account_payment/i18n/es.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Fecha planificada si es fija"
@@ -175,7 +175,7 @@ msgid "Payment lines"
msgstr "Líneas de pago"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Seleccione una fecha si ha seleccionado que la fecha preferida sea fija."
diff --git a/addons/account_payment/i18n/es_AR.po b/addons/account_payment/i18n/es_AR.po
index a8741e3d0e5..ee7c56ad734 100644
--- a/addons/account_payment/i18n/es_AR.po
+++ b/addons/account_payment/i18n/es_AR.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Fecha planificada si fija"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Líneas de pago"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Seleccione una fecha si ha elegido que la fecha preferida sea fija."
diff --git a/addons/account_payment/i18n/et.po b/addons/account_payment/i18n/et.po
index b5d07c8219e..5ceb3f3f8a3 100644
--- a/addons/account_payment/i18n/et.po
+++ b/addons/account_payment/i18n/et.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Planeeritud kuupäev kui fikseeritud"
@@ -173,7 +173,7 @@ msgid "Payment lines"
msgstr "Makseread"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Vali kuupäev, kui sa oled valinud 'Eelistatud kuupäev fikseerida'."
diff --git a/addons/account_payment/i18n/fi.po b/addons/account_payment/i18n/fi.po
index 5b5c1542795..63f152886f4 100644
--- a/addons/account_payment/i18n/fi.po
+++ b/addons/account_payment/i18n/fi.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Suunniteltu päivämäärä jos kiinteä"
@@ -175,7 +175,7 @@ msgid "Payment lines"
msgstr "Maksurivit"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Aseta päivämäärä jos olet valinnut suositellun maksupäivän kiinteäksi."
diff --git a/addons/account_payment/i18n/fr.po b/addons/account_payment/i18n/fr.po
index f1dd4c8002b..95f2a580291 100644
--- a/addons/account_payment/i18n/fr.po
+++ b/addons/account_payment/i18n/fr.po
@@ -40,7 +40,7 @@ msgstr ""
"spéciaux !"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Date prévue si fixe"
@@ -197,7 +197,7 @@ msgid "Payment lines"
msgstr "Lignes de paiement"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Sélectionnez une date si vous avez choisi \"Date fixe\" comme date préférée"
diff --git a/addons/account_payment/i18n/hi.po b/addons/account_payment/i18n/hi.po
index 8a58aefdeb4..b2bd37aad24 100644
--- a/addons/account_payment/i18n/hi.po
+++ b/addons/account_payment/i18n/hi.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "अनुसूचित तिथि तो तय"
@@ -173,7 +173,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/hr.po b/addons/account_payment/i18n/hr.po
index cd514aad23d..6343fcbf3b8 100644
--- a/addons/account_payment/i18n/hr.po
+++ b/addons/account_payment/i18n/hr.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/hu.po b/addons/account_payment/i18n/hu.po
index 0bbb577bafc..02ce6504dad 100644
--- a/addons/account_payment/i18n/hu.po
+++ b/addons/account_payment/i18n/hu.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/id.po b/addons/account_payment/i18n/id.po
index b656ce2651f..8014337913a 100644
--- a/addons/account_payment/i18n/id.po
+++ b/addons/account_payment/i18n/id.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/it.po b/addons/account_payment/i18n/it.po
index aa5ade7faea..0f098139f1c 100644
--- a/addons/account_payment/i18n/it.po
+++ b/addons/account_payment/i18n/it.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -172,7 +172,7 @@ msgid "Payment lines"
msgstr "Riga pagamento"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/ko.po b/addons/account_payment/i18n/ko.po
index 536db1171cd..1727ce45a70 100644
--- a/addons/account_payment/i18n/ko.po
+++ b/addons/account_payment/i18n/ko.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "고정된 경우, 스케줄된 날짜"
@@ -171,7 +171,7 @@ msgid "Payment lines"
msgstr "결제 라인"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "'선호 날짜'를 지정하려면, 날짜를 선택하십시오."
diff --git a/addons/account_payment/i18n/lt.po b/addons/account_payment/i18n/lt.po
index 790af356a30..3cdd5f6d56e 100644
--- a/addons/account_payment/i18n/lt.po
+++ b/addons/account_payment/i18n/lt.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/mn.po b/addons/account_payment/i18n/mn.po
index fd4b080ae95..5687b5af0b3 100644
--- a/addons/account_payment/i18n/mn.po
+++ b/addons/account_payment/i18n/mn.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Төлөвлөсөн огноо"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Төлбөрийн мөрүүд"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Сонгох огноо тогтмол байх бол огноог заана."
diff --git a/addons/account_payment/i18n/nl.po b/addons/account_payment/i18n/nl.po
index c40752000b1..516492ac565 100644
--- a/addons/account_payment/i18n/nl.po
+++ b/addons/account_payment/i18n/nl.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Geplande datum indien vast"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Betalingsregels"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
"Kies een datum wanneer u hebt gekozen om op een voorkeursdatum uit te voeren."
diff --git a/addons/account_payment/i18n/nl_BE.po b/addons/account_payment/i18n/nl_BE.po
index 9695e322250..d0844e937b4 100644
--- a/addons/account_payment/i18n/nl_BE.po
+++ b/addons/account_payment/i18n/nl_BE.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/oc.po b/addons/account_payment/i18n/oc.po
index 9111223a710..5da4eb7edc2 100644
--- a/addons/account_payment/i18n/oc.po
+++ b/addons/account_payment/i18n/oc.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -171,7 +171,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/pl.po b/addons/account_payment/i18n/pl.po
index 81f6257956a..280341a73a5 100644
--- a/addons/account_payment/i18n/pl.po
+++ b/addons/account_payment/i18n/pl.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Planowana data jeśli jest ustalona"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Pozycje płatności"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Wybierz datę, jeśli wybrałaś(eś) opcję Preferowana data."
diff --git a/addons/account_payment/i18n/pt.po b/addons/account_payment/i18n/pt.po
index f5409e13ce7..d9df5c72754 100644
--- a/addons/account_payment/i18n/pt.po
+++ b/addons/account_payment/i18n/pt.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Data agendada se fixa"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Linhas de pagamentos"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Selecione a data se você escolheu uma data preferida a ser reparada."
diff --git a/addons/account_payment/i18n/pt_BR.po b/addons/account_payment/i18n/pt_BR.po
index 9b119244867..4ae99673a5a 100644
--- a/addons/account_payment/i18n/pt_BR.po
+++ b/addons/account_payment/i18n/pt_BR.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Data programada se alterada"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Linhas de pagamento"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Selecione uma data se você escolheu uma Data Preferida a ser fixada."
diff --git a/addons/account_payment/i18n/ro.po b/addons/account_payment/i18n/ro.po
index b2d91379109..57809e07959 100644
--- a/addons/account_payment/i18n/ro.po
+++ b/addons/account_payment/i18n/ro.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Data programată, dacă este stabilită"
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Linii plată"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "Selectează o dată dacă ai ales să programezi plată"
diff --git a/addons/account_payment/i18n/ru.po b/addons/account_payment/i18n/ru.po
index 3341ffbffd4..bba8c696ea0 100644
--- a/addons/account_payment/i18n/ru.po
+++ b/addons/account_payment/i18n/ru.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "Дата по плану, если задана"
@@ -172,7 +172,7 @@ msgid "Payment lines"
msgstr "Позиции платежа"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/sl.po b/addons/account_payment/i18n/sl.po
index 0de9e393073..4a079ac01de 100644
--- a/addons/account_payment/i18n/sl.po
+++ b/addons/account_payment/i18n/sl.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -174,7 +174,7 @@ msgid "Payment lines"
msgstr "Vrstice plačila"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/sq.po b/addons/account_payment/i18n/sq.po
index 360305518fc..30967f82792 100644
--- a/addons/account_payment/i18n/sq.po
+++ b/addons/account_payment/i18n/sq.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -171,7 +171,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/sv.po b/addons/account_payment/i18n/sv.po
index e033cc0ad49..df09d19e19d 100644
--- a/addons/account_payment/i18n/sv.po
+++ b/addons/account_payment/i18n/sv.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/tlh.po b/addons/account_payment/i18n/tlh.po
index 66b5bb9c31a..34abf27990f 100644
--- a/addons/account_payment/i18n/tlh.po
+++ b/addons/account_payment/i18n/tlh.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/tr.po b/addons/account_payment/i18n/tr.po
index 2cf63d7ae31..5d1a71fe957 100644
--- a/addons/account_payment/i18n/tr.po
+++ b/addons/account_payment/i18n/tr.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/uk.po b/addons/account_payment/i18n/uk.po
index 9f75b050edf..d6d5097abaf 100644
--- a/addons/account_payment/i18n/uk.po
+++ b/addons/account_payment/i18n/uk.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/vi.po b/addons/account_payment/i18n/vi.po
index 565529f1ad5..8398e08c8e6 100644
--- a/addons/account_payment/i18n/vi.po
+++ b/addons/account_payment/i18n/vi.po
@@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -171,7 +171,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/i18n/zh_CN.po b/addons/account_payment/i18n/zh_CN.po
index a7e26e82f1a..51c8c6ccca4 100644
--- a/addons/account_payment/i18n/zh_CN.po
+++ b/addons/account_payment/i18n/zh_CN.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr "指定日期(如果是固定)"
@@ -172,7 +172,7 @@ msgid "Payment lines"
msgstr "付款明细"
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr "如果你选择的优先日期是固定的, 选择一个日期"
diff --git a/addons/account_payment/i18n/zh_TW.po b/addons/account_payment/i18n/zh_TW.po
index 288950d8a9c..70d5a328d8c 100644
--- a/addons/account_payment/i18n/zh_TW.po
+++ b/addons/account_payment/i18n/zh_TW.po
@@ -17,7 +17,7 @@ msgstr ""
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
-#: field:payment.order,date_planned:0
+#: field:payment.order,date_scheduled:0
msgid "Scheduled date if fixed"
msgstr ""
@@ -170,7 +170,7 @@ msgid "Payment lines"
msgstr ""
#. module: account_payment
-#: help:payment.order,date_planned:0
+#: help:payment.order,date_scheduled:0
msgid "Select a date if you have chosen Preferred Date to be fixed."
msgstr ""
diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py
index 74409cab3fa..696160c35ef 100644
--- a/addons/account_payment/wizard/account_payment_order.py
+++ b/addons/account_payment/wizard/account_payment_order.py
@@ -77,7 +77,7 @@ class payment_order_create(osv.osv_memory):
elif payment.date_prefered == 'due':
date_to_pay = line.date_maturity
elif payment.date_prefered == 'fixed':
- date_to_pay = payment.date_planned
+ date_to_pay = payment.date_scheduled
payment_obj.create(cr, uid,{
'move_line_id': line.id,
'amount_currency': line.amount_to_pay,
diff --git a/addons/l10n_ch/wizard/create_dta.py b/addons/l10n_ch/wizard/create_dta.py
index b9f4078def7..8bde159013a 100644
--- a/addons/l10n_ch/wizard/create_dta.py
+++ b/addons/l10n_ch/wizard/create_dta.py
@@ -468,8 +468,8 @@ def _create_dta(obj, cr, uid, data, context=None):
'for the partner: ' + pline.partner_id.name + '\n' \
'on line: ' + pline.name)
- if pline.order_id.date_planned:
- date_value = mx.DateTime.strptime(pline.order_id.date_planned, '%Y-%m-%d')
+ if pline.order_id.date_scheduled:
+ date_value = mx.DateTime.strptime(pline.order_id.date_scheduled, '%Y-%m-%d')
elif pline.date:
date_value = mx.DateTime.strptime(pline.date, '%Y-%m-%d')
else:
From 03694ad12ad959577ae17a2be05056715938cf22 Mon Sep 17 00:00:00 2001
From: mtr
Date: Wed, 1 Sep 2010 11:23:33 +0530
Subject: [PATCH 35/62] [IMP] account:-set default journal on
customer&vendor,invoices and refund as per its type
bzr revid: mtr@mtr-20100901055333-ux5bqzhwjz2rx71s
---
addons/account/invoice.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index c4b9c4a4d3f..9127d64cad3 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -527,8 +527,12 @@ class account_invoice(osv.osv):
else:
continue
if company_id and type:
- if type in ('out_invoice', 'out_refund'):
+ if type in ('out_invoice'):
journal_type = 'sale'
+ elif type in ('out_refund'):
+ journal_type = 'sale_refund'
+ elif type in ('in_refund'):
+ journal_type = 'purchase_refund'
else:
journal_type = 'purchase'
journal_ids = obj_journal.search(cr, uid, [('company_id','=',company_id), ('type', '=', journal_type)])
From 1b6a944e7412455bd6f7bb52b6821a73316dd215 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 11:32:18 +0530
Subject: [PATCH 36/62] [IMP] account_payment: payment order duplation, put
header = internal on report
bzr revid: mra@mra-laptop-20100901060218-yd7lnn2l8ac2hpy4
---
addons/account_payment/account_payment.py | 8 ++++++++
.../account_payment/report/payment_order.py | 20 +++++++++----------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py
index 149ec5eaad8..2ebf0ea430b 100644
--- a/addons/account_payment/account_payment.py
+++ b/addons/account_payment/account_payment.py
@@ -141,6 +141,14 @@ class payment_order(osv.osv):
wf_service.trg_validate(uid, 'payment.order', id, 'done', cr)
return True
+ def copy(self, cr, uid, id, default={}, context=None):
+ default.update({
+ 'state':'draft',
+ 'line_ids': [],
+ 'reference': self.pool.get('ir.sequence').get(cr, uid, 'payment.order')
+ })
+ return super(payment_order, self).copy(cr, uid, id, default, context=context)
+
payment_order()
class payment_line(osv.osv):
diff --git a/addons/account_payment/report/payment_order.py b/addons/account_payment/report/payment_order.py
index a3c102b6897..c7d35a81ff4 100644
--- a/addons/account_payment/report/payment_order.py
+++ b/addons/account_payment/report/payment_order.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,7 +15,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
+# along with this program. If not, see .
#
##############################################################################
@@ -25,7 +25,7 @@ import pooler
from report import report_sxw
class payment_order(report_sxw.rml_parse):
-
+
def __init__(self, cr, uid, name, context):
super(payment_order, self).__init__(cr, uid, name, context=context)
self.localcontext.update( {
@@ -36,15 +36,15 @@ class payment_order(report_sxw.rml_parse):
'get_amount_total' : self._get_amount_total,
})
- def _get_invoice_name(self,invoice_id):
+ def _get_invoice_name(self, invoice_id):
if invoice_id:
pool = pooler.get_pool(self.cr.dbname)
value_name = pool.get('account.invoice').name_get(self.cr, self.uid, [invoice_id])
if value_name:
return value_name[0][1]
return False
-
- def _get_amount_total_in_currency(self,payment):
+
+ def _get_amount_total_in_currency(self, payment):
total = 0.0
if payment.line_ids:
currency_cmp = payment.line_ids[0].currency.id
@@ -57,19 +57,19 @@ class payment_order(report_sxw.rml_parse):
return False
return total
- def _get_amount_total(self,payment):
+ def _get_amount_total(self, payment):
total = 0.0
if not payment.line_ids:
return False
for line in payment.line_ids:
total += line.amount
return total
-
+
def _get_company_currency(self):
pool = pooler.get_pool(self.cr.dbname)
user = pool.get('res.users').browse(self.cr, self.uid, self.uid)
- return user.company_id and user.company_id.currency_id and user.company_id.currency_id.name or False
+ return user.company_id and user.company_id.currency_id and user.company_id.currency_id.name or False
-report_sxw.report_sxw('report.payment.order', 'payment.order', 'addons/account_payment/report/payment_order.rml', parser=payment_order,header=False)
+report_sxw.report_sxw('report.payment.order', 'payment.order', 'addons/account_payment/report/payment_order.rml', parser=payment_order, header="internal")
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
From 7133112f1e508fa4198a2926bdd3b81b1a4f1796 Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 11:45:56 +0530
Subject: [PATCH 37/62] [FIX]: fix a problem of the voucher type
bzr revid: mga@tinyerp.com-20100901061556-g200fwj6j35ntp4w
---
addons/account/report/voucher_print.rml | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/addons/account/report/voucher_print.rml b/addons/account/report/voucher_print.rml
index 028575c81f2..ac380c0a5a5 100644
--- a/addons/account/report/voucher_print.rml
+++ b/addons/account/report/voucher_print.rml
@@ -142,16 +142,9 @@
- Cash Receipt Voucher [[ (voucher.type == 'rec_voucher' or removeParentNode('para')) and '' ]]
- Cash Payment Voucher [[ (voucher.type == 'pay_voucher' or removeParentNode('para')) and '' ]]
- Bank Receipt Voucher [[ (voucher.type == 'bank_rec_voucher' or removeParentNode('para')) and '' ]]
- Bank Payment Voucher [[ (voucher.type == 'bank_pay_voucher' or removeParentNode('para')) and '' ]]
- Contra Voucher [[ (voucher.type == 'cont_voucher' or removeParentNode('para')) and '' ]]
- Journal Sale Voucher [[ (voucher.type == 'journal_sale_vou' or removeParentNode('para')) and '' ]]
- Journal Purchase Voucher [[ (voucher.type == 'journal_pur_voucher' or removeParentNode('para')) and '' ]]
- Journal Voucher [[ (voucher.type == 'journal_voucher' or removeParentNode('para')) and '' ]]
+ [[ voucher.journal_id.name ]]
-
+
From 8f39cf5725b95d0f96f0766df0b1220c9a65b220 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 12:31:00 +0530
Subject: [PATCH 38/62] [IMP] account_budget: remove the sequence field from
object and view, budget lines tree view: add a sum on fields: practical
amount, planned amount, theoretical amount, there shouldn't be any menuitem
for this object elsewhere than in configuration (configuration \ budgets \
budgetary positions)
bzr revid: mra@mra-laptop-20100901070100-zt18ndz3ufejgjh6
---
addons/account_budget/crossovered_budget.py | 4 +---
addons/account_budget/crossovered_budget_view.xml | 11 +++++------
addons/account_budget/report/budget_report.py | 4 ++--
3 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/addons/account_budget/crossovered_budget.py b/addons/account_budget/crossovered_budget.py
index 209e42ff32c..7891db91728 100644
--- a/addons/account_budget/crossovered_budget.py
+++ b/addons/account_budget/crossovered_budget.py
@@ -40,13 +40,11 @@ class account_budget_post(osv.osv):
'account_ids': fields.many2many('account.account', 'account_budget_rel', 'budget_id', 'account_id', 'Accounts'),
'crossovered_budget_line': fields.one2many('crossovered.budget.lines', 'general_budget_id', 'Budget Lines'),
'company_id': fields.many2one('res.company', 'Company', required=True),
- 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of budgetary position."),
}
_defaults = {
- 'sequence': lambda *a: 1,
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.budget.post', context=c)
}
- _order = "sequence, name"
+ _order = "name"
def spread(self, cr, uid, ids, fiscalyear_id=False, amount=0.0):
dobj = self.pool.get('account.budget.post.dotation')
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index 39877e7a712..0e3909e9372 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -19,7 +19,6 @@
tree
-
@@ -58,7 +57,8 @@
-
+
+
@@ -70,7 +70,6 @@
-
@@ -88,9 +87,9 @@
-
-
-
+
+
+
diff --git a/addons/account_budget/report/budget_report.py b/addons/account_budget/report/budget_report.py
index 59895ed3321..32f54c247bc 100644
--- a/addons/account_budget/report/budget_report.py
+++ b/addons/account_budget/report/budget_report.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,7 +15,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
+# along with this program. If not, see .
#
##############################################################################
From b1138ff426b4dbee79d62f283968fdca3482da46 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 12:36:58 +0530
Subject: [PATCH 39/62] [IMP] budget: Sequence on configuration
bzr revid: mra@mra-laptop-20100901070658-bthxflyee3lgqbc2
---
addons/account_budget/crossovered_budget_view.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index 0e3909e9372..b73a0948e85 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -57,8 +57,8 @@
-
-
+
+
From d6ae30d2ff5b5823d9f4e563059913cc8e4b0ac0 Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 12:48:02 +0530
Subject: [PATCH 40/62] [FIX]: change the order of the menus [FIX]: fix the
amount allocation for the sales payment, still need to fix the bug in the gtk
bzr revid: mga@tinyerp.com-20100901071802-793pwtmsal093zyy
---
addons/account/account_view.xml | 4 ++--
addons/account/wizard/account_move_journal_view.xml | 7 ++++---
addons/account_voucher/voucher.py | 3 ++-
addons/account_voucher/voucher_payment_receipt_view.xml | 4 ++--
addons/account_voucher/voucher_sales_purchase_view.xml | 4 ++--
5 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index e35b9498b3f..fcda375091f 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -1098,7 +1098,7 @@
icon="STOCK_JUSTIFY_FILL"
id="menu_action_account_moves_all"
parent="account.menu_finance_entries"
- sequence="4"
+ sequence="16"
groups="group_account_user,group_account_manager,base.group_system"
/>
@@ -1458,7 +1458,7 @@
id="action_account_manual_reconcile" name="Journal Items"
res_model="account.move.line"
view_id="view_move_line_tree"/>
- />
+
{'journal_type':'sale','view_mode':False}
new
-
+
@@ -41,10 +41,11 @@
{'journal_type':'purchase','view_mode':False}
new
-
@@ -71,7 +72,7 @@
icon="STOCK_JUSTIFY_FILL"
id="menu_action_account_moves_bank"
parent="account.menu_finance_bank_and_cash"
- sequence="4"
+ sequence="16"
groups="group_account_user,group_account_manager,base.group_system"
/>
diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py
index 4b1e48d15eb..2302abd89a0 100644
--- a/addons/account_voucher/voucher.py
+++ b/addons/account_voucher/voucher.py
@@ -188,7 +188,7 @@ class account_voucher(osv.osv):
self.write(cr, uid, [voucher.id], {'amount':total, 'tax_amount':total_tax})
return True
-
+
# TODO: review this code.
def onchange_price(self, cr, uid, ids, line_ids, tax_id, partner_id=False, context={}):
tax_pool = self.pool.get('account.tax')
@@ -297,6 +297,7 @@ class account_voucher(osv.osv):
account_type = 'receivable'
ids = move_line_pool.search(cr, uid, [('account_id.type','=', account_type), ('reconcile_id','=', False), ('partner_id','=',partner_id)], context=context)
+ ids.reverse()
moves = move_line_pool.browse(cr, uid, ids)
total_credit = price or 0.0
total_debit = 0.0
diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml
index dfeeb78ec17..6f207f2b649 100644
--- a/addons/account_voucher/voucher_payment_receipt_view.xml
+++ b/addons/account_voucher/voucher_payment_receipt_view.xml
@@ -94,7 +94,7 @@
new
-
@@ -188,7 +188,7 @@
new
-
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index e109865be72..2be19f47f11 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -99,7 +99,7 @@
new
+ action="action_sale_receipt" parent="account.menu_finance_receivables" sequence="10"/>
@@ -176,7 +176,7 @@
new
+ action="action_purchase_receipt" parent="account.menu_finance_payables" sequence="10"/>
From 4198252bec3ed1fd2588eabd29bfefb777bbf522 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 12:52:57 +0530
Subject: [PATCH 41/62] [IMP] budget: tree, search view, workflow role
description
bzr revid: mra@mra-laptop-20100901072257-axnsdro4e7ana66v
---
addons/account_budget/crossovered_budget.py | 4 +--
.../crossovered_budget_view.xml | 29 ++++++++++---------
.../crossovered_budget_workflow.xml | 1 +
3 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/addons/account_budget/crossovered_budget.py b/addons/account_budget/crossovered_budget.py
index 7891db91728..a0973cde6a1 100644
--- a/addons/account_budget/crossovered_budget.py
+++ b/addons/account_budget/crossovered_budget.py
@@ -105,8 +105,8 @@ class crossovered_budget(osv.osv):
_description = "Budget"
_columns = {
- 'name': fields.char('Name', size=50, required=True,states={'done':[('readonly',True)]}),
- 'code': fields.char('Code', size=20, required=True,states={'done':[('readonly',True)]}),
+ 'name': fields.char('Name', size=64, required=True, states={'done':[('readonly',True)]}),
+ 'code': fields.char('Code', size=16, required=True, states={'done':[('readonly',True)]}),
'creating_user_id': fields.many2one('res.users', 'Responsible User'),
'validating_user_id': fields.many2one('res.users', 'Validate User', readonly=True),
'date_from': fields.date('Start Date', required=True, states={'done':[('readonly',True)]}),
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index b73a0948e85..45b9d726597 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -116,22 +116,22 @@
form
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
@@ -161,11 +161,12 @@
tree
-
-
-
+
+
+
+
@@ -178,7 +179,7 @@
-
+
diff --git a/addons/account_budget/crossovered_budget_workflow.xml b/addons/account_budget/crossovered_budget_workflow.xml
index 0874d510e04..cae760d1507 100644
--- a/addons/account_budget/crossovered_budget_workflow.xml
+++ b/addons/account_budget/crossovered_budget_workflow.xml
@@ -4,6 +4,7 @@
Crossovered Budget Validation
+ Assign this role to the persons that should have the rights to Approve a confirm Budgets.
From 6dd10786ff60b25206d3779b54d5a9b70c6ead42 Mon Sep 17 00:00:00 2001
From: "pap (openerp)"
Date: Wed, 1 Sep 2010 13:00:17 +0530
Subject: [PATCH 42/62] [ADD] Account: added groups on analytic accounting and
added access rights for it
bzr revid: pap@tinyerp.co.in-20100901073017-w54ys7g3v1qzr7tp
---
addons/analytic/security/analytic_security.xml | 8 ++++++++
addons/analytic/security/ir.model.access.csv | 4 ++++
2 files changed, 12 insertions(+)
diff --git a/addons/analytic/security/analytic_security.xml b/addons/analytic/security/analytic_security.xml
index a382380d962..8a9ebf573d5 100644
--- a/addons/analytic/security/analytic_security.xml
+++ b/addons/analytic/security/analytic_security.xml
@@ -7,5 +7,13 @@
[('company_id','=',user.company_id.id)]
+
+
+ Analytic Accounting / User
+
+
+ Analytic Accounting / Manager
+
+
diff --git a/addons/analytic/security/ir.model.access.csv b/addons/analytic/security/ir.model.access.csv
index 0343f29f43a..6c945ca9ea2 100644
--- a/addons/analytic/security/ir.model.access.csv
+++ b/addons/analytic/security/ir.model.access.csv
@@ -1 +1,5 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
+"access_account_analytic_account_manager","account.analytic.account manager","model_account_analytic_account","analytic.group_analytic_manager",1,1,1,1
+"access_account_analytic_line_manager","account.analytic.line manager","model_account_analytic_line","analytic.group_analytic_manager",1,1,1,1
+"access_account_analytic_account_user","account.analytic.account user","model_account_analytic_account","analytic.group_analytic_user",1,0,0,0
+"access_account_analytic_line_user","account.analytic.line user","model_account_analytic_line","analytic.group_analytic_user",1,0,0,0
\ No newline at end of file
From 1a7f0ead2b6c8f830c16a6786f4c0ff5af4d5142 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 13:13:35 +0530
Subject: [PATCH 43/62] [IMP] Budget: workflow => cancel to draft
bzr revid: mra@mra-laptop-20100901074335-fw3fndwyyq4uzcl9
---
addons/account_budget/crossovered_budget.py | 6 ++++++
addons/account_budget/crossovered_budget_view.xml | 1 +
addons/account_budget/crossovered_budget_workflow.xml | 11 +++++++++--
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/addons/account_budget/crossovered_budget.py b/addons/account_budget/crossovered_budget.py
index a0973cde6a1..9252d2cf210 100644
--- a/addons/account_budget/crossovered_budget.py
+++ b/addons/account_budget/crossovered_budget.py
@@ -126,6 +126,12 @@ class crossovered_budget(osv.osv):
})
return True
+ def budget_draft(self, cr, uid, ids, *args):
+ self.write(cr, uid, ids, {
+ 'state':'draft'
+ })
+ return True
+
def budget_validate(self, cr, uid, ids, *args):
self.write(cr, uid, ids, {
'state':'validate',
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index 45b9d726597..b863979ad92 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -149,6 +149,7 @@
+
diff --git a/addons/account_budget/crossovered_budget_workflow.xml b/addons/account_budget/crossovered_budget_workflow.xml
index cae760d1507..f304775bcca 100644
--- a/addons/account_budget/crossovered_budget_workflow.xml
+++ b/addons/account_budget/crossovered_budget_workflow.xml
@@ -19,7 +19,8 @@
True
draft
-
+ write({'state':'draft'})
+ function
@@ -42,8 +43,8 @@
cancel
function
budget_cancel()
-
+
done
@@ -88,5 +89,11 @@
+
+
+
+ draft
+
+
From e3a14de82cb447285395467f61e47142b522388a Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 13:36:53 +0530
Subject: [PATCH 44/62] [FIX]: add payment wizard on the sales receipt
bzr revid: mga@tinyerp.com-20100901080653-tqtzu9lxndrsamvv
---
addons/account_voucher/voucher.py | 8 +++--
.../voucher_sales_purchase_view.xml | 36 +++++++++----------
.../wizard/account_voucher_open.py | 4 +--
3 files changed, 25 insertions(+), 23 deletions(-)
diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py
index 2302abd89a0..780ee8c62e3 100644
--- a/addons/account_voucher/voucher.py
+++ b/addons/account_voucher/voucher.py
@@ -78,7 +78,10 @@ class account_voucher(osv.osv):
if user.company_id:
return user.company_id.currency_id.id
return False
-
+
+ def _get_partner(self, cr, uid, context={}):
+ return context.get('partner_id', False)
+
_name = 'account.voucher'
_description = 'Accounting Voucher'
_order = "date desc, id desc"
@@ -133,6 +136,7 @@ class account_voucher(osv.osv):
}
_defaults = {
'period_id': _get_period,
+ 'partner_id': _get_partner,
'journal_id':_get_journal,
'currency_id': _get_currency,
'type':_get_type,
@@ -336,7 +340,7 @@ class account_voucher(osv.osv):
default['value']['pre_line'] = 1
elif ttype == 'receipt' and len(default['value']['line_dr_ids']) > 0:
default['value']['pre_line'] = 1
-
+
return default
def onchange_date(self, cr, user, ids, date, context={}):
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index 2be19f47f11..6b5ca6d7c68 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -1,24 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ Sales Payment
+ account.voucher.open
+ form
+ [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt'), ('partner_id','=',partner_id)]
+ {'journal_type':'bank', 'type':'receipt', 'partner_id': partner_id}
+
+ new
+
account.voucher.sale.form
account.voucher
@@ -80,7 +78,7 @@
-
+
diff --git a/addons/account_voucher/wizard/account_voucher_open.py b/addons/account_voucher/wizard/account_voucher_open.py
index 3efffe04c67..5ba55bf9856 100644
--- a/addons/account_voucher/wizard/account_voucher_open.py
+++ b/addons/account_voucher/wizard/account_voucher_open.py
@@ -124,7 +124,7 @@ class account_voucher_open(osv.osv_memory):
period_id = self._get_period(cr, uid, context)
menu = self.pool.get('ir.ui.menu').browse(cr, uid, context.get('active_id'))
- name = menu.name
+ name = context.get('title', menu.name)
result = data_pool._get_id(cr, uid, 'account_voucher', 'view_voucher_filter_new')
res_id = data_pool.browse(cr, uid, result, context=context).res_id
@@ -136,7 +136,7 @@ class account_voucher_open(osv.osv_memory):
'view_mode': 'tree,graph,form',
'res_model': 'account.voucher',
'view_id': False,
- 'context': "{'journal_id': %d, 'search_default_journal_id':%d, 'search_default_period_id':%d}" % (journal_id, journal_id, period_id),
+ 'context': "{'journal_id': %d, 'search_default_journal_id':%d, 'search_default_period_id':%d, 'partner_id':%s}" % (journal_id, journal_id, period_id, context.get('partner_id',False)),
'type': 'ir.actions.act_window',
'search_view_id': res_id
}
From 6a28d8037d67c14c2389e7e81a0c25fea25b00de Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 13:38:10 +0530
Subject: [PATCH 45/62] [IMP] Budget: reports => name of print summary of
budget should be 'print summary', header= internal on both [REM] Budget:
Remove empty wizard file
bzr revid: mra@mra-laptop-20100901080810-nmd6gdamll4v0gok
---
addons/account_budget/__openerp__.py | 1 -
addons/account_budget/account_budget_wizard.xml | 6 ------
addons/account_budget/crossovered_budget_report.xml | 2 +-
addons/account_budget/report/budget_report.py | 2 +-
addons/account_budget/report/crossovered_budget_report.py | 2 +-
.../account_budget_crossovered_summary_report_view.xml | 5 +++--
6 files changed, 6 insertions(+), 12 deletions(-)
delete mode 100644 addons/account_budget/account_budget_wizard.xml
diff --git a/addons/account_budget/__openerp__.py b/addons/account_budget/__openerp__.py
index 6c822b7ae68..f47e4685246 100644
--- a/addons/account_budget/__openerp__.py
+++ b/addons/account_budget/__openerp__.py
@@ -50,7 +50,6 @@ Three reports are available:
'update_xml': [
'security/ir.model.access.csv',
'security/account_budget_security.xml',
- 'account_budget_wizard.xml',
'wizard/account_budget_spread_view.xml',
'crossovered_budget_view.xml',
'crossovered_budget_report.xml',
diff --git a/addons/account_budget/account_budget_wizard.xml b/addons/account_budget/account_budget_wizard.xml
deleted file mode 100644
index ebfe70e4c50..00000000000
--- a/addons/account_budget/account_budget_wizard.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/addons/account_budget/crossovered_budget_report.xml b/addons/account_budget/crossovered_budget_report.xml
index a6735cd309b..68a055b93e1 100644
--- a/addons/account_budget/crossovered_budget_report.xml
+++ b/addons/account_budget/crossovered_budget_report.xml
@@ -21,4 +21,4 @@
string="Budget"/>
-
+
\ No newline at end of file
diff --git a/addons/account_budget/report/budget_report.py b/addons/account_budget/report/budget_report.py
index 32f54c247bc..648015b3d2b 100644
--- a/addons/account_budget/report/budget_report.py
+++ b/addons/account_budget/report/budget_report.py
@@ -64,7 +64,7 @@ class budget_report(report_sxw.rml_parse):
achievements = float(self.cr.fetchone()[0])
res.append({'name': a.name, 'code': a.code, 'achievements': achievements})
return res
-report_sxw.report_sxw('report.account.budget', 'account.budget.post', 'addons/account_budget/report/budget_report.rml',parser=budget_report,header=False)
+report_sxw.report_sxw('report.account.budget', 'account.budget.post', 'addons/account_budget/report/budget_report.rml',parser=budget_report, header="internal")
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account_budget/report/crossovered_budget_report.py b/addons/account_budget/report/crossovered_budget_report.py
index a5f26b19ebf..8b2b891af23 100644
--- a/addons/account_budget/report/crossovered_budget_report.py
+++ b/addons/account_budget/report/crossovered_budget_report.py
@@ -205,6 +205,6 @@ class budget_report(report_sxw.rml_parse):
return result
-report_sxw.report_sxw('report.crossovered.budget.report', 'crossovered.budget', 'addons/account_budget/report/crossovered_budget_report.rml',parser=budget_report,header=False)
+report_sxw.report_sxw('report.crossovered.budget.report', 'crossovered.budget', 'addons/account_budget/report/crossovered_budget_report.rml',parser=budget_report, header="internal")
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account_budget/wizard/account_budget_crossovered_summary_report_view.xml b/addons/account_budget/wizard/account_budget_crossovered_summary_report_view.xml
index 44401a71978..4775bdffe0f 100644
--- a/addons/account_budget/wizard/account_budget_crossovered_summary_report_view.xml
+++ b/addons/account_budget/wizard/account_budget_crossovered_summary_report_view.xml
@@ -23,7 +23,7 @@
- Print Summary of Budgets
+ Print Summary
ir.actions.act_window
account.budget.crossvered.summary.report
form
@@ -31,10 +31,11 @@
new
+
- Print Summary of Budgets
+ Print Summary
client_print_multi
action
From c826332fd71f3a3cf68a2b12da9c42a075e98c79 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 13:53:26 +0530
Subject: [PATCH 46/62] [REF]
bzr revid: mra@mra-laptop-20100901082326-2fkp2g3kvgl32wc2
---
addons/account_budget/crossovered_budget.py | 5 +++--
addons/account_budget/wizard/account_budget_report.py | 6 +++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/addons/account_budget/crossovered_budget.py b/addons/account_budget/crossovered_budget.py
index 9252d2cf210..3a5846c7d86 100644
--- a/addons/account_budget/crossovered_budget.py
+++ b/addons/account_budget/crossovered_budget.py
@@ -18,9 +18,9 @@
# along with this program. If not, see .
#
##############################################################################
+import datetime
from osv import osv,fields
-import datetime
from tools.translate import _
def strToDate(dt):
@@ -58,6 +58,7 @@ class account_budget_post(osv.osv):
for p in fy.period_ids:
dobj.create(cr, uid, {'post_id': o.id, 'period_id': p.id, 'amount': amount/num})
return True
+
account_budget_post()
class account_budget_post_dotation(osv.osv):
@@ -116,7 +117,7 @@ class crossovered_budget(osv.osv):
}
_defaults = {
- 'state': lambda *a: 'draft',
+ 'state': 'draft',
'creating_user_id': lambda self,cr,uid,context: uid,
}
diff --git a/addons/account_budget/wizard/account_budget_report.py b/addons/account_budget/wizard/account_budget_report.py
index 9fe2e0c5977..58ba9ad8191 100644
--- a/addons/account_budget/wizard/account_budget_report.py
+++ b/addons/account_budget/wizard/account_budget_report.py
@@ -18,6 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
+
import time
from osv import fields, osv
@@ -50,13 +51,12 @@ class account_budget_report(osv.osv_memory):
data_model = self.pool.get(datas['model']).browse(cr, uid, context['active_id'])
if not data_model.dotation_ids:
raise osv.except_osv(_('Insufficient Data!'),_('No Depreciation or Master Budget Expenses Found on Budget %s!') % data_model.name)
-
return {
'type': 'ir.actions.report.xml',
'report_name': 'account.budget',
'datas': datas,
}
+
account_budget_report()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
From 96347c3bef52438898d34994ebd7a3cc3ca2889e Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 14:28:57 +0530
Subject: [PATCH 47/62] [FIX]: add a menuitem for the bank statement reconcile
under Periodical Processing
bzr revid: mga@tinyerp.com-20100901085857-cr75537gw1tecqsa
---
addons/account/account_menuitem.xml | 2 ++
addons/account/account_view.xml | 2 ++
2 files changed, 4 insertions(+)
diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml
index 24f4bb795a2..07f094d5867 100644
--- a/addons/account/account_menuitem.xml
+++ b/addons/account/account_menuitem.xml
@@ -7,6 +7,8 @@
+
+
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index fcda375091f..0c1efb62dd5 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -560,6 +560,8 @@
+
+
Draft statements
From 68b4bf9c52fa3b52a172fc3cf56e0eae7318f898 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 15:20:19 +0530
Subject: [PATCH 48/62] [IMP] Account payment: bank statement form with payline
button view place
bzr revid: mra@mra-laptop-20100901095019-ex188a2twr2paij6
---
addons/account_payment/account_payment_view.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index 79bca265531..01eacfbd15e 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -314,9 +314,9 @@
form
-
-
-
+
+
+
From de012dd986ef93f6ef7e66b033166f1b241ae748 Mon Sep 17 00:00:00 2001
From: mtr
Date: Wed, 1 Sep 2010 15:33:59 +0530
Subject: [PATCH 49/62] [IMP] account_payment:-added the name_get method for
the bank account of the payment mode used
bzr revid: mtr@mtr-20100901100359-pi4pyroxjnchi9hw
---
addons/account_payment/report/order.rml | 4 ++--
addons/account_payment/report/payment_order.py | 11 ++++++++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/addons/account_payment/report/order.rml b/addons/account_payment/report/order.rml
index e62b07b13fe..12a125fa32b 100644
--- a/addons/account_payment/report/order.rml
+++ b/addons/account_payment/report/order.rml
@@ -141,7 +141,7 @@
Used Account
- [[ o.mode.bank_id.name or '-' ]]
+ [[ get_account_name(o.mode.bank_id.id) ]]
@@ -223,7 +223,7 @@
[[line.partner_id and line.partner_id.name or '-' ]]
- [[ line.bank_id and line.bank_id.name or '-' ]]
+ [[ get_account_name(line.bank_id.id) or '-']]
[[ get_invoice_name(line.ml_inv_ref.id) or '-' ]]
diff --git a/addons/account_payment/report/payment_order.py b/addons/account_payment/report/payment_order.py
index c7d35a81ff4..e82bae991df 100644
--- a/addons/account_payment/report/payment_order.py
+++ b/addons/account_payment/report/payment_order.py
@@ -34,6 +34,7 @@ class payment_order(report_sxw.rml_parse):
'get_company_currency' : self._get_company_currency,
'get_amount_total_in_currency' : self._get_amount_total_in_currency,
'get_amount_total' : self._get_amount_total,
+ 'get_account_name' : self._get_account_name,
})
def _get_invoice_name(self, invoice_id):
@@ -69,7 +70,15 @@ class payment_order(report_sxw.rml_parse):
pool = pooler.get_pool(self.cr.dbname)
user = pool.get('res.users').browse(self.cr, self.uid, self.uid)
return user.company_id and user.company_id.currency_id and user.company_id.currency_id.name or False
+
+ def _get_account_name(self,bank_id):
+ if bank_id:
+ pool = pooler.get_pool(self.cr.dbname)
+ value_name = pool.get('res.partner.bank').name_get(self.cr, self.uid, [bank_id])
+ if value_name:
+ return value_name[0][1]
+ return False
report_sxw.report_sxw('report.payment.order', 'payment.order', 'addons/account_payment/report/payment_order.rml', parser=payment_order, header="internal")
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
From fded19fd84c6d9b669277f7b8b9773445e1b64d1 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 16:08:47 +0530
Subject: [PATCH 50/62] [IMP] Account payment: Change the behavior on bank
statemt => import payment lines now it will search only paymentlines where
bank statemenline id = false on same payment line (note: added new field on
bank statement line field on payment line to synchronize)
bzr revid: mra@mra-laptop-20100901103847-2fqmda2lcfluaksh
---
addons/account_payment/account_payment.py | 3 ++-
.../account_payment_populate_statement.py | 27 ++++++++++---------
2 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py
index 2ebf0ea430b..b36dc0be306 100644
--- a/addons/account_payment/account_payment.py
+++ b/addons/account_payment/account_payment.py
@@ -325,7 +325,8 @@ class payment_line(osv.osv):
'info_partner': fields.function(info_partner, string="Destination Account", method=True, type="text", help='Address of the Ordering Customer.'),
'date': fields.date('Payment Date', help="If no payment date is specified, the bank will treat this payment line directly"),
'create_date': fields.datetime('Created' , readonly=True),
- 'state': fields.selection([('normal','Free'), ('structured','Structured')], 'Communication Type', required=True)
+ 'state': fields.selection([('normal','Free'), ('structured','Structured')], 'Communication Type', required=True),
+ 'bank_statement_line_id': fields.many2one('account.bank.statement.line', 'Bank statement line')
}
_defaults = {
'name': lambda obj, cursor, user, context: obj.pool.get('ir.sequence'
diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py
index 381f0d0f8f7..0d736dba7d2 100644
--- a/addons/account_payment/wizard/account_payment_populate_statement.py
+++ b/addons/account_payment/wizard/account_payment_populate_statement.py
@@ -18,6 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
+
from lxml import etree
from osv import osv, fields
@@ -38,7 +39,8 @@ class account_payment_populate_statement(osv.osv_memory):
statement = statement_obj.browse(cr, uid, context['active_id'], context=context)
line_ids = line_obj.search(cr, uid, [
('move_line_id.reconcile_id', '=', False),
- ('order_id.mode.journal.id', '=', statement.journal_id.id)])
+ ('bank_statement_line_id', '=', False),])
+# ('order_id.mode.journal.id', '=', statement.journal_id.id)])
line_ids.extend(line_obj.search(cr, uid, [
('move_line_id.reconcile_id', '=', False),
('order_id.mode', '=', False)]))
@@ -47,15 +49,15 @@ class account_payment_populate_statement(osv.osv_memory):
model_data_ids = mod_obj.search(cr, uid,[('model','=','ir.ui.view'),('name','=','account_payment_populate_statement_view')], context=context)
resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
return {
- 'name': ('Entrie Lines'),
- 'context': context,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'account.payment.populate.statement',
- 'views': [(resource_id,'form')],
- 'type': 'ir.actions.act_window',
- 'target': 'new',
- }
+ 'name': ('Entrie Lines'),
+ 'context': context,
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'account.payment.populate.statement',
+ 'views': [(resource_id,'form')],
+ 'type': 'ir.actions.act_window',
+ 'target': 'new',
+ }
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
res = super(account_payment_populate_statement, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=False)
@@ -93,7 +95,7 @@ class account_payment_populate_statement(osv.osv_memory):
reconcile_id = statement_reconcile_obj.create(cr, uid, {
'line_ids': [(6, 0, [line.move_line_id.id])]
}, context=context)
- statement_line_obj.create(cr, uid, {
+ st_line_id = statement_line_obj.create(cr, uid, {
'name': line.order_id.reference or '?',
'amount': - amount,
'type': 'supplier',
@@ -103,6 +105,7 @@ class account_payment_populate_statement(osv.osv_memory):
'ref': line.communication,
'reconcile_id': reconcile_id,
}, context=context)
- return {'type' : 'ir.actions.act_window_close'}
+ line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})
+ return {'type': 'ir.actions.act_window_close'}
account_payment_populate_statement()
From 042c04937aab16ad98062fb26e72867efa54df8a Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 16:09:59 +0530
Subject: [PATCH 51/62] [REF]
bzr revid: mra@mra-laptop-20100901103959-i4a194d2yy4s9zuq
---
addons/account/account_bank_statement.py | 2 +-
.../wizard/account_payment_populate_statement.py | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py
index 6d5a6ac470b..f7c943f71d3 100644
--- a/addons/account/account_bank_statement.py
+++ b/addons/account/account_bank_statement.py
@@ -720,4 +720,4 @@ class account_bank_statement_line(osv.osv):
account_bank_statement_line()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py
index 0d736dba7d2..06fd2074b08 100644
--- a/addons/account_payment/wizard/account_payment_populate_statement.py
+++ b/addons/account_payment/wizard/account_payment_populate_statement.py
@@ -109,3 +109,5 @@ class account_payment_populate_statement(osv.osv_memory):
return {'type': 'ir.actions.act_window_close'}
account_payment_populate_statement()
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
From 70a109ad7e7fa3ae3b543012efc45991edd5b7e6 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 16:23:05 +0530
Subject: [PATCH 52/62] [IMP] bank statement: Icon of import buttons
bzr revid: mra@mra-laptop-20100901105305-f0j5o33af7j0dnbj
---
addons/account/account_view.xml | 4 ++--
addons/account_payment/account_payment_view.xml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 0c1efb62dd5..30f5d5c9a61 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -491,7 +491,7 @@
@@ -1460,7 +1460,7 @@
id="action_account_manual_reconcile" name="Journal Items"
res_model="account.move.line"
view_id="view_move_line_tree"/>
-
+
-
+
From 72383a9d08553cf313e3eee3045c87623f677528 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 16:48:35 +0530
Subject: [PATCH 53/62] [IMP] Account Payment: Bank statement button import
invoice lines does not ask for confirmation now, and will be invisible when
state is not draft
bzr revid: mra@mra-laptop-20100901111835-l6orwmx9rg1w08z2
---
.../account_payment/account_payment_view.xml | 2 +-
.../account_payment_populate_statement.py | 38 ++++---------------
...ccount_payment_populate_statement_view.xml | 19 +---------
3 files changed, 11 insertions(+), 48 deletions(-)
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index eb24ce6d303..e6d6e832ae2 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -315,7 +315,7 @@
-
+
diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py
index 06fd2074b08..38d742119ad 100644
--- a/addons/account_payment/wizard/account_payment_populate_statement.py
+++ b/addons/account_payment/wizard/account_payment_populate_statement.py
@@ -30,44 +30,22 @@ class account_payment_populate_statement(osv.osv_memory):
'lines': fields.many2many('payment.line', 'payment_line_rel_', 'payment_id', 'line_id', 'Payment Lines')
}
- def search_entries(self, cr, uid, ids, context=None):
+ def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
line_obj = self.pool.get('payment.line')
- statement_obj = self.pool.get('account.bank.statement')
- mod_obj = self.pool.get('ir.model.data')
- data = self.read(cr, uid, ids, [], context=context)[0]
- statement = statement_obj.browse(cr, uid, context['active_id'], context=context)
+ res = super(account_payment_populate_statement, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=False)
line_ids = line_obj.search(cr, uid, [
('move_line_id.reconcile_id', '=', False),
('bank_statement_line_id', '=', False),])
-# ('order_id.mode.journal.id', '=', statement.journal_id.id)])
line_ids.extend(line_obj.search(cr, uid, [
('move_line_id.reconcile_id', '=', False),
('order_id.mode', '=', False)]))
-
- context.update({'line_ids': line_ids})
- model_data_ids = mod_obj.search(cr, uid,[('model','=','ir.ui.view'),('name','=','account_payment_populate_statement_view')], context=context)
- resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
- return {
- 'name': ('Entrie Lines'),
- 'context': context,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'account.payment.populate.statement',
- 'views': [(resource_id,'form')],
- 'type': 'ir.actions.act_window',
- 'target': 'new',
- }
-
- def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
- res = super(account_payment_populate_statement, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=False)
- if context and 'line_ids' in context:
- view_obj = etree.XML(res['arch'])
- child = view_obj.getchildren()[0]
- domain = '[("id", "in", '+ str(context['line_ids'])+')]'
- field = etree.Element('field', attrib={'domain': domain, 'name':'lines', 'colspan':'4', 'height':'300', 'width':'800', 'nolabel':"1"})
- child.addprevious(field)
- res['arch'] = etree.tostring(view_obj)
+ domain = '[("id", "in", '+ str(line_ids)+')]'
+ doc = etree.XML(res['arch'])
+ nodes = doc.xpath("//field[@name='lines']")
+ for node in nodes:
+ node.set('domain', domain)
+ res['arch'] = etree.tostring(doc)
return res
def populate_statement(self, cr, uid, ids, context=None):
diff --git a/addons/account_payment/wizard/account_payment_populate_statement_view.xml b/addons/account_payment/wizard/account_payment_populate_statement_view.xml
index 34cf906bec3..a7dde70bb32 100644
--- a/addons/account_payment/wizard/account_payment_populate_statement_view.xml
+++ b/addons/account_payment/wizard/account_payment_populate_statement_view.xml
@@ -2,29 +2,13 @@
-
- Payment Populate statement
- account.payment.populate.statement
- form
-
-
-
-
-
-
-
-
-
-
-
-
Payment Populate statement
account.payment.populate.statement
ir.actions.act_window
form
tree,form
-
+
{'record_id':active_id}
new
@@ -36,6 +20,7 @@
+
From a033ea6b447c826e6d8a351ee7b05a44980c1c7e Mon Sep 17 00:00:00 2001
From: mtr
Date: Wed, 1 Sep 2010 17:14:46 +0530
Subject: [PATCH 54/62] [IMP] account:-improvements in the view of
account.period
bzr revid: mtr@mtr-20100901114446-z9caa3ru9qkw3j7k
---
addons/account/account_view.xml | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 30f5d5c9a61..2e332ef4542 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -91,15 +91,15 @@
form
-
-
+
+
-
+
@@ -110,20 +110,40 @@
tree
-
+
+
+
+
+
+ account.period.search
+ account.period
+ search
+
+
+
+
+
+
+
+
+
+
+
+
Periods
account.period
form
- tree,form
+ tree,form,search
+ {'search_default_draft': 1}
From 6be24164f44f46fe621c4147bf06bb629e92eb1e Mon Sep 17 00:00:00 2001
From: vra
Date: Wed, 1 Sep 2010 17:17:08 +0530
Subject: [PATCH 55/62] [FIX] account: fixed minor issue for move_id in
'_check_date' method.
bzr revid: vra@tinyerp.com-20100901114708-aftvlyswk7d8x6lr
---
addons/account/account_move_line.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index f28ebc76210..cf17c76deff 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -986,9 +986,10 @@ class account_move_line(osv.osv):
if 'period_id' in vals and 'period_id' not in context:
period_id = vals['period_id']
elif 'journal_id' not in context and 'move_id' in vals:
- m = self.pool.get('account.move').browse(cr, uid, vals['move_id'])
- journal_id = m.journal_id.id
- period_id = m.period_id.id
+ if vals['move_id']:
+ m = self.pool.get('account.move').browse(cr, uid, vals['move_id'])
+ journal_id = m.journal_id.id
+ period_id = m.period_id.id
else:
journal_id = context.get('journal_id',False)
period_id = context.get('period_id',False)
From 11a3a60220d6dd501612fc4b2297b39db23e75b5 Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 17:21:46 +0530
Subject: [PATCH 56/62] [FIX] Account Budget: print summary report fixed error
bzr revid: mra@mra-laptop-20100901115146-hxn5gwluujljcx1f
---
addons/account_budget/report/crossovered_budget_report.rml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/addons/account_budget/report/crossovered_budget_report.rml b/addons/account_budget/report/crossovered_budget_report.rml
index 9705ebba0f3..61c13f1ef78 100644
--- a/addons/account_budget/report/crossovered_budget_report.rml
+++ b/addons/account_budget/report/crossovered_budget_report.rml
@@ -162,7 +162,8 @@
- [['.....' *(a['status']-1) ]] [[ setTag('font','font',{'color':'white'}) ]] [[ a['status']==1 and (setTag('font','font',{'name':'Helvetica-bold'})) ]][[ a['name'] ]]
+
+ [[ a['status']==1 and (setTag('font','font',{'name':'Helvetica-bold'})) ]][[ a['name'] ]]
[[ a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ '%.2f' % a['theo'] ]]
From d8a9ad298a1f08b31fd3f3b8c03397ed26a6244e Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 17:38:08 +0530
Subject: [PATCH 57/62] [FIX]: fix a problem of the pay button visiblity [FIX]:
Improve so that it's possible to do a negative sales payment.
bzr revid: mga@tinyerp.com-20100901120808-qftjn2zf2695sco3
---
addons/account_voucher/voucher.py | 23 +++++++++++++++----
.../voucher_sales_purchase_view.xml | 18 +++++----------
2 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py
index 780ee8c62e3..c1ce3d4e690 100644
--- a/addons/account_voucher/voucher.py
+++ b/addons/account_voucher/voucher.py
@@ -422,7 +422,7 @@ class account_voucher(osv.osv):
terms = term_pool.compute(cr, uid, term_id, amount)
return terms
return False
-
+
move_pool = self.pool.get('account.move')
move_line_pool = self.pool.get('account.move.line')
analytic_pool = self.pool.get('account.analytic.line')
@@ -460,7 +460,12 @@ class account_voucher(osv.osv):
credit = currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.amount)
elif inv.type in ('sale', 'receipt'):
debit = currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.amount)
-
+ if debit < 0:
+ credit = -debit
+ debit = 0.0
+ if credit < 0:
+ debit = -credit
+ credit = 0.0
if inv.type == 'purchase' and inv.term_id and _get_payment_term_lines(inv.term_id.id, credit or debit):
terms = _get_payment_term_lines(inv.term_id.id, credit or debit)
for term in terms:
@@ -510,6 +515,13 @@ class account_voucher(osv.osv):
'analytic_account_id':line.account_analytic_id and line.account_analytic_id.id or False,
'quantity':1
}
+ if amount < 0:
+ amount = -amount
+ if line.type == 'dr':
+ line.type = 'cr'
+ else:
+ line.type = 'dr'
+
if (line.type=='dr'):
line_total += amount
move_line['debit'] = amount
@@ -522,7 +534,7 @@ class account_voucher(osv.osv):
rec_ids = [master_line, line.move_line_id.id]
rec_list_ids.append(rec_ids)
- if inv.tax_amount > 0:
+ if inv.tax_amount:
amount = currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.tax_amount)
name = inv.tax_id and inv.tax_id.name or '/'
move_line = {
@@ -533,11 +545,12 @@ class account_voucher(osv.osv):
'partner_id':inv.partner_id.id,
'currency_id':inv.currency_id.id,
}
-
- if inv.journal_id.type in ('sale','purchase_refund'):
+ if inv.journal_id.type in ('sale','purchase_refund') and amount > 0:
line_total -= amount
move_line['credit'] = amount
else:
+ if amount < 0:
+ amount = -amount
line_total += amount
move_line['debit'] = amount
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index 6b5ca6d7c68..e6ba51643e7 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -1,13 +1,7 @@
-
-
-
-
-
-
-
+
Sales Payment
account.voucher.open
@@ -25,7 +19,7 @@
-
+
@@ -78,7 +72,7 @@
-
+
@@ -91,7 +85,7 @@
Sales Receipt
account.voucher.open
form
- [('journal_id.type','=','sale'), ('type','=','sale')]
+ [('journal_id.type','in',['sale','purchase_refund']), ('type','=','sale')]
{'journal_type':'sale', 'type':'sale'}
new
@@ -108,7 +102,7 @@
-
+
@@ -168,7 +162,7 @@
Vendor Bills
account.voucher.open
form
- [('journal_id.type','=','purchase'), ('type','=','purchase')]
+ [('journal_id.type','in',['purchase','sale_refund']), ('type','=','purchase')]
{'journal_type':'purchase', 'type':'purchase'}
new
From c34f7bf2322c265881411f38c2830b223a8174bf Mon Sep 17 00:00:00 2001
From: Mustufa Rangwala
Date: Wed, 1 Sep 2010 17:42:06 +0530
Subject: [PATCH 58/62] [FIX] account
bzr revid: mra@mra-laptop-20100901121206-ikf6alp1e2tk2j4l
---
addons/account/__openerp__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py
index f7d2406dc61..da1f95de301 100644
--- a/addons/account/__openerp__.py
+++ b/addons/account/__openerp__.py
@@ -53,11 +53,11 @@ module named account_voucher.
'wizard/account_move_bank_reconcile_view.xml',
'wizard/account_use_model_view.xml',
'account_installer.xml',
+ 'wizard/account_period_close_view.xml',
'account_view.xml',
'account_report.xml',
'wizard/account_report_common_view.xml',
'wizard/account_invoice_refund_view.xml',
- 'wizard/account_period_close_view.xml',
'wizard/account_fiscalyear_close_state.xml',
'wizard/account_chart_view.xml',
'wizard/account_tax_chart_view.xml',
From 5bf4b49ec35534f1d7d73dd683cf341e093d2453 Mon Sep 17 00:00:00 2001
From: Mantavya Gajjar
Date: Wed, 1 Sep 2010 17:53:13 +0530
Subject: [PATCH 59/62] [FIX]: fix visiblity for the pay button on sales
receipt
bzr revid: mga@tinyerp.com-20100901122313-4xuowwgu4vv9qhkm
---
addons/account_voucher/voucher_sales_purchase_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index e6ba51643e7..5b4ea813ee6 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -72,7 +72,7 @@
-
+
From 4f69a3387523f5ea8b79293f2a910d156c983d87 Mon Sep 17 00:00:00 2001
From: "pap (openerp)"
Date: Wed, 1 Sep 2010 18:01:18 +0530
Subject: [PATCH 60/62] [IMP] Account: improved account.analytic.line search
view
bzr revid: pap@tinyerp.co.in-20100901123118-x2c2qwarjpzx1r6e
---
addons/account/project/project_view.xml | 25 ++++++++++++++++---------
addons/analytic/analytic.py | 2 +-
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index bf0b186e1ea..7e26ea2b84f 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -188,22 +188,29 @@
+
+
+
+
-
-
+
-
-
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py
index e5dd9d52ce1..810d2d58e9b 100644
--- a/addons/analytic/analytic.py
+++ b/addons/analytic/analytic.py
@@ -346,7 +346,7 @@ class account_analytic_line(osv.osv):
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.analytic.line', context=c),
}
- _order = 'date'
+ _order = 'date desc'
account_analytic_line()
From da7a113016b424554d0fd6fff0bed985fe0431e5 Mon Sep 17 00:00:00 2001
From: vra
Date: Wed, 1 Sep 2010 18:15:31 +0530
Subject: [PATCH 61/62] [FIX] account_payment: Fixed the view ref problem in ir
action act window.
bzr revid: vra@tinyerp.com-20100901124531-sk83rwghegscrbpx
---
...ccount_payment_populate_statement_view.xml | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/addons/account_payment/wizard/account_payment_populate_statement_view.xml b/addons/account_payment/wizard/account_payment_populate_statement_view.xml
index a7dde70bb32..55a2158fa7d 100644
--- a/addons/account_payment/wizard/account_payment_populate_statement_view.xml
+++ b/addons/account_payment/wizard/account_payment_populate_statement_view.xml
@@ -2,6 +2,22 @@
+
+ Payment Populate statement
+ account.payment.populate.statement
+ form
+
+
+
+
+
+
+
+
+
+
+
+
Payment Populate statement
account.payment.populate.statement
@@ -13,22 +29,6 @@
new
-
- Payment Populate statement
- account.payment.populate.statement
- form
-
-
-
-
-
-
-
-
-
-
-
-
Payment Populate statement
account.payment.populate.statement
From 723fe6f26f609d4c8e666c72a1213537fb3afbc3 Mon Sep 17 00:00:00 2001
From: "psi@tinyerp.co.in" <>
Date: Wed, 1 Sep 2010 18:28:34 +0530
Subject: [PATCH 62/62] [ADD]: implement new yaml test case according to the
new voucher impl
bzr revid: mga@tinyerp.com-20100901125834-do8uc18cdfswez7s
---
addons/account_voucher/__openerp__.py | 2 +
addons/account_voucher/test/sales_payment.yml | 87 +++++++++++++++++++
addons/account_voucher/test/sales_receipt.yml | 74 ++++++++++++++++
3 files changed, 163 insertions(+)
create mode 100644 addons/account_voucher/test/sales_payment.yml
create mode 100644 addons/account_voucher/test/sales_receipt.yml
diff --git a/addons/account_voucher/__openerp__.py b/addons/account_voucher/__openerp__.py
index 9bb8913a5d4..7cdd9ded9f2 100644
--- a/addons/account_voucher/__openerp__.py
+++ b/addons/account_voucher/__openerp__.py
@@ -50,6 +50,8 @@
],
"test" : [
# "test/account_voucher.yml",
+ "test/sales_receipt.yml",
+ "test/sales_payment.yml",
],
'certificate': '0037580727101',
diff --git a/addons/account_voucher/test/sales_payment.yml b/addons/account_voucher/test/sales_payment.yml
new file mode 100644
index 00000000000..050eec1d014
--- /dev/null
+++ b/addons/account_voucher/test/sales_payment.yml
@@ -0,0 +1,87 @@
+-
+ In order to test account voucher i will create an invoice and pay it through account voucher.
+-
+ I create a new Partner
+-
+ !record {model: res.partner, id: res_partner_micropc0}:
+ address:
+ - country_id: base.be
+ name: Jenifer
+ street: 69 rue de Chimay
+ type: default
+ zip: '5478'
+ category_id:
+ - base.res_partner_category_8
+ credit_limit: 0.0
+ name: Micro PC
+ property_account_payable: account.a_pay
+ property_account_receivable: account.a_recv
+
+-
+ Creat an invoice for the partner
+-
+ !record {model: account.invoice, id: account_invoice_0}:
+ account_id: account.a_recv
+ address_contact_id: base.res_partner_address_7
+ address_invoice_id: base.res_partner_address_7
+ company_id: base.main_company
+ currency_id: base.EUR
+ invoice_line:
+ - account_id: account.a_sale
+ name: '[PC1] Basic PC'
+ price_unit: 450.0
+ quantity: 1.0
+ product_id: product.product_product_pc1
+ uos_id: product.product_uom_unit
+ journal_id: account.sales_journal
+ partner_id: res_partner_micropc0
+
+-
+ I check that the customer invoice is in draft state
+-
+ !assert {model: account.invoice, id: account_invoice_0}:
+ - state == 'draft'
+
+-
+ I make the invoice in Open state
+-
+ !workflow {model: account.invoice, action: invoice_open, ref: account_invoice_0}
+
+-
+ I check that a payment entry gets created in the account.move.line
+-
+ !python {model: account.invoice}: |
+ acc_id=self.browse(cr, uid, ref("account_invoice_0"))
+ assert(acc_id.move_id)
+
+-
+ I will create and post an account voucher for the partner.
+-
+ !python {model: account.voucher}: |
+ import netsvc
+ vals = {}
+ journal_id = self.default_get(cr, uid, ['journal_id']).get('journal_id',None)
+ res = self.onchange_partner_id(cr, uid, [], ref("res_partner_micropc0"), journal_id, price=0.0, ttype='receipt')
+ vals = {
+ 'account_id': ref('account.cash'),
+ 'amount': 450.0,
+ 'company_id': ref('base.main_company'),
+ 'currency_id': ref('base.EUR'),
+ 'journal_id': ref('account.bank_journal'),
+ 'partner_id': ref('res_partner_micropc0'),
+ 'period_id': ref('account.period_8'),
+ 'type': 'receipt',
+ }
+ res['value']['line_cr_ids'][0]['amount'] = 450.0
+ vals['line_cr_ids'] = [(0,0,i) for i in res['value']['line_cr_ids']]
+ id = self.create(cr, uid, vals)
+ voucher_id = self.browse(cr, uid, id)
+ assert (voucher_id.state=='draft'), "Voucher is not in draft state"
+ wf_service = netsvc.LocalService("workflow")
+ wf_service.trg_validate(uid, 'account.voucher', voucher_id.id, 'proforma_voucher', cr)
+
+-
+ Finally i will Confirm the state of the invoice is paid
+-
+ !assert {model: account.invoice, id: account_invoice_0}:
+ - state == 'paid'
diff --git a/addons/account_voucher/test/sales_receipt.yml b/addons/account_voucher/test/sales_receipt.yml
new file mode 100644
index 00000000000..70539f5061f
--- /dev/null
+++ b/addons/account_voucher/test/sales_receipt.yml
@@ -0,0 +1,74 @@
+
+-
+ In order to test sales receipt i will create a sale receipt and pay it through sales payment
+-
+ First of all I create a voucher
+-
+ !record {model: account.voucher, id: account_voucher_chinaexport_0}:
+ account_id: account.a_recv
+ amount: 30000.0
+ company_id: base.main_company
+ journal_id: account.sales_journal
+ line_cr_ids:
+ - account_id: account.a_sale
+ amount: 30000.0
+ partner_id: base.res_partner_3
+ period_id: account.period_8
+ tax_amount: 0.0
+ type: sale
+
+-
+ I check that the voucher state is Draft
+-
+ !assert {model: account.voucher, id: account_voucher_chinaexport_0}:
+ - state == 'draft'
+
+-
+ I clicked on post button to post the voucher
+-
+ !workflow {model: account.voucher, action: proforma_voucher, ref: account_voucher_chinaexport_0}
+
+-
+ Check the voucher state is Posted
+-
+ !assert {model: account.voucher, id: account_voucher_chinaexport_0}:
+ - state == 'posted'
+
+-
+ I create a voucher record for the same partner
+-
+ !record {model: account.voucher, id: account_voucher_chinaexport_1}:
+ account_id: account.cash
+ amount: 30000.0
+ company_id: base.main_company
+ currency_id: base.EUR
+ journal_id: account.bank_journal
+ line_cr_ids:
+ - account_id: account.a_recv
+ amount: 0.0
+ name: 2010/003
+ type: cr
+ - account_id: account.a_recv
+ amount: 30000.0
+ name: 2010/003
+ type: cr
+ partner_id: base.res_partner_3
+ period_id: account.period_8
+ type: receipt
+
+-
+ Check the voucher state is draft
+-
+ !assert {model: account.voucher, id: account_voucher_chinaexport_1}:
+ - state == 'draft'
+
+-
+ I clicked on Post button to post the voucher
+-
+ !workflow {model: account.voucher, action: proforma_voucher, ref: account_voucher_chinaexport_1}
+
+-
+ Check the voucher state is Posted
+-
+ !assert {model: account.voucher, id: account_voucher_chinaexport_1}:
+ - state == 'posted'