res.partner.form.reconcile
diff --git a/addons/account/process/customer_invoice_process.xml b/addons/account/process/customer_invoice_process.xml
index 1f04c8e023b..51e8254d20e 100644
--- a/addons/account/process/customer_invoice_process.xml
+++ b/addons/account/process/customer_invoice_process.xml
@@ -121,10 +121,6 @@
Process Transition
-->
-
-
-
-
diff --git a/addons/account/product.py b/addons/account/product.py
index 188c3260dff..56e721dcb06 100644
--- a/addons/account/product.py
+++ b/addons/account/product.py
@@ -48,6 +48,7 @@ product_category()
#----------------------------------------------------------
# Products
#----------------------------------------------------------
+
class product_template(osv.osv):
_inherit = "product.template"
_columns = {
@@ -76,5 +77,3 @@ class product_template(osv.osv):
}
product_template()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index bf0b186e1ea..3738230483c 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -51,16 +51,15 @@
tree
child_ids
-
+
+
-
-
@@ -188,22 +187,29 @@
+
+
+
+
-
-
+
-
-
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py
index 9021878d40a..245cc42612a 100644
--- a/addons/account/report/account_invoice_report.py
+++ b/addons/account/report/account_invoice_report.py
@@ -48,7 +48,7 @@ class account_invoice_report(osv.osv):
'user_id': fields.many2one('res.users', 'Salesman', readonly=True),
'price_total': fields.float('Total Without Tax', readonly=True),
'price_total_tax': fields.float('Total With Tax', readonly=True),
- 'price_average': fields.float('Average Price', readonly=True),
+ 'price_average': fields.float('Average Price', readonly=True, group_operator="avg"),
'nbr':fields.integer('# of Lines', readonly=True),
'type': fields.selection([
('out_invoice','Customer Invoice'),
@@ -116,7 +116,15 @@ class account_invoice_report(osv.osv):
else
ai.amount_total
end) as price_total_tax,
- sum(ail.quantity*ail.price_unit)/sum(ail.quantity*u.factor)*count(ail.product_id)::decimal(16,2) as price_average,
+ (case when ai.type in ('out_refund','in_invoice') then
+ sum(ail.quantity*ail.price_unit*-1)
+ else
+ sum(ail.quantity*ail.price_unit)
+ end)/(case when ai.type in ('out_refund','in_invoice') then
+ sum(ail.quantity*u.factor*-1)
+ else
+ sum(ail.quantity*u.factor)
+ end) as price_average,
sum((select extract(epoch from avg(date_trunc('day',aml.date_created)-date_trunc('day',l.create_date)))/(24*60*60)::decimal(16,2)
from account_move_line as aml
left join account_invoice as a ON (a.move_id=aml.move_id)
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/report/overdue.rml b/addons/account/report/overdue.rml
index e8e1a7dc84c..3218f84b4a0 100644
--- a/addons/account/report/overdue.rml
+++ b/addons/account/report/overdue.rml
@@ -147,7 +147,7 @@
Ref
|
- Maturity date
+ Due date
|
Due
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 ]]
-
+
diff --git a/addons/account/test/account_customer_invoice.yml b/addons/account/test/account_customer_invoice.yml
index 0eaa3a688c6..d94b791fe66 100644
--- a/addons/account/test/account_customer_invoice.yml
+++ b/addons/account/test/account_customer_invoice.yml
@@ -54,83 +54,13 @@
!python {model: account.invoice}: |
acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
assert acc_id.move_id, "Move not created for open invoice"
--
- I create a record for partial payment of 1000 EUR.
--
- !record {model: account.invoice.pay, id: account_invoice_pay_first0}:
- amount: 1000.0
- date: '2010-05-26'
- journal_id: account.sales_journal
- name: First payment for [PC3] Medium PC to Distrib PC
- period_id: account.period_5
--
- I make partial payment by clicking on Partial Payment button
--
- !python {model: account.invoice.pay}: |
- self.pay_and_reconcile(cr, uid, [ref("account_invoice_pay_first0")], {"lang":
- 'en_US', "active_model": "account.invoice", "tz": False, "record_id": 3, "active_ids":
- [ref("account_invoice_customer0")], "type": "out_invoice", "active_id": ref("account_invoice_customer0"),
- })
--
- I check that the invoice state is still open
--
- !assert {model: account.invoice, id: account_invoice_customer0}:
- - state == 'open'
--
- I make second partial payment of 6000 EUR.
--
- !record {model: account.invoice.pay, id: account_invoice_pay_second0}:
- amount: 6000.0
- date: '2010-05-28'
- journal_id: account.sales_journal
- name: Second payment for [PC3] Medium PC to Distrib PC
- period_id: account.period_5
--
- I make partial payment by clicking on Partial Payment button
-
--
- !python {model: account.invoice.pay}: |
- self.pay_and_reconcile(cr, uid, [ref("account_invoice_pay_second0")], {"lang":
- 'en_US', "active_model": "account.invoice", "tz": False, "record_id": 3, "active_ids":
- [ref("account_invoice_customer0")], "type": "out_invoice", "active_id": ref("account_invoice_customer0"),
- })
--
- I make final partial payment of 2000 EUR
--
- !record {model: account.invoice.pay, id: account_invoice_pay_final0}:
- amount: 2000.0
- date: '2010-05-30'
- journal_id: account.sales_journal
- name: Final payment for [PC3] Medium PC to Distrib PC
- period_id: account.period_5
-
--
- I make partial payment by clicking on Partial Payment button
-
--
- !python {model: account.invoice.pay}: |
- self.pay_and_reconcile(cr, uid, [ref("account_invoice_pay_final0")], {"lang":
- 'en_US', "active_model": "account.invoice", "tz": False, "record_id": 3, "active_ids":
- [ref("account_invoice_customer0")], "type": "out_invoice", "active_id": ref("account_invoice_customer0"),
- })
-
--
- I check that the invoice state is now Done
--
- !assert {model: account.invoice, id: account_invoice_customer0}:
- - state == 'paid'
--
- I check that an payment entry gets created in the account.move.line
--
- !python {model: account.invoice}: |
- acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
- assert(acc_id.move_id)
-
I refund the invoice Using Refund Button
-
!record {model: account.invoice.refund, id: account_invoice_refund_0}:
description: Refund To China Export
period: account.period_5
+ filter_refund: refund
-
I clicked on refund button
-
diff --git a/addons/account/test/account_supplier_invoice.yml b/addons/account/test/account_supplier_invoice.yml
index c5ed0087a92..7d1a54cffd6 100644
--- a/addons/account/test/account_supplier_invoice.yml
+++ b/addons/account/test/account_supplier_invoice.yml
@@ -32,55 +32,4 @@
I check that the invoice state is now "Open"
-
!assert {model: account.invoice, id: account_invoice_supplier0}:
- - state == 'open'
--
- I make a partial payment of 2000 EUR
--
- !record {model: account.invoice.pay, id: account_invoice_pay_firstpaymenttoaxelorforbasicpc0}:
- amount: 2000.0
- date: '2010-05-29'
- journal_id: account.sales_journal
- name: First Payment to Axelor for Basic PC
- period_id: account.period_5
--
- I make partial payment by clicking on Partial Payment button
--
- !python {model: account.invoice.pay}: |
- self.pay_and_reconcile(cr, uid, [ref("account_invoice_pay_firstpaymenttoaxelorforbasicpc0")],
- {"lang": 'en_US', "active_model": "account.invoice", "tz": False, "record_id":
- 25, "active_ids": [ref("account_invoice_supplier0")], "type": "in_invoice", "active_id":
- ref("account_invoice_supplier0"), })
--
- I check that the invoice state is still "Open"
--
- !assert {model: account.invoice, id: account_invoice_supplier0}:
- - state == 'open'
--
- I make final partial payment of 1000 EUR
--
- !record {model: account.invoice.pay, id: account_invoice_pay_finalpaymenttoaxelorforbasicpc0}:
- amount: 1000.0
- date: '2010-06-17'
- journal_id: account.sales_journal
- name: Final Payment to Axelor for Basic PC
- period_id: account.period_5
--
- I make partial payment by clicking on Partial Payment button
--
- !python {model: account.invoice.pay}: |
- self.pay_and_reconcile(cr, uid, [ref("account_invoice_pay_finalpaymenttoaxelorforbasicpc0")],
- {"lang": 'en_US', "active_model": "account.invoice", "tz": False, "record_id":
- 25, "active_ids": [ref("account_invoice_supplier0")], "type": "in_invoice", "active_id":
- ref("account_invoice_supplier0"), })
-
--
- I check that the invoice state is now "Done"
--
- !assert {model: account.invoice, id: account_invoice_supplier0}:
- - state == 'paid'
--
- I check that an payment entry gets created in the account move line
--
- !python {model: account.invoice}: |
- acc_id=self.browse(cr, uid, ref("account_invoice_supplier0"))
- assert(acc_id.move_id)
+ - state == 'open'
\ No newline at end of file
diff --git a/addons/account/test/account_validate_account_move.yml b/addons/account/test/account_validate_account_move.yml
index e775c8d50d5..37d64ead528 100644
--- a/addons/account/test/account_validate_account_move.yml
+++ b/addons/account/test/account_validate_account_move.yml
@@ -37,7 +37,7 @@
-
I check that Initially account move state is "Draft"
-
- !assert {model: account.move, id: account_move_0}:
+ !assert {model: account.move, id: account_move_0, string: initialstatedraft}:
- state == 'draft'
-
I validate this account move by using the 'Validate Journal Entries' wizard
@@ -46,15 +46,12 @@
journal_id: account.bank_journal
period_id: account.period_6
-
- I clicked on validate Button
+ I click on validate Button
-
!python {model: validate.account.move}: |
- self.validate_move(cr, uid, [ref("validate_account_move_0")], {"lang": "en_US",
- "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_validate_account_moves")],
- "tz": False, "active_id": ref("account.menu_validate_account_moves"), })
-
+ self.validate_move(cr, uid, [ref("validate_account_move_0")], {"lang": "en_US", "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_validate_account_moves")], "tz": False, "active_id": ref("account.menu_validate_account_moves"), })
-
I check that the invoice state is now "Posted"
-
- !assert {model: account.move, id: account_move_0}:
+ !assert {model: account.move, id: account_move_0, string: moveincorrect}:
- state == 'posted'
diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py
index 6846e3b771f..06d77249f96 100644
--- a/addons/account/wizard/__init__.py
+++ b/addons/account/wizard/__init__.py
@@ -31,7 +31,6 @@ import account_reconcile_partner_process
import account_reconcile
import account_unreconcile
import account_invoice_refund
-import account_pay_invoice
import account_move_journal
import account_journal_select
import account_move_bank_reconcile
diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py
index f7de4b593f3..3d5f308f7bd 100644
--- a/addons/account/wizard/account_chart.py
+++ b/addons/account/wizard/account_chart.py
@@ -24,7 +24,7 @@ from tools.translate import _
class account_chart(osv.osv_memory):
"""
- For Chart of Accounrs
+ For Chart of Accounts
"""
_name = "account.chart"
_description = "Account chart"
diff --git a/addons/account/wizard/account_move_journal_view.xml b/addons/account/wizard/account_move_journal_view.xml
index b43ad18df6e..e2541d6d73d 100644
--- a/addons/account/wizard/account_move_journal_view.xml
+++ b/addons/account/wizard/account_move_journal_view.xml
@@ -21,7 +21,7 @@
{'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/wizard/account_pay_invoice.py b/addons/account/wizard/account_pay_invoice.py
deleted file mode 100644
index 93716dc65bf..00000000000
--- a/addons/account/wizard/account_pay_invoice.py
+++ /dev/null
@@ -1,202 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-import time
-
-from osv import fields, osv
-from tools.translate import _
-import decimal_precision as dp
-
-class account_invoice_pay_writeoff(osv.osv_memory):
- """
- Opens the write off amount pay form.
- """
- _name = "account.invoice.pay.writeoff"
- _description = "Pay Invoice "
- _columns = {
- 'writeoff_acc_id': fields.many2one('account.account', 'Write-Off account', required=True),
- 'writeoff_journal_id': fields.many2one('account.journal', 'Write-Off journal', required=True),
- 'comment': fields.char('Comment', size=64, required=True),
- 'analytic_id': fields.many2one('account.analytic.account','Analytic Account', domain=[('parent_id', '!=', False)])
- }
- _defaults = {
- 'comment': 'Write-Off',
- }
-
- def pay_and_reconcile_writeoff(self, cr, uid, ids, context=None):
- data = self.read(cr, uid, ids, context=context)[0]
- context.update({'write_off': data})
- self.pool.get('account.invoice.pay').pay_and_reconcile(cr, uid, ids, context=context)
- return {}
-
-account_invoice_pay_writeoff()
-
-class account_invoice_pay(osv.osv_memory):
- """
- Generate pay invoice wizard, user can make partial or full payment for invoice.
- """
- _name = "account.invoice.pay"
- _description = "Pay Invoice "
- _columns = {
- 'amount': fields.float('Amount paid', required=True, digits_compute = dp.get_precision('Account')),
- 'name': fields.char('Entry Name', size=64, required=True),
- 'date': fields.date('Date payment', required=True),
- 'journal_id': fields.many2one('account.journal', 'Journal/Payment Mode', required=True, domain=[('type','=','cash')]),
- 'period_id': fields.many2one('account.period', 'Period', required=True),
- }
-
- def view_init(self, cr, uid, ids, context=None):
- if context is None:
- context = {}
- if context.get('active_id', False):
- invoice = self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context)
- if invoice.state in ['draft', 'proforma2', 'cancel']:
- raise osv.except_osv(_('Error !'), _('Can not pay draft/proforma/cancel invoice.'))
- pass
-
- def _get_period(self, cr, uid, context=None):
- period_id = False
- ids = self.pool.get('account.period').find(cr, uid, context=context)
- if len(ids):
- period_id = ids[0]
- return period_id
-
- def _get_amount(self, cr, uid, context=None):
- if context is None:
- context = {}
- if context.get('active_id', False):
- return self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context).residual
- return 0.0
-
- _defaults = {
- 'date': time.strftime('%Y-%m-%d'),
- 'period_id': _get_period,
- 'amount': _get_amount,
- }
-
- def wo_check(self, cr, uid, ids, context=None):
- cur_obj = self.pool.get('res.currency')
- mod_obj = self.pool.get('ir.model.data')
- inv_obj = self.pool.get('account.invoice')
- if context is None:
- context = {}
- data = self.read(cr, uid, ids,context=context)[0]
- invoice = inv_obj.browse(cr, uid, context['active_id'], context)
- journal = self.pool.get('account.journal').browse(cr, uid, data['journal_id'], context)
-
- # Here we need that:
- # The invoice total amount in company's currency <> paid amount in company currency
- # (according to the correct day rate, invoicing rate and payment rate are may be different)
- # => Ask to a write-off of the difference. This could happen even if both amount are equal,
- # because if the currency rate
- # Get the amount in company currency for the invoice (according to move lines)
- inv_amount_company_currency = 0
- for aml in invoice.move_id.line_id:
- if aml.account_id.id == invoice.account_id.id or aml.account_id.type in ('receivable', 'payable'):
- inv_amount_company_currency += aml.debit
- inv_amount_company_currency -= aml.credit
- inv_amount_company_currency = abs(inv_amount_company_currency)
-
- # Get the current amount paid in company currency
- if journal.currency and invoice.company_id.currency_id.id<>journal.currency.id:
- ctx = {'date':data['date']}
- amount_paid = cur_obj.compute(cr, uid, journal.currency.id, invoice.company_id.currency_id.id, data['amount'], round=True, context=ctx)
- else:
- amount_paid = data['amount']
- # Get the old payment if there are some
- if invoice.payment_ids:
- debit = credit = 0.0
- for payment in invoice.payment_ids:
- debit += payment.debit
- credit += payment.credit
- amount_paid += abs(debit-credit)
-
- # Test if there is a difference according to currency rouding setting
- if self.pool.get('res.currency').is_zero(cr, uid, invoice.company_id.currency_id,
- (amount_paid - inv_amount_company_currency)):
- return self.pay_and_reconcile(cr, uid, ids, context=context)
- else:
- model_data_ids = mod_obj.search(cr, uid,[('model','=','ir.ui.view'),('name','=','view_account_invoice_pay_writeoff')], context=context)
- resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
- return {
- 'name': _('Information addendum'),
- 'context': context,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'account.invoice.pay.writeoff',
- 'views': [(resource_id,'form')],
- 'type': 'ir.actions.act_window',
- 'target': 'new',
- }
-
- def pay_and_reconcile(self, cr, uid, ids, context=None):
- cur_obj = self.pool.get('res.currency')
- inv_obj = self.pool.get('account.invoice')
- if context is None:
- context = {}
- data = self.read(cr, uid, ids, context=context)[0]
- writeoff_account_id = False
- writeoff_journal_id = False
- comment = False
-
- if 'write_off' in context and context['write_off'] :
- writeoff_account_id = context['write_off']['writeoff_acc_id']
- writeoff_journal_id = context['write_off']['writeoff_journal_id']
- comment = context['write_off']['comment']
- context['analytic_id'] = context['write_off']['analytic_id']
-
- amount = data['amount']
-
- invoice = inv_obj.browse(cr, uid, context['active_id'], context=context)
- journal = self.pool.get('account.journal').browse(cr, uid, data['journal_id'], context=context)
- # Compute the amount in company's currency, with the journal currency (which is equal to payment currency)
- # when it is needed : If payment currency (according to selected journal.currency) is <> from company currency
- if journal.currency and invoice.company_id.currency_id.id<>journal.currency.id:
- ctx = {'date':data['date']}
- amount = cur_obj.compute(cr, uid, journal.currency.id, invoice.company_id.currency_id.id, amount, context=ctx)
- currency_id = journal.currency.id
- # Put the paid amount in currency, and the currency, in the context if currency is different from company's currency
- context.update({'amount_currency':data['amount'],'currency_id':currency_id})
-
- if invoice.company_id.currency_id.id<>invoice.currency_id.id:
- ctx = {'date':data['date']}
- amount = cur_obj.compute(cr, uid, invoice.currency_id.id, invoice.company_id.currency_id.id, amount, context=ctx)
- currency_id = invoice.currency_id.id
- # Put the paid amount in currency, and the currency, in the context if currency is different from company's currency
- context.update({'amount_currency':data['amount'],'currency_id':currency_id})
-
- # Take the choosen date
- if comment:
- context.update({'date_p':data['date'],'comment':comment})
- else:
- context.update({'date_p':data['date'],'comment':False})
-
- acc_id = journal.default_credit_account_id and journal.default_credit_account_id.id
- if not acc_id:
- raise osv.except_osv(_('Error !'), _('Your journal must have a default credit and debit account.'))
- inv_obj.pay_and_reconcile(cr, uid, [context['active_id']],
- amount, acc_id, data['period_id'], data['journal_id'], writeoff_account_id,
- data['period_id'], writeoff_journal_id, context, data['name'])
- return {}
-
-account_invoice_pay()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/wizard/account_pay_invoice_view.xml b/addons/account/wizard/account_pay_invoice_view.xml
deleted file mode 100644
index a1576245946..00000000000
--- a/addons/account/wizard/account_pay_invoice_view.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
- account.invoice.pay.form
- account.invoice.pay
- form
-
-
-
-
-
-
- Pay Invoice
- ir.actions.act_window
- account.invoice.pay
- form
- form
-
- {'record_id' : active_id}
- new
-
-
-
-
- account.invoice.pay.writeoff.form
- account.invoice.pay.writeoff
- form
-
-
-
-
-
-
-
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 @@
+
diff --git a/addons/account/wizard/account_tax_chart.py b/addons/account/wizard/account_tax_chart.py
index 5b5feaf480c..1595a603dd0 100644
--- a/addons/account/wizard/account_tax_chart.py
+++ b/addons/account/wizard/account_tax_chart.py
@@ -37,7 +37,8 @@ class account_tax_chart(osv.osv_memory):
def _get_period(self, cr, uid, context=None):
"""Return default period value"""
- return self.pool.get('account.period').find(cr, uid)
+ period_ids = self.pool.get('account.period').find(cr, uid)
+ return period_ids and period_ids[0] or False
def account_tax_chart_open_window(self, cr, uid, ids, context=None):
"""
diff --git a/addons/account_analytic_analysis/i18n/bg.po b/addons/account_analytic_analysis/i18n/bg.po
index 67af0e2dfd7..6001f71dfcb 100644
--- a/addons/account_analytic_analysis/i18n/bg.po
+++ b/addons/account_analytic_analysis/i18n/bg.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:19+0000\n"
+"PO-Revision-Date: 2010-09-05 08:46+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/fi.po b/addons/account_analytic_analysis/i18n/fi.po
index 92db0ab2e25..c6b18f0b724 100644
--- a/addons/account_analytic_analysis/i18n/fi.po
+++ b/addons/account_analytic_analysis/i18n/fi.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:22+0000\n"
+"PO-Revision-Date: 2010-09-05 08:33+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Finnish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/fr.po b/addons/account_analytic_analysis/i18n/fr.po
index e5b586a04ef..a9eaeaac92e 100644
--- a/addons/account_analytic_analysis/i18n/fr.po
+++ b/addons/account_analytic_analysis/i18n/fr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-02 20:31+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-09-02 07:26+0000\n"
+"Last-Translator: Quentin THEURET \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-12 03:57+0000\n"
+"X-Launchpad-Export-Date: 2010-09-03 03:48+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
@@ -22,6 +22,8 @@ msgid ""
"Number of hours that can be invoiced plus those that already have been "
"invoiced."
msgstr ""
+"Nombre d'heures qui peuvent être facturées plus celles qui ont déjà été "
+"facturées."
#. module: account_analytic_analysis
#: model:ir.model,name:account_analytic_analysis.model_account_analytic_analysis_summary_user
@@ -76,7 +78,7 @@ msgstr "Revenu théorique"
#. module: account_analytic_analysis
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr "Nom du Modèle non valide dans la définition de l'action."
+msgstr "Nom du modèle invalide dans la définition de l'action."
#. module: account_analytic_analysis
#: help:account.analytic.account,theorical_margin:0
diff --git a/addons/account_analytic_analysis/i18n/lt.po b/addons/account_analytic_analysis/i18n/lt.po
index 058eb8ae51f..71787ab9945 100644
--- a/addons/account_analytic_analysis/i18n/lt.po
+++ b/addons/account_analytic_analysis/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:20+0000\n"
+"PO-Revision-Date: 2010-09-05 08:39+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/tr.po b/addons/account_analytic_analysis/i18n/tr.po
index 5feaf05685a..d4dacd69200 100644
--- a/addons/account_analytic_analysis/i18n/tr.po
+++ b/addons/account_analytic_analysis/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:19+0000\n"
+"PO-Revision-Date: 2010-09-05 08:46+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_default/account_analytic_default.py b/addons/account_analytic_default/account_analytic_default.py
index 43e3d2eb248..d0405e1ff52 100644
--- a/addons/account_analytic_default/account_analytic_default.py
+++ b/addons/account_analytic_default/account_analytic_default.py
@@ -73,8 +73,8 @@ class account_invoice_line(osv.osv):
_inherit = 'account.invoice.line'
_description = 'Invoice Line'
- def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fiscal_position=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None):
- res_prod = super(account_invoice_line,self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fiscal_position, price_unit, address_invoice_id, currency_id=currency_id, context=context)
+ def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None):
+ res_prod = super(account_invoice_line,self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, currency_id=currency_id, context=context)
rec = self.pool.get('account.analytic.default').account_get(cr, uid, product, partner_id, uid, time.strftime('%Y-%m-%d'), context)
if rec:
res_prod['value'].update({'account_analytic_id':rec.analytic_id.id})
diff --git a/addons/account_analytic_default/i18n/lt.po b/addons/account_analytic_default/i18n/lt.po
index 801bbad630f..50da6cfcd93 100644
--- a/addons/account_analytic_default/i18n/lt.po
+++ b/addons/account_analytic_default/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:19+0000\n"
+"PO-Revision-Date: 2010-09-05 08:46+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
diff --git a/addons/account_analytic_default/i18n/nl.po b/addons/account_analytic_default/i18n/nl.po
index 33c21bf84c9..68065c361bb 100644
--- a/addons/account_analytic_default/i18n/nl.po
+++ b/addons/account_analytic_default/i18n/nl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-02 20:46+0000\n"
-"Last-Translator: mga (Open ERP) \n"
+"PO-Revision-Date: 2010-09-02 07:24+0000\n"
+"Last-Translator: OpenERP Administrators \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-12 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-03 03:48+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
@@ -31,14 +31,14 @@ msgstr "Standaard kostenplaats"
#. module: account_analytic_default
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr "Ongeldige XML voor overzicht"
+msgstr "Ongeldige XML, kan overzicht niet weergeven!"
#. module: account_analytic_default
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
-"De objectnaam moet beginnen met x_ en mag geen speciale karakters bevatten !"
+"De objectnaam moet beginnen met x_ en mag geen speciale tekens bevatten!"
#. module: account_analytic_default
#: view:account.analytic.default:0
diff --git a/addons/account_analytic_default/i18n/tr.po b/addons/account_analytic_default/i18n/tr.po
index bf640810247..4235e199b37 100644
--- a/addons/account_analytic_default/i18n/tr.po
+++ b/addons/account_analytic_default/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:19+0000\n"
+"PO-Revision-Date: 2010-09-05 08:46+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
diff --git a/addons/account_analytic_plans/i18n/fr.po b/addons/account_analytic_plans/i18n/fr.po
index 856db8edab4..0e454d9b6ac 100644
--- a/addons/account_analytic_plans/i18n/fr.po
+++ b/addons/account_analytic_plans/i18n/fr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-02 21:59+0000\n"
-"Last-Translator: TeMPO \n"
+"PO-Revision-Date: 2010-09-02 07:23+0000\n"
+"Last-Translator: Quentin THEURET \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-12 03:57+0000\n"
+"X-Launchpad-Export-Date: 2010-09-03 03:48+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
@@ -77,7 +77,7 @@ msgstr "Imprimer"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "To Date"
-msgstr ""
+msgstr "Jusqu'a la date"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance.line,plan_id:0
@@ -117,7 +117,7 @@ msgstr "Nom du Plan"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Printing date"
-msgstr ""
+msgstr "Date d'impression"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
@@ -158,7 +158,7 @@ msgstr "Réf. du Compte Analytique"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Analytic Account :"
-msgstr ""
+msgstr "Compte Analytique :"
#. module: account_analytic_plans
#: view:account.analytic.plan.line:0
@@ -408,4 +408,4 @@ msgstr "à"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "From Date"
-msgstr ""
+msgstr "Depuis la date"
diff --git a/addons/account_analytic_plans/i18n/lt.po b/addons/account_analytic_plans/i18n/lt.po
index 71abef00a39..b847e08af3c 100644
--- a/addons/account_analytic_plans/i18n/lt.po
+++ b/addons/account_analytic_plans/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:19+0000\n"
+"PO-Revision-Date: 2010-09-05 08:46+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
diff --git a/addons/account_analytic_plans/i18n/pt_BR.po b/addons/account_analytic_plans/i18n/pt_BR.po
index 7b2ce02f9c7..449cab43eca 100644
--- a/addons/account_analytic_plans/i18n/pt_BR.po
+++ b/addons/account_analytic_plans/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 15:06+0000\n"
-"Last-Translator: Roberto Higashi \n"
+"PO-Revision-Date: 2010-09-01 06:55+0000\n"
+"Last-Translator: OpenERP Administrators \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-02 03:54+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
diff --git a/addons/account_analytic_plans/i18n/tr.po b/addons/account_analytic_plans/i18n/tr.po
index 8058738d2a4..466df3be011 100644
--- a/addons/account_analytic_plans/i18n/tr.po
+++ b/addons/account_analytic_plans/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-31 08:18+0000\n"
+"PO-Revision-Date: 2010-09-05 08:44+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-09-06 05:02+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
diff --git a/addons/account_anglo_saxon/i18n/fr.po b/addons/account_anglo_saxon/i18n/fr.po
new file mode 100644
index 00000000000..ab665ae43dc
--- /dev/null
+++ b/addons/account_anglo_saxon/i18n/fr.po
@@ -0,0 +1,64 @@
+# French translation for openobject-addons
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR , 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
+"POT-Creation-Date: 2009-11-24 12:50+0000\n"
+"PO-Revision-Date: 2010-09-03 12:05+0000\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: French \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-09-04 04:47+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: account_anglo_saxon
+#: view:product.category:0
+msgid " Accounting Property"
+msgstr ""
+
+#. module: account_anglo_saxon
+#: model:ir.module.module,description:account_anglo_saxon.module_meta_information
+msgid ""
+"This module will support the Anglo-Saxons accounting methodology by \n"
+" changing the accounting logic with stock transactions. The difference "
+"between the Anglo-Saxon accounting countries \n"
+" and the Rhine or also called Continental accounting countries is the "
+"moment of taking the Cost of Goods Sold versus Cost of Sales. \n"
+" Anglo-Saxons accounting does take the cost when sales invoice is "
+"created, Continental accounting will take the cost at he moment the goods "
+"are shipped.\n"
+" This module will add this functionality by using a interim account, to "
+"store the value of shipped goods and will contra book this interim account \n"
+" when the invoice is created to transfer this amount to the debtor or "
+"creditor account."
+msgstr ""
+
+#. module: account_anglo_saxon
+#: model:ir.module.module,shortdesc:account_anglo_saxon.module_meta_information
+msgid "Stock Account"
+msgstr ""
+
+#. module: account_anglo_saxon
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr ""
+
+#. module: account_anglo_saxon
+#: field:product.category,property_account_creditor_price_difference_categ:0
+#: field:product.template,property_account_creditor_price_difference:0
+msgid "Price Difference Account"
+msgstr ""
+
+#. module: account_anglo_saxon
+#: help:product.category,property_account_creditor_price_difference_categ:0
+#: help:product.template,property_account_creditor_price_difference:0
+msgid ""
+"This account will be used to value price difference between purchase price "
+"and cost price."
+msgstr ""
diff --git a/addons/account_anglo_saxon/i18n/ta.po b/addons/account_anglo_saxon/i18n/ta.po
index 85e2c1e8271..a6d6b1bec5a 100644
--- a/addons/account_anglo_saxon/i18n/ta.po
+++ b/addons/account_anglo_saxon/i18n/ta.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-24 12:50+0000\n"
-"PO-Revision-Date: 2010-09-01 02:10+0000\n"
+"PO-Revision-Date: 2010-09-01 06:55+0000\n"
"Last-Translator: ஆமாச்சு \n"
"Language-Team: Tamil \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-09-01 04:00+0000\n"
+"X-Launchpad-Export-Date: 2010-09-02 03:55+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_anglo_saxon
diff --git a/addons/account_anglo_saxon/invoice.py b/addons/account_anglo_saxon/invoice.py
index 4c3b9b81dcc..ff356547a83 100644
--- a/addons/account_anglo_saxon/invoice.py
+++ b/addons/account_anglo_saxon/invoice.py
@@ -127,11 +127,11 @@ class account_invoice_line(osv.osv):
res += diff_res
return res
- def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None):
+ def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None):
if not product:
- return super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, context)
+ return super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, currency_id, context)
else:
- res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, context)
+ res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, currency_id, context)
if type in ('in_invoice','in_refund'):
product_obj = self.pool.get('product.product').browse(cr, uid, product, context=context)
@@ -173,4 +173,4 @@ class account_invoice(osv.osv):
return res
account_invoice()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
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.py b/addons/account_budget/crossovered_budget.py
index 209e42ff32c..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):
@@ -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')
@@ -60,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):
@@ -107,8 +106,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)]}),
@@ -118,7 +117,7 @@ class crossovered_budget(osv.osv):
}
_defaults = {
- 'state': lambda *a: 'draft',
+ 'state': 'draft',
'creating_user_id': lambda self,cr,uid,context: uid,
}
@@ -128,6 +127,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_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/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index 39877e7a712..b863979ad92 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 @@
-
-
-
+
+
+
|