diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py
index 09e51486ad2..1792177ed49 100644
--- a/addons/account/__openerp__.py
+++ b/addons/account/__openerp__.py
@@ -79,7 +79,7 @@ module named account_vouchers
'wizard/account_invoice_state_view.xml',
'wizard/account_partner_balance_report_view.xml',
'wizard/account_balance_report_view.xml',
- 'wizard/account_move_line_select_view.xml',
+# 'wizard/account_move_line_select_view.xml',
'wizard/account_aged_trial_balance_view.xml',
'wizard/account_compare_account_balance_report_view.xml',
'wizard/account_third_party_ledger.xml',
@@ -127,7 +127,6 @@ module named account_vouchers
'board_account_demo.xml',
],
'test': [
- 'test/account_sequence_test.yml',
'test/account_customer_invoice.yml',
'test/account_supplier_invoice.yml',
'test/account_change_currency.yml',
@@ -137,7 +136,7 @@ module named account_vouchers
'test/account_invoice_state.yml',
'test/account_use_model.yml',
'test/account_validate_account_move.yml',
-# 'test/account_fiscalyear_close.yml',
+ 'test/account_fiscalyear_close.yml',
],
'installable': True,
'active': False,
diff --git a/addons/account/account.py b/addons/account/account.py
index 9aadf24b7dd..67abf8b4520 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -248,59 +248,59 @@ class account_account(osv.osv):
def __compute(self, cr, uid, ids, field_names, arg=None, context=None,
query='', query_params=()):
- """ compute the balance, debit and/or credit for the provided
- account ids
- Arguments:
- `ids`: account ids
- `field_names`: the fields to compute (a list of any of
- 'balance', 'debit' and 'credit')
- `arg`: unused fields.function stuff
- `query`: additional query filter (as a string)
- `query_params`: parameters for the provided query string
- (__compute will handle their escaping) as a
- tuple
- """
- mapping = {
- 'balance': "COALESCE(SUM(l.debit),0) " \
- "- COALESCE(SUM(l.credit), 0) as balance",
- 'debit': "COALESCE(SUM(l.debit), 0) as debit",
- 'credit': "COALESCE(SUM(l.credit), 0) as credit"
- }
- #get all the necessary accounts
- children_and_consolidated = self._get_children_and_consol(cr, uid, ids, context=context)
- #compute for each account the balance/debit/credit from the move lines
- accounts = {}
- if children_and_consolidated:
- aml_query = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
+ """ compute the balance, debit and/or credit for the provided
+ account ids
+ Arguments:
+ `ids`: account ids
+ `field_names`: the fields to compute (a list of any of
+ 'balance', 'debit' and 'credit')
+ `arg`: unused fields.function stuff
+ `query`: additional query filter (as a string)
+ `query_params`: parameters for the provided query string
+ (__compute will handle their escaping) as a
+ tuple
+ """
+ mapping = {
+ 'balance': "COALESCE(SUM(l.debit),0) " \
+ "- COALESCE(SUM(l.credit), 0) as balance",
+ 'debit': "COALESCE(SUM(l.debit), 0) as debit",
+ 'credit': "COALESCE(SUM(l.credit), 0) as credit"
+ }
+ #get all the necessary accounts
+ children_and_consolidated = self._get_children_and_consol(cr, uid, ids, context=context)
+ #compute for each account the balance/debit/credit from the move lines
+ accounts = {}
+ if children_and_consolidated:
+ aml_query = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
- wheres = [""]
- if query.strip():
- wheres.append(query.strip())
- if aml_query.strip():
- wheres.append(aml_query.strip())
- filters = " AND ".join(wheres)
- self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
- 'Filters: %s'%filters)
- # IN might not work ideally in case there are too many
- # children_and_consolidated, in that case join on a
- # values() e.g.:
- # SELECT l.account_id as id FROM account_move_line l
- # INNER JOIN (VALUES (id1), (id2), (id3), ...) AS tmp (id)
- # ON l.account_id = tmp.id
- # or make _get_children_and_consol return a query and join on that
- request = ("SELECT l.account_id as id, " +\
- ' , '.join(map(mapping.__getitem__, field_names)) +
- " FROM account_move_line l" \
- " WHERE l.account_id IN %s " \
- + filters +
- " GROUP BY l.account_id")
- params = (tuple(children_and_consolidated),) + query_params
- cr.execute(request, params)
- self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
- 'Status: %s'%cr.statusmessage)
+ wheres = [""]
+ if query.strip():
+ wheres.append(query.strip())
+ if aml_query.strip():
+ wheres.append(aml_query.strip())
+ filters = " AND ".join(wheres)
+ self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
+ 'Filters: %s'%filters)
+ # IN might not work ideally in case there are too many
+ # children_and_consolidated, in that case join on a
+ # values() e.g.:
+ # SELECT l.account_id as id FROM account_move_line l
+ # INNER JOIN (VALUES (id1), (id2), (id3), ...) AS tmp (id)
+ # ON l.account_id = tmp.id
+ # or make _get_children_and_consol return a query and join on that
+ request = ("SELECT l.account_id as id, " +\
+ ' , '.join(map(mapping.__getitem__, field_names)) +
+ " FROM account_move_line l" \
+ " WHERE l.account_id IN %s " \
+ + filters +
+ " GROUP BY l.account_id")
+ params = (tuple(children_and_consolidated),) + query_params
+ cr.execute(request, params)
+ self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
+ 'Status: %s'%cr.statusmessage)
- for res in cr.dictfetchall():
- accounts[res['id']] = res
+ for res in cr.dictfetchall():
+ accounts[res['id']] = res
# consolidate accounts with direct children
children_and_consolidated.reverse()
@@ -629,8 +629,8 @@ class account_journal(osv.osv):
'currency': fields.many2one('res.currency', 'Currency', help='The currency used to enter statement'),
'entry_posted': fields.boolean('Skip \'Draft\' State for Created Entries', help='Check this box if you don\'t want new account moves to pass through the \'draft\' state and instead goes directly to the \'posted state\' without any manual validation.'),
'company_id': fields.many2one('res.company', 'Company', required=True, select=1, help="Company related to this journal"),
- 'invoice_sequence_id': fields.many2one('ir.sequence', 'Invoice Sequence', \
- help="The sequence used for invoice numbers in this journal."),
+# 'invoice_sequence_id': fields.many2one('ir.sequence', 'Invoice Sequence', \
+# help="The sequence used for invoice numbers in this journal."),
'allow_date':fields.boolean('Check Date not in the Period', help= 'If set to True then do not accept the entry if the entry date is not into the period dates'),
}
@@ -656,9 +656,18 @@ class account_journal(osv.osv):
@param context: context arguments, like lang, time zone
@return: return a result
"""
+
+ journal_type = ('sale', 'sale_refund', 'purchase', 'purchase_refund')
+ journal_seq = {
+ 'sale':'seq_out_invoice',
+ 'purchase':'seq_in_invoice',
+ 'purchase_refund':'seq_out_refund',
+ 'sale_refund':'seq_in_refund'
+ }
seq_pool = self.pool.get('ir.sequence')
seq_typ_pool = self.pool.get('ir.sequence.type')
+ date_pool = self.pool.get('ir.model.data')
result = True
@@ -685,11 +694,14 @@ class account_journal(osv.osv):
res.update({
'sequence_id':seq_id
})
-
- if not journal.invoice_sequence_id:
- res.update({
- 'invoice_sequence_id':seq_id
- })
+
+# if journal.type in journal_type and not journal.invoice_sequence_id:
+# res_ids = date_pool.search(cr, uid, [('model','=','ir.sequence'), ('name','=',journal_seq.get(journal.type, 'sale'))])
+# inv_seq_id = date_pool.browse(cr, uid, res_ids[0]).res_id
+# inv_seq_id
+# res.update({
+# 'invoice_sequence_id':inv_seq_id
+# })
result = self.write(cr, uid, [journal.id], res)
@@ -1018,7 +1030,6 @@ class account_move(osv.osv):
res.append((move.id, name))
return res
-
def _get_period(self, cr, uid, context):
periods = self.pool.get('account.period').find(cr, uid)
if periods:
@@ -1066,24 +1077,13 @@ class account_move(osv.osv):
'partner_id': fields.related('line_id', 'partner_id', type="many2one", relation="res.partner", string="Partner"),
'amount': fields.function(_amount_compute, method=True, string='Amount', digits_compute=dp.get_precision('Account'), type='float', fnct_search=_search_amount),
'date': fields.date('Date', required=True, states={'posted':[('readonly',True)]}),
- 'type': fields.selection([
- ('pay_voucher','Cash Payment'),
- ('bank_pay_voucher','Bank Payment'),
- ('rec_voucher','Cash Receipt'),
- ('bank_rec_voucher','Bank Receipt'),
- ('cont_voucher','Contra'),
- ('journal_sale_vou','Journal Sale'),
- ('journal_pur_voucher','Journal Purchase'),
- ('journal_voucher','Journal Voucher'),
- ],'Entry Type', select=True , size=128, readonly=True, states={'draft':[('readonly',False)]}),
- 'narration':fields.text('Narration', readonly=True, select=True, states={'draft':[('readonly',False)]}),
+ 'narration':fields.text('Narration', select=True),
'company_id': fields.related('journal_id','company_id',type='many2one',relation='res.company',string='Company',store=True),
}
_defaults = {
'name': lambda *a: '/',
'state': lambda *a: 'draft',
'period_id': _get_period,
- 'type' : lambda *a : 'journal_voucher',
'date': lambda *a:time.strftime('%Y-%m-%d'),
'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
}
@@ -1116,6 +1116,7 @@ class account_move(osv.osv):
'You cannot create entries on different periods/journals in the same move',
['line_id']),
]
+
def post(self, cr, uid, ids, context=None):
if self.validate(cr, uid, ids, context) and len(ids):
for move in self.browse(cr, uid, ids):
@@ -1162,8 +1163,20 @@ class account_move(osv.osv):
# TODO: Check if period is closed !
#
def create(self, cr, uid, vals, context={}):
- if 'line_id' in vals:
- if 'journal_id' in vals:
+ if 'line_id' in vals and context.get('copy'):
+ for l in vals['line_id']:
+ if not l[0]:
+ l[2].update({
+ 'reconcile_id':False,
+ 'reconcil_partial_id':False,
+ 'analytic_lines':False,
+ 'invoice':False,
+ 'ref':False,
+ 'balance':False,
+ 'account_tax_id':False,
+ })
+
+ if 'journal_id' in vals and vals.get('journal_id', False):
for l in vals['line_id']:
if not l[0]:
l[2]['journal_id'] = vals['journal_id']
@@ -1189,11 +1202,14 @@ class account_move(osv.osv):
result = super(account_move, self).create(cr, uid, vals, context)
return result
- def copy(self, cr, uid, id, default=None, context=None):
- if default is None:
- default = {}
- default = default.copy()
- default.update({'state':'draft', 'name':'/',})
+ def copy(self, cr, uid, id, default={}, context={}):
+ default.update({
+ 'state':'draft',
+ 'name':'/',
+ })
+ context.update({
+ 'copy':True
+ })
return super(account_move, self).copy(cr, uid, id, default, context)
def unlink(self, cr, uid, ids, context={}, check=True):
@@ -2527,9 +2543,9 @@ class wizard_multi_charts_accounts(osv.osv_memory):
'account_paid_id': acc_template_ref[value['account_paid_id']],
})
- # Creating Journals
+ # Creating Journals Sales and Purchase
vals_journal={}
- data_id = data_pool.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_journal_view')])
+ data_id = data_pool.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_sp_journal_view')])
data = data_pool.browse(cr, uid, data_id[0])
view_id = data.res_id
@@ -2561,6 +2577,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
vals_journal['type'] = 'purchase'
vals_journal['code'] = _('EXJ')
vals_journal['sequence_id'] = seq_id_purchase
+ vals_journal['view_id'] = view_id
if obj_multi.chart_template_id.property_account_payable:
vals_journal['default_credit_account_id'] = acc_template_ref[obj_multi.chart_template_id.property_account_expense_categ.id]
diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py
index d0d8a8e9458..e5581f3f05d 100644
--- a/addons/account/account_bank_statement.py
+++ b/addons/account/account_bank_statement.py
@@ -160,6 +160,32 @@ class account_bank_statement(osv.osv):
'period_id': _get_period,
}
+ def onchange_date(self, cr, user, ids, date, context={}):
+ """
+ Returns a dict that contains new values and context
+ @param cr: A database cursor
+ @param user: ID of the user currently logged in
+ @param date: latest value from user input for field date
+ @param args: other arguments
+ @param context: context arguments, like lang, time zone
+ @return: Returns a dict which contains new values, and context
+ """
+ res = {}
+ period_pool = self.pool.get('account.period')
+ pids = period_pool.search(cr, user, [('date_start','<=',date), ('date_stop','>=',date)])
+ if pids:
+ res.update({
+ 'period_id':pids[0]
+ })
+ context.update({
+ 'period_id':pids[0]
+ })
+
+ return {
+ 'value':res,
+ 'context':context,
+ }
+
def button_confirm_bank(self, cr, uid, ids, context={}):
done = []
res_currency_obj = self.pool.get('res.currency')
@@ -335,6 +361,7 @@ class account_bank_statement(osv.osv):
if st.journal_id.entry_posted:
account_move_obj.write(cr, uid, [move_id], {'state':'posted'})
+ self.log(cr, uid, st.id, 'Statement %s is confirmed and entries are created.' % st.name)
done.append(st.id)
self.write(cr, uid, done, {'state':'confirm'}, context=context)
return True
diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py
index b6c36dd3337..af92d59b89b 100644
--- a/addons/account/account_cash_statement.py
+++ b/addons/account/account_cash_statement.py
@@ -174,6 +174,17 @@ class account_cash_statement(osv.osv):
return company_id
+ def _get_cash_box_lines(self, cr, uid, ids, context={}):
+ res = []
+ curr = [1, 2, 5, 10, 20, 50, 100, 500]
+ for rs in curr:
+ dct = {
+ 'pieces':rs,
+ 'number':0
+ }
+ res.append((0,0,dct))
+ return res
+
_columns = {
'company_id':fields.many2one('res.company', 'Company', required=False),
'journal_id': fields.many2one('account.journal', 'Journal', required=True),
@@ -197,24 +208,23 @@ class account_cash_statement(osv.osv):
'date': lambda *a:time.strftime("%Y-%m-%d %H:%M:%S"),
'journal_id': _default_journal_id,
'user_id': lambda self, cr, uid, context=None: uid,
- 'company_id': _get_company
+ 'company_id': _get_company,
+ 'starting_details_ids':_get_cash_box_lines,
+ 'ending_details_ids':_get_cash_box_lines
}
def create(self, cr, uid, vals, context=None):
company_id = vals and vals.get('company_id',False)
if company_id:
- open_jrnl = self.search(cr, uid, [('company_id', '=', vals['company_id']), ('journal_id', '=', vals['journal_id']), ('state', '=', 'open')])
+ sql = [
+ ('company_id', '=', vals['company_id']),
+ ('journal_id', '=', vals['journal_id']),
+ ('state', '=', 'open')
+ ]
+ open_jrnl = self.search(cr, uid, sql)
if open_jrnl:
- raise osv.except_osv('Error', u'Une caisse de type espèce est déjà ouverte')
- if 'starting_details_ids' in vals:
- vals['starting_details_ids'] = starting_details_ids = map(list, vals['starting_details_ids'])
- for i in starting_details_ids:
- if i and i[0] and i[1]:
- i[0], i[1] = 0, 0
+ raise osv.except_osv('Error', _('You can not have two open register for the same journal'))
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
- res = self._get_starting_balance(cr, uid, [res_id])
- for rs in res:
- super(account_cash_statement, self).write(cr, uid, rs, res.get(rs))
return res_id
def write(self, cr, uid, ids, vals, context=None):
@@ -284,27 +294,26 @@ class account_cash_statement(osv.osv):
number = self.pool.get('ir.sequence').get(cr, uid, statement.journal_id.sequence_id.code)
- if len(statement.starting_details_ids) > 0:
- sid = []
- for line in statement.starting_details_ids:
- sid.append(line.id)
-
- cash_pool.unlink(cr, uid, sid)
-
- cr.execute("select id from account_bank_statement where journal_id=%s and user_id=%s and state=%s order by id desc limit 1", (statement.journal_id.id, uid, 'confirm'))
- rs = cr.fetchone()
- rs = rs and rs[0] or None
- if rs:
- statement = statement_pool.browse(cr, uid, rs)
- balance_start = statement.balance_end_real or 0.0
- open_ids = cash_pool.search(cr, uid, [('ending_id','=',statement.id)])
- for sid in open_ids:
- default = {
- 'ending_id': False,
- 'starting_id':ids[0]
- }
- cash_pool.copy(cr, uid, sid, default)
-
+# if len(statement.starting_details_ids) > 0:
+# sid = []
+# for line in statement.starting_details_ids:
+# sid.append(line.id)
+# cash_pool.unlink(cr, uid, sid)
+#
+# cr.execute("select id from account_bank_statement where journal_id=%s and user_id=%s and state=%s order by id desc limit 1", (statement.journal_id.id, uid, 'confirm'))
+# rs = cr.fetchone()
+# rs = rs and rs[0] or None
+# if rs:
+# statement = statement_pool.browse(cr, uid, rs)
+# balance_start = statement.balance_end_real or 0.0
+# open_ids = cash_pool.search(cr, uid, [('ending_id','=',statement.id)])
+# for sid in open_ids:
+# default = {
+# 'ending_id': False,
+# 'starting_id':ids[0]
+# }
+# cash_pool.copy(cr, uid, sid, default)
+#
vals = {
'date':time.strftime("%Y-%m-%d %H:%M:%S"),
'state':'open',
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index ddd2cc2dabe..e9dee5944d5 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -135,6 +135,12 @@
+
+
+
+
+
+
@@ -151,7 +157,7 @@
-
+
@@ -260,7 +266,7 @@
-
+
@@ -365,6 +371,11 @@
+
+
+
+
+
@@ -424,7 +435,7 @@
[('type','=','out_invoice')]
{'type':'out_invoice'}
- Most of customer invoices are automatically generate in draft mode by OpenERP flows, following a purchase order for instance. Review, confirm or cancel, pay or refund yours customers invoices here. A manual invoice can be created here.
+ Most of customer invoices are automatically generated in draft mode by OpenERP flows, following a purchase order for instance. Review, confirm or cancel, pay or refund your customers' invoices here. A manual invoice can be created here.
diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml
index e0ac10abb50..58cc997a111 100644
--- a/addons/account/account_menuitem.xml
+++ b/addons/account/account_menuitem.xml
@@ -8,24 +8,23 @@
-
-
+
+
-
+
-
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
@@ -34,10 +33,9 @@
-
+ groups="group_account_user"/>
@@ -45,7 +43,18 @@
-
+
+
+
+
+
+
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index bf12bdc2087..9dfb5fe1e6a 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -20,7 +20,6 @@
##############################################################################
import time
from datetime import datetime
-
import netsvc
from osv import fields, osv
from tools.translate import _
@@ -183,7 +182,7 @@ class account_move_line(osv.osv):
# Compute the current move
move_id = False
partner_id = False
- if context.get('journal_id',False) and context.get('period_id',False):
+ if context.get('journal_id', False) and context.get('period_id', False):
if 'move_id' in fields:
cr.execute('select move_id \
from \
@@ -199,6 +198,7 @@ class account_move_line(osv.osv):
return data
else:
data['move_id'] = move_id
+
if 'date' in fields:
cr.execute('select date \
from \
@@ -214,7 +214,6 @@ class account_move_line(osv.osv):
period = period_obj.browse(cr, uid, context['period_id'],
context=context)
data['date'] = period.date_start
-
if not move_id:
return data
@@ -401,7 +400,7 @@ class account_move_line(osv.osv):
'credit': fields.float('Credit', digits_compute=dp.get_precision('Account')),
'account_id': fields.many2one('account.account', 'Account', required=True, ondelete="cascade", domain=[('type','<>','view'), ('type', '<>', 'closed')], select=2),
'move_id': fields.many2one('account.move', 'Move', ondelete="cascade", states={'valid':[('readonly',True)]}, help="The move of this entry line.", select=2),
-
+ 'narration': fields.related('move_id','narration', type='text', relation='account.move', string='Narration'),
'ref': fields.char('Ref.', size=64),
'statement_id': fields.many2one('account.bank.statement', 'Statement', help="The bank statement used for bank reconciliation", select=1),
'reconcile_id': fields.many2one('account.move.reconcile', 'Reconcile', readonly=True, ondelete='set null', select=2),
@@ -454,6 +453,7 @@ class account_move_line(osv.osv):
context=context)
dt = period.date_start
return dt
+
def _get_currency(self, cr, uid, context={}):
if not context.get('journal_id', False):
return False
@@ -786,6 +786,31 @@ class account_move_line(osv.osv):
return j+(p and (':'+p) or '')
return False
+# def onchange_date(self, cr, user, ids, date, context={}):
+# """
+# Returns a dict that contains new values and context
+# @param cr: A database cursor
+# @param user: ID of the user currently logged in
+# @param date: latest value from user input for field date
+# @param args: other arguments
+# @param context: context arguments, like lang, time zone
+# @return: Returns a dict which contains new values, and context
+# """
+# res = {}
+# period_pool = self.pool.get('account.period')
+# pids = period_pool.search(cr, user, [('date_start','<=',date), ('date_stop','>=',date)])
+# if pids:
+# res.update({
+# 'period_id':pids[0]
+# })
+# context.update({
+# 'period_id':pids[0]
+# })
+# return {
+# 'value':res,
+# 'context':context,
+# }
+
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False, submenu=False):
result = super(osv.osv, self).fields_view_get(cr, uid, view_id,view_type,context,toolbar=toolbar, submenu=submenu)
if view_type != 'tree':
@@ -794,7 +819,7 @@ class account_move_line(osv.osv):
fld = []
fields = {}
flds = []
- title = self.view_header_get(cr, uid, view_id, view_type, context)
+ title = "Accounting Entries" #self.view_header_get(cr, uid, view_id, view_type, context)
xml = '''\n\n\t''' % (title)
journal_pool = self.pool.get('account.journal')
@@ -848,11 +873,14 @@ class account_move_line(osv.osv):
elif field == 'credit':
attrs.append('sum="Total credit"')
elif field == 'account_tax_id':
- attrs.append('domain="[(\'parent_id\',\'=\',False)]"')
+ attrs.append('domain="[(\'parent_id\',\'=\',False), (\'type_tax_use\',\'=\',context.get(journal_id.type, \'sale\'))]"')
elif field == 'account_id' and journal.id:
attrs.append('domain="[(\'journal_id\', \'=\', '+str(journal.id)+'),(\'type\',\'<>\',\'view\'), (\'type\',\'<>\',\'closed\')]" on_change="onchange_account_id(account_id, partner_id)"')
elif field == 'partner_id':
attrs.append('on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"')
+# elif field == 'date':
+# attrs.append('on_change="onchange_date(date)"')
+
# if field.readonly:
# attrs.append('readonly="1"')
# if field.required:
@@ -898,6 +926,7 @@ class account_move_line(osv.osv):
def _check_date(self, cr, uid, vals, context=None, check=True):
if context is None:
context = {}
+ journal_id = False
if 'date' in vals.keys():
if 'journal_id' in vals and 'journal_id' not in context:
journal_id = vals['journal_id']
@@ -1082,10 +1111,10 @@ class account_move_line(osv.osv):
#if not 'currency_id' in vals:
# vals['currency_id'] = account.company_id.currency_id.id
-
+
result = super(osv.osv, self).create(cr, uid, vals, context)
# CREATE Taxes
- if vals.get('account_tax_id',False):
+ if vals.get('account_tax_id', False):
tax_id = tax_obj.browse(cr, uid, vals['account_tax_id'])
total = vals['debit'] - vals['credit']
if journal.refund_journal:
@@ -1158,7 +1187,7 @@ class account_move_line(osv.osv):
if check and ((not context.get('no_store_function')) or journal.entry_posted):
tmp = self.pool.get('account.move').validate(cr, uid, [vals['move_id']], context)
if journal.entry_posted and tmp:
- self.pool.get('account.move').button_validate(cr,uid, [vals['move_id']],context)
+ rs = self.pool.get('account.move').button_validate(cr,uid, [vals['move_id']],context)
return result
account_move_line()
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 93567fb2b5a..8ae66ba34b7 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -266,12 +266,19 @@
form
@@ -283,8 +290,8 @@
-
-
+
+
@@ -295,11 +302,18 @@
form
+
+ Journal Views
+ account.journal.view
+ form
+ tree,form
+
+
+
+
+
+
+
account.bank.statement.reconcile.form
@@ -663,7 +678,7 @@
-
+
@@ -899,43 +914,70 @@
-
account.move.line.form2
account.move.line
@@ -953,7 +994,7 @@
+
+ account.move.line.graph
+ account.move.line
+ graph
+
+
+
+
+
+
+
+
+
Entry Lines
account.move.line
@@ -1003,17 +1057,25 @@
-
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
@@ -1039,10 +1101,38 @@
+
+ Journal Items
+ account.move.line
+ form
+ tree,form
+
+
+ [('account_id', 'child_of', active_id)]
+
+
+
+ tree_but_open
+ account.account
+ Open Journal Items
+
+
+
+
+ account.move.graph
+ account.move
+ graph
+
+
+
+
+
+
+
account.move.tree
account.move
@@ -1054,11 +1144,10 @@
-
-
+
@@ -1072,38 +1161,88 @@
@@ -1154,29 +1286,37 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
-
-
+
Journal Entries
account.move
form
- tree,form
+ tree,form,graph
@@ -1205,21 +1345,20 @@
res_model="account.move.line"
src_model="account.move"/>
-
- Journal Entries
- ir.actions.act_window
- account.move
- form
-
-
- [('to_check','=',True), ('state','=','draft')]
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1239,7 +1378,7 @@
Journal Items
account.move.line
form
- tree,form
+ tree,form,graph
[('journal_id.type', 'in', ['sale', 'purchase_refund'])]
@@ -1251,11 +1390,10 @@
Journal Items
account.move.line
form
- tree,form
+ tree,form,graph
[('journal_id.type', 'in', ['purchase', 'sale_refund'])]
- {'journal_id':1}
@@ -1761,7 +1899,7 @@
form
tree,form
- [('tax_code_id','=',active_id),('state','<>','draft')]
+ [('tax_code_id','child_of',active_id),('state','<>','draft')]
tree_but_open
@@ -2272,7 +2410,7 @@
Journal Items
account.move.line
form
- tree,form
+ tree,form,graph
@@ -2286,23 +2424,22 @@
/>
-
+
account.bank.statement.tree
account.bank.statement
tree
-
-
+
+
-
-
+
@@ -2354,7 +2491,7 @@
-
+
@@ -2368,7 +2505,7 @@
-
+
@@ -2389,7 +2526,7 @@
-
+
@@ -2412,20 +2549,32 @@
+
+ account.bank.statement.graph
+ account.bank.statement
+ graph
+
+
+
+
+
+
+
+
Cash Register
ir.actions.act_window
account.bank.statement
form
- tree,form
-
+ tree,form,graph
+
[('journal_id.type', '=', 'cash')]
tree
-
+
@@ -2434,6 +2583,12 @@
+
+
+ graph
+
+
+
diff --git a/addons/account/board_account_view.xml b/addons/account/board_account_view.xml
index 4cf8cd89ec5..ac751e00a72 100644
--- a/addons/account/board_account_view.xml
+++ b/addons/account/board_account_view.xml
@@ -27,19 +27,15 @@
form
-
+
-
+
-
-
-
-
-
-
+
+
-
+
@@ -53,7 +49,7 @@
-
+
diff --git a/addons/account/demo/account_minimal.xml b/addons/account/demo/account_minimal.xml
index e18dab2d332..d0a2eb78404 100644
--- a/addons/account/demo/account_minimal.xml
+++ b/addons/account/demo/account_minimal.xml
@@ -385,18 +385,18 @@
Product income and expense accounts, default parameters
-->
-
- property_account_expense
-
-
-
-
-
- property_account_income
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
property_account_expense_categ
diff --git a/addons/account/i18n/es.po b/addons/account/i18n/es.po
index c06407ce158..26c27acce8e 100644
--- a/addons/account/i18n/es.po
+++ b/addons/account/i18n/es.po
@@ -7,13 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-06-29 22:11+0000\n"
-"Last-Translator: Borja López Soilán (Pexego) \n"
+"PO-Revision-Date: 2010-07-26 17:47+0000\n"
+"Last-Translator: Albert Cervera i Areny - http://www.NaN-tic.com \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-07-01 03:45+0000\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -55,7 +56,7 @@ msgstr "Activo"
#. module: account
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr "Nombre de modelo inválido en la definición de acción."
+msgstr "Nombre de modelo no válido en la definición de la acción."
#. module: account
#: help:account.journal,currency:0
@@ -193,8 +194,6 @@ msgstr "Seleccionar línea movimineto"
#. module: account
#: rml:account.journal.period.print:0
#: rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0
msgid "Entry label"
msgstr "Ref. asiento"
@@ -218,7 +217,7 @@ msgstr "Código para calcular (si tipo=código)"
#: view:account.move:0
#: view:account.move.line:0
msgid "Account Entry Line"
-msgstr "Línea del asiento contable"
+msgstr "Apunte"
#. module: account
#: wizard_view:account.aged.trial.balance,init:0
@@ -239,7 +238,6 @@ msgstr "Asientos recurrentes"
#: field:account.move,amount:0
#: field:account.tax,amount:0
#: field:account.tax.template,amount:0
-#: xsl:account.transfer:0
msgid "Amount"
msgstr "Importe"
@@ -308,7 +306,6 @@ msgstr "Pagos fuera de plazo"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
#: wizard_view:account.analytic.account.analytic.check.report,init:0
-#: wizard_view:account.analytic.account.balance.report,init:0
#: wizard_view:account.analytic.account.cost_ledger.report,init:0
#: wizard_view:account.analytic.account.inverted.balance.report,init:0
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
@@ -348,6 +345,7 @@ msgid "Delta Debit"
msgstr "Diferencia debe"
#. module: account
+#: model:account.account.type,name:account.account_type_tax
#: rml:account.invoice:0
#: field:account.invoice,amount_tax:0
#: field:account.move.line,account_tax_id:0
@@ -362,7 +360,9 @@ msgstr "Trans. debe"
#. module: account
#: field:account.analytic.line,account_id:0
#: field:account.invoice.line,account_analytic_id:0
+#: wizard_field:account.invoice.pay,addendum,analytic_id:0
#: field:account.move.line,analytic_account_id:0
+#: wizard_field:account.move.line.reconcile,addendum,analytic_id:0
#: field:report.hr.timesheet.invoice.journal,account_id:0
msgid "Analytic Account"
msgstr "Cuenta analítica"
@@ -686,8 +686,11 @@ msgstr "Subtotal :"
#. module: account
#: field:account.analytic.account,line_ids:0
#: view:account.analytic.line:0
+#: code:addons/account/project/wizard/wizard_account_analytic_line.py:0
#: model:ir.actions.act_window,name:account.action_account_analytic_line_form
+#: model:ir.actions.act_window,name:account.action_account_tree1
#: model:ir.ui.menu,name:account.next_id_41
+#, python-format
msgid "Analytic Entries"
msgstr "Asientos analíticos"
@@ -702,6 +705,7 @@ msgid "Associated Partner"
msgstr "Empresa asociada"
#. module: account
+#: view:account.invoice:0
#: field:account.invoice,comment:0
msgid "Additional Information"
msgstr "Información adicional"
@@ -1018,7 +1022,7 @@ msgstr "Contabilidad financiera"
#. module: account
#: rml:account.invoice:0
msgid "Net Total:"
-msgstr "Total neto:"
+msgstr "Base:"
#. module: account
#: view:account.fiscal.position:0
@@ -1486,6 +1490,9 @@ msgstr "Dejarlo vacío para usar la cuenta de ingresos"
#: field:account.bank.statement.reconcile,line_new_ids:0
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
+#: code:addons/account/wizard/wizard_pay_invoice.py:0
+#: code:addons/account/wizard/wizard_reconcile.py:0
+#, python-format
msgid "Write-Off"
msgstr "Desajuste"
@@ -1896,7 +1903,6 @@ msgstr "x Diario facturas rectificativas (abono) de gastos"
#: field:account.journal,type:0
#: field:account.move,type:0
#: field:account.move.reconcile,type:0
-#: xsl:account.transfer:0
msgid "Type"
msgstr "Tipo"
@@ -2094,7 +2100,7 @@ msgstr "Gasto"
#. module: account
#: field:account.journal,invoice_sequence_id:0
msgid "Invoice Sequence"
-msgstr "factura de secuencia"
+msgstr "Secuencia de facturas"
#. module: account
#: wizard_view:account.automatic.reconcile,init:0
@@ -2109,7 +2115,7 @@ msgstr "Proceso de factura de cliente"
#. module: account
#: rml:account.invoice:0
msgid "Fiscal Position Remark :"
-msgstr "Comentario situacion fiscal"
+msgstr "Observación posición fiscal :"
#. module: account
#: wizard_field:account.fiscalyear.close,init,period_id:0
@@ -2340,13 +2346,13 @@ msgstr "La cuenta base de la declaración de impuestos."
#: selection:account.general.ledger.report,checktype,sortbydate:0
#: rml:account.journal.period.print:0
#: field:account.move,date:0
+#: wizard_field:account.move.line.reconcile,addendum,date_p:0
#: rml:account.overdue:0
#: wizard_field:account.subscription.generate,init,date:0
#: field:account.subscription.line,date:0
#: rml:account.tax.code.entries:0
#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
-#: xsl:account.transfer:0
msgid "Date"
msgstr "Fecha"
@@ -2467,10 +2473,11 @@ msgstr "Fecha final"
#: view:account.bank.statement:0
#: field:account.move.reconcile,line_id:0
#: model:ir.actions.act_window,name:account.action_move_line_search
+#: model:ir.actions.act_window,name:account.action_move_line_select
#: model:ir.actions.act_window,name:account.action_move_line_tree1
#: model:ir.ui.menu,name:account.menu_action_move_line_search
msgid "Entry Lines"
-msgstr "Líneas de asiento"
+msgstr "Apuntes"
#. module: account
#: view:account.tax:0
@@ -2660,6 +2667,8 @@ msgstr ""
#. module: account
#: rml:account.analytic.account.journal:0
+#: wizard_view:account.invoice.pay,addendum:0
+#: wizard_view:account.move.line.reconcile,addendum:0
#: model:ir.ui.menu,name:account.next_id_40
#: model:process.node,name:account.process_node_analytic0
#: model:process.node,name:account.process_node_analyticcost0
@@ -2768,6 +2777,7 @@ msgid "Invoice Number"
msgstr "Número factura"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: field:account.period,date_stop:0
msgid "End of Period"
msgstr "Fin de período"
@@ -2780,7 +2790,7 @@ msgstr "_Aceptar"
#. module: account
#: field:account.invoice,amount_untaxed:0
msgid "Untaxed"
-msgstr "Sin impuestos"
+msgstr "Base"
#. module: account
#: model:ir.actions.report.xml,name:account.account_analytic_account_inverted_balance
@@ -2954,8 +2964,6 @@ msgstr "Nombre completo de la cuenta"
#: rml:account.journal.period.print:0
#: rml:account.partner.balance:0
#: rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0
#: rml:account.vat.declaration:0
msgid "1cm 27.7cm 20cm 27.7cm"
msgstr "1cm 27.7cm 20cm 27.7cm"
@@ -3005,16 +3013,18 @@ msgstr "Conciliación de asientos de órdenes de pago."
#: model:ir.actions.act_window,name:account.act_account_journal_2_account_move_line
#: model:ir.model,name:account.model_account_move_line
msgid "Entry lines"
-msgstr "Líneas de asiento"
+msgstr "Apuntes"
#. module: account
#: wizard_view:account.automatic.reconcile,init:0
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
#: wizard_view:account.move.line.reconcile.select,init:0
+#: code:addons/account/wizard/wizard_reconcile_select.py:0
#: model:ir.ui.menu,name:account.next_id_20
#: model:process.node,name:account.process_node_reconciliation0
#: model:process.node,name:account.process_node_supplierreconciliation0
+#, python-format
msgid "Reconciliation"
msgstr "Conciliación"
@@ -3077,7 +3087,6 @@ msgstr "Situación"
#. module: account
#: rml:account.invoice:0
-#: xsl:account.transfer:0
msgid "Document"
msgstr "Documento"
@@ -3127,6 +3136,8 @@ msgstr "Diario analítico"
#. module: account
#: rml:account.general.ledger:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Entry Label"
msgstr "Etiqueta asiento"
@@ -3319,6 +3330,7 @@ msgid "Generate Fiscal Year Opening Entries"
msgstr "Generar asientos apertura ejercicio fiscal"
#. module: account
+#: view:account.move.reconcile:0
#: model:ir.actions.wizard,name:account.wizard_reconcile
msgid "Reconcile Entries"
msgstr "Conciliar los asientos"
@@ -3676,7 +3688,6 @@ msgstr ""
"empresa actual."
#. module: account
-#: wizard_field:account.invoice.pay,addendum,comment:0
#: wizard_field:account.invoice.pay,init,name:0
msgid "Entry Name"
msgstr "Descripción"
@@ -4146,8 +4157,8 @@ msgid ""
"You can check this box to mark the entry line as a litigation with the "
"associated partner"
msgstr ""
-"Marque esta opción para señalar la línea de asiento en desacuerdo con la "
-"empresa asociada"
+"Marque esta opción para señalar el apunte en desacuerdo con la empresa "
+"asociada"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree1
@@ -4285,7 +4296,7 @@ msgid ""
"date for the payment of this entry line."
msgstr ""
"Este campo es usado en asientos a pagar y a cobrar. Puede definir la fecha "
-"límite de pago para esta línea de asiento."
+"límite de pago para este apunte."
#. module: account
#: rml:account.tax.code.entries:0
@@ -5031,6 +5042,7 @@ msgid "Invoice Lines"
msgstr "Líneas de factura"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: field:account.period,date_start:0
msgid "Start of Period"
msgstr "Inicio del periodo"
@@ -5391,7 +5403,7 @@ msgstr "PRO-FORMA"
#. module: account
#: field:account.move.reconcile,line_partial_ids:0
msgid "Partial Entry lines"
-msgstr "Líneas de asiento parcial"
+msgstr "Apuntes de conciliación parcial"
#. module: account
#: help:account.move.line,statement_id:0
@@ -5427,8 +5439,6 @@ msgstr "Proceso factura de proveedor"
#: rml:account.journal.period.print:0
#: rml:account.partner.balance:0
#: rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0
#: rml:account.vat.declaration:0
msgid "Page"
msgstr "Página"
@@ -5514,7 +5524,6 @@ msgstr "Número de periodos"
#. module: account
#: wizard_field:account.analytic.account.analytic.check.report,init,date2:0
-#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date2:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date2:0
#: wizard_field:account.analytic.account.journal.report,init,date2:0
@@ -5708,7 +5717,6 @@ msgstr "Ejercicio fiscal a cerrar"
#. module: account
#: wizard_field:account.aged.trial.balance,init,date1:0
#: wizard_field:account.analytic.account.analytic.check.report,init,date1:0
-#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date1:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date1:0
#: wizard_field:account.analytic.account.journal.report,init,date1:0
@@ -6258,7 +6266,7 @@ msgid "Show Comparision in %"
msgstr "Mostrar comparación en %"
#. module: account
-#: wizard_view:account.balance.account.balance.report,init:0
+#: wizard_view:account.analytic.account.balance.report,init:0
msgid "Select Period"
msgstr "Seleccionar periodo"
@@ -6435,5 +6443,324 @@ msgstr "A cobrar anteriores"
msgid "Untaxed Amount"
msgstr "Base imponible"
+#, python-format
+#~ msgid "Integrity Error !"
+#~ msgstr "¡Error de integridad!"
+
+#, python-format
+#~ msgid "You have to provide an account for the write off entry !"
+#~ msgstr "¡Debe indicar una cuenta para el asiento de ajuste!"
+
+#, python-format
+#~ msgid "Warning !"
+#~ msgstr "¡Atención!"
+
+#, python-format
+#~ msgid "You can not delete posted movement: \"%s\"!"
+#~ msgstr "¡No puede eliminar el movimiento fijado: \"%s\"!"
+
+#, python-format
+#~ msgid "No analytic journal !"
+#~ msgstr "¡No diario analítico!"
+
+#, python-format
+#~ msgid "Bank Journal "
+#~ msgstr "Diario bancario "
+
+#, python-format
+#~ msgid "You can not use this general account in this journal !"
+#~ msgstr "¡No puede usar esta cuenta general en este diario!"
+
+#, python-format
+#~ msgid "You can not add/modify entries in a closed journal."
+#~ msgstr "No puede añadir/modificar asientos en un diario cerrado."
+
+#, python-format
+#~ msgid ""
+#~ "You can not do this modification on a reconciled entry ! Please note that "
+#~ "you can just change some non important fields !"
+#~ msgstr ""
+#~ "¡No puede hacer esta modificación en un asiento conciliado! ¡Observe que "
+#~ "sólo puede cambiar algunos campos no importantes!"
+
+#, python-format
+#~ msgid "You must first select a partner !"
+#~ msgstr "¡Primero debe seleccionar una empresa!"
+
+#, python-format
+#~ msgid "The opening journal must not have any entry in the new fiscal year !"
+#~ msgstr ""
+#~ "¡El diario de apertura no debe tener ningún asiento en el nuevo ejercicio "
+#~ "fiscal!"
+
#~ msgid "account.config.wizard"
#~ msgstr "account.config.asistente"
+
+#, python-format
+#~ msgid ""
+#~ "The expected balance (%.2f) is different than the computed one. (%.2f)"
+#~ msgstr "El balance previsto (%.2f) es diferente del calculado. (%.2f)"
+
+#, python-format
+#~ msgid ""
+#~ "You can not do this modification on a confirmed entry ! Please note that you "
+#~ "can just change some non important fields !"
+#~ msgstr ""
+#~ "¡No puede hacer esta modificación en un asiento confirmado! ¡Observe que "
+#~ "sólo puede cambiar algunos campos no importantes!"
+
+#, python-format
+#~ msgid "Purchase Journal"
+#~ msgstr "Diario de compras"
+
+#, python-format
+#~ msgid "Free Reference"
+#~ msgstr "Referencia libre"
+
+#, python-format
+#~ msgid "No Partner Defined !"
+#~ msgstr "¡No se ha definido empresa!"
+
+#, python-format
+#~ msgid "Entries are not of the same account or already reconciled ! "
+#~ msgstr "¡Asientos no son de la misma cuenta o ya están conciliados! "
+
+#, python-format
+#~ msgid "Invalid action !"
+#~ msgstr "¡Acción no válida!"
+
+#, python-format
+#~ msgid "No sequence defined in the journal !"
+#~ msgstr "¡No se ha definido una secuencia en el diario!"
+
+#, python-format
+#~ msgid "Your journal must have a default credit and debit account."
+#~ msgstr "El diario debe tener una cuenta haber y debe por defecto."
+
+#, python-format
+#~ msgid "The journal must have default credit and debit account"
+#~ msgstr "El diario debe tener una cuenta haber y debe por defecto."
+
+#, python-format
+#~ msgid "Some entries are already reconciled !"
+#~ msgstr "¡Algunos asientos ya están conciliados!"
+
+#, python-format
+#~ msgid "No Analytic Journal !"
+#~ msgstr "¡No diario analítico!"
+
+#, python-format
+#~ msgid "Already Reconciled"
+#~ msgstr "Ya conciliado"
+
+#, python-format
+#~ msgid "The account entries lines are not in valid state."
+#~ msgstr "Las líneas de los asientos contables no están en estado válido."
+
+#, python-format
+#~ msgid "Unable to reconcile entry \"%s\": %.2f"
+#~ msgstr "No es posible conciliar el asiento \"%s\": %.2f"
+
+#, python-format
+#~ msgid "Please set an analytic journal on this financial journal !"
+#~ msgstr "¡Por favor indique un diario analítico en este diario financiero!"
+
+#, python-format
+#~ msgid "EXJ"
+#~ msgstr "GASTO"
+
+#, python-format
+#~ msgid "Sales Journal"
+#~ msgstr "Diario de ventas"
+
+#, python-format
+#~ msgid "BNK"
+#~ msgstr "BANCO"
+
+#, python-format
+#~ msgid "Entries: "
+#~ msgstr "Asientos: "
+
+#, python-format
+#~ msgid "Couldn't create move between different companies"
+#~ msgstr "No se ha podido crear movimiento entre diferentes compañías"
+
+#, python-format
+#~ msgid "Entry \"%s\" is not valid !"
+#~ msgstr "¡El asiento \"%s\" no es válido!"
+
+#, python-format
+#~ msgid "Error !"
+#~ msgstr "¡Error!"
+
+#, python-format
+#~ msgid "SAJ"
+#~ msgstr "VENTA"
+
+#, python-format
+#~ msgid "The journal must have centralised counterpart"
+#~ msgstr "El diario debe tener un homólogo centralizado"
+
+#, python-format
+#~ msgid "Bad total !"
+#~ msgstr "¡Total erróneo!"
+
+#, python-format
+#~ msgid "End of Fiscal Year Entry"
+#~ msgstr "Asiento fin de ejercicio fiscal"
+
+#, python-format
+#~ msgid "UserError"
+#~ msgstr "Error de usuario"
+
+#, python-format
+#~ msgid "Warning"
+#~ msgstr "Aviso"
+
+#, python-format
+#~ msgid "Please verify that an account is defined in the journal."
+#~ msgstr "Compruebe que se ha definido una cuenta en el diario."
+
+#, python-format
+#~ msgid "You can not use an inactive account!"
+#~ msgstr "¡No puede utilizar una cuenta inactiva!"
+
+#, python-format
+#~ msgid "Entry is already reconciled"
+#~ msgstr "El asiento ya está conciliado"
+
+#, python-format
+#~ msgid ""
+#~ "Selected Move lines does not have any account move enties in draft state"
+#~ msgstr ""
+#~ "Ha seleccionado apuntes que no tienen ningún asiento contable en estado "
+#~ "borrador"
+
+#, python-format
+#~ msgid "Standard Encoding"
+#~ msgstr "Codificación estándar"
+
+#, python-format
+#~ msgid "Bad account!"
+#~ msgstr "¡Cuenta incorrecta!"
+
+#, python-format
+#~ msgid "Closing of fiscal year cancelled, please check the box !"
+#~ msgstr "¡Cierre del ejercicio fiscal cancelado, por favor marque la caja!"
+
+#, python-format
+#~ msgid "Bad account !"
+#~ msgstr "¡Cuenta incorrecta!"
+
+#, python-format
+#~ msgid "Error"
+#~ msgstr "Error"
+
+#, python-format
+#~ msgid "Taxes missing !"
+#~ msgstr "¡Faltan impuestos!"
+
+#, python-format
+#~ msgid "No piece number !"
+#~ msgstr "¡Ningún trozo de número!"
+
+#, python-format
+#~ msgid "Closing of states cancelled, please check the box !"
+#~ msgstr "¡Cierre de estados cancelado, por favor marque la caja!"
+
+#, python-format
+#~ msgid "You have to define an analytic journal on the '%s' journal!"
+#~ msgstr "¡Debe definir un diario analítico en el diario '%s'!"
+
+#, python-format
+#~ msgid "No Data Available"
+#~ msgstr "No hay datos disponibles"
+
+#, python-format
+#~ msgid "You must select accounts to reconcile"
+#~ msgstr "Debe seleccionar las cuentas a conciliar"
+
+#, python-format
+#~ msgid "Cannot delete invoice(s) that are already opened or paid !"
+#~ msgstr "¡No se puede eliminar factura(s) que ya estan abiertas o pagadas!"
+
+#, python-format
+#~ msgid "Unable to change tax !"
+#~ msgstr "¡No ha sido posible cambiar el impuesto!"
+
+#, python-format
+#~ msgid "Invoice is already reconciled"
+#~ msgstr "La factura ya está conciliada"
+
+#, python-format
+#~ msgid "Date to must be set between %s and %s"
+#~ msgstr "La fecha debe estar entre %s y %s"
+
+#, python-format
+#~ msgid "No records found for your selection!"
+#~ msgstr "¡No se han encontrado registros en su selección!"
+
+#, python-format
+#~ msgid "Data Insufficient !"
+#~ msgstr "¡Datos insuficientes!"
+
+#, python-format
+#~ msgid "Date not in a defined fiscal year"
+#~ msgstr "La fecha no está en un ejercicio fiscal definido"
+
+#, python-format
+#~ msgid "Can not pay draft/proforma/cancel invoice."
+#~ msgstr "No se puede pagar una factura borrador/proforma/cancelada."
+
+#, python-format
+#~ msgid "You must define an analytic journal of type '%s' !"
+#~ msgstr "¡Debe definir un diario analítico de tipo '%s'!"
+
+#, python-format
+#~ msgid "No journal for ending writing has been defined for the fiscal year"
+#~ msgstr ""
+#~ "No se ha definido un diario para el asiento de cierre para el ejercicio "
+#~ "fiscal"
+
+#, python-format
+#~ msgid "Can not %s draft/proforma/cancel invoice."
+#~ msgstr "No se puede %s factura borrador/proforma/cancelada."
+
+#, python-format
+#~ msgid "Cannot create invoice move on centralised journal"
+#~ msgstr "No se puede crear asiento factura en el diario centralizado"
+
+#, python-format
+#~ msgid ""
+#~ "The Payment Term of Supplier does not have Payment Term Lines(Computation) "
+#~ "defined !"
+#~ msgstr ""
+#~ "¡El plazo de pago de los proveedores no tiene líneas de plazo de pago "
+#~ "(Cálculo) definidas!"
+
+#, python-format
+#~ msgid "You can not change the tax, you should remove and recreate lines !"
+#~ msgstr ""
+#~ "¡No se puede cambiar el impuesto, debe eliminar y recrear las líneas!"
+
+#, python-format
+#~ msgid "Global taxes defined, but are not in invoice lines !"
+#~ msgstr ""
+#~ "¡Impuestos globales definidos, pero no están en líneas de la factura!"
+
+#, python-format
+#~ msgid "No Period found on Invoice!"
+#~ msgstr "No se encontro un período en la factura"
+
+#, python-format
+#~ msgid "No period found !"
+#~ msgstr "¡No se ha encontrado período!"
+
+#, python-format
+#~ msgid "Unable to find a valid period !"
+#~ msgstr "¡No ha sido posible encontrar un período válido!"
+
+#, python-format
+#~ msgid "You must enter a period length that cannot be 0 or below !"
+#~ msgstr ""
+#~ "¡Debe introducir una duración del período que no puede ser 0 o inferior!"
diff --git a/addons/account/i18n/et.po b/addons/account/i18n/et.po
index 015b3382131..de29b97400e 100644
--- a/addons/account/i18n/et.po
+++ b/addons/account/i18n/et.po
@@ -1,19 +1,19 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * account
+# * account
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-06-25 18:22+0000\n"
+"PO-Revision-Date: 2010-07-22 20:15+0000\n"
"Last-Translator: lyyser \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-06-26 03:57+0000\n"
+"X-Launchpad-Export-Date: 2010-07-23 04:07+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -92,7 +92,8 @@ msgid "Unreconciled entries"
msgstr "Võrdlemata kirjed"
#. module: account
-#: field:account.invoice.tax,base_code_id:0 field:account.tax,base_code_id:0
+#: field:account.invoice.tax,base_code_id:0
+#: field:account.tax,base_code_id:0
#: field:account.tax.template,base_code_id:0
msgid "Base Code"
msgstr "Baaskood"
@@ -124,7 +125,8 @@ msgid "Residual"
msgstr "Jääk"
#. module: account
-#: field:account.tax,base_sign:0 field:account.tax,ref_base_sign:0
+#: field:account.tax,base_sign:0
+#: field:account.tax,ref_base_sign:0
#: field:account.tax.template,base_sign:0
#: field:account.tax.template,ref_base_sign:0
msgid "Base Code Sign"
@@ -185,8 +187,8 @@ msgid "Move line select"
msgstr "Liiguta valitud rida"
#. module: account
-#: rml:account.journal.period.print:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.journal.period.print:0
+#: rml:account.tax.code.entries:0
msgid "Entry label"
msgstr "Kirje silt"
@@ -201,12 +203,14 @@ msgid "Period Sum"
msgstr "Perioodi summa"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Compute Code (if type=code)"
msgstr "Arvuta kood (kui tüüp=kood)"
#. module: account
-#: view:account.move:0 view:account.move.line:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "Account Entry Line"
msgstr "Raamatupidamiskande rida"
@@ -223,10 +227,12 @@ msgstr "Perioodilised kirjed"
#. module: account
#: field:account.analytic.line,amount:0
#: field:account.bank.statement.line,amount:0
-#: field:account.bank.statement.reconcile.line,amount:0 rml:account.invoice:0
-#: field:account.invoice.tax,amount:0 field:account.move,amount:0
-#: field:account.tax,amount:0 field:account.tax.template,amount:0
-#: xsl:account.transfer:0
+#: field:account.bank.statement.reconcile.line,amount:0
+#: rml:account.invoice:0
+#: field:account.invoice.tax,amount:0
+#: field:account.move,amount:0
+#: field:account.tax,amount:0
+#: field:account.tax.template,amount:0
msgid "Amount"
msgstr "Kogus"
@@ -262,7 +268,8 @@ msgid ""
msgstr ""
#. module: account
-#: help:account.invoice,date_due:0 help:account.invoice,payment_term:0
+#: help:account.invoice,date_due:0
+#: help:account.invoice,payment_term:0
msgid ""
"If you use payment terms, the due date will be computed automatically at the "
"generation of accounting entries. If you keep the payment term and the due "
@@ -271,19 +278,20 @@ msgid ""
msgstr ""
#. module: account
-#: selection:account.tax,type:0 selection:account.tax.template,type:0
+#: selection:account.tax,type:0
+#: selection:account.tax.template,type:0
msgid "Fixed"
msgstr "Fikseeritud"
#. module: account
-#: model:ir.actions.report.xml,name:account.account_overdue view:res.company:0
+#: model:ir.actions.report.xml,name:account.account_overdue
+#: view:res.company:0
msgid "Overdue Payments"
msgstr "Tasumata Maksed"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
#: wizard_view:account.analytic.account.analytic.check.report,init:0
-#: wizard_view:account.analytic.account.balance.report,init:0
#: wizard_view:account.analytic.account.cost_ledger.report,init:0
#: wizard_view:account.analytic.account.inverted.balance.report,init:0
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
@@ -292,7 +300,8 @@ msgid "Select period"
msgstr "Vali periood"
#. module: account
-#: field:account.invoice,origin:0 field:account.invoice.line,origin:0
+#: field:account.invoice,origin:0
+#: field:account.invoice.line,origin:0
msgid "Origin"
msgstr "Päritolu"
@@ -322,10 +331,12 @@ msgid "Delta Debit"
msgstr "Delta deebet"
#. module: account
-#: rml:account.invoice:0 field:account.invoice,amount_tax:0
+#: model:account.account.type,name:account.account_type_tax
+#: rml:account.invoice:0
+#: field:account.invoice,amount_tax:0
#: field:account.move.line,account_tax_id:0
msgid "Tax"
-msgstr "Maksud"
+msgstr "Maks"
#. module: account
#: rml:account.general.journal:0
@@ -335,18 +346,22 @@ msgstr "Deebet tehing"
#. module: account
#: field:account.analytic.line,account_id:0
#: field:account.invoice.line,account_analytic_id:0
+#: wizard_field:account.invoice.pay,addendum,analytic_id:0
#: field:account.move.line,analytic_account_id:0
+#: wizard_field:account.move.line.reconcile,addendum,analytic_id:0
#: field:report.hr.timesheet.invoice.journal,account_id:0
msgid "Analytic Account"
msgstr "Analüütiline konto"
#. module: account
-#: field:account.tax,child_depend:0 field:account.tax.template,child_depend:0
+#: field:account.tax,child_depend:0
+#: field:account.tax.template,child_depend:0
msgid "Tax on Children"
msgstr "Maks alamliikidele"
#. module: account
-#: rml:account.central.journal:0 rml:account.general.journal:0
+#: rml:account.central.journal:0
+#: rml:account.general.journal:0
#: field:account.journal,name:0
msgid "Journal Name"
msgstr "Päeviku nimi"
@@ -414,8 +429,11 @@ msgid "Contra"
msgstr "Vastu"
#. module: account
-#: field:account.analytic.account,state:0 field:account.bank.statement,state:0
-#: field:account.invoice,state:0 view:account.move:0 view:account.move.line:0
+#: field:account.analytic.account,state:0
+#: field:account.bank.statement,state:0
+#: field:account.invoice,state:0
+#: view:account.move:0
+#: view:account.move.line:0
#: view:account.subscription:0
msgid "State"
msgstr "Olek"
@@ -427,7 +445,8 @@ msgid "Unpaid Supplier Refunds"
msgstr "Maksmata tarnija hüvitised"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Special Computation"
msgstr "Eriline arvutamine"
@@ -449,8 +468,10 @@ msgid "Disc.(%)"
msgstr "Allah. (%)"
#. module: account
-#: rml:account.general.ledger:0 field:account.model,ref:0
-#: field:account.move,ref:0 rml:account.overdue:0
+#: rml:account.general.ledger:0
+#: field:account.model,ref:0
+#: field:account.move,ref:0
+#: rml:account.overdue:0
#: field:account.subscription,ref:0
msgid "Ref"
msgstr "Viide"
@@ -641,9 +662,13 @@ msgid "Sub-Total :"
msgstr "Vahesumma:"
#. module: account
-#: field:account.analytic.account,line_ids:0 view:account.analytic.line:0
+#: field:account.analytic.account,line_ids:0
+#: view:account.analytic.line:0
+#: code:addons/account/project/wizard/wizard_account_analytic_line.py:0
#: model:ir.actions.act_window,name:account.action_account_analytic_line_form
+#: model:ir.actions.act_window,name:account.action_account_tree1
#: model:ir.ui.menu,name:account.next_id_41
+#, python-format
msgid "Analytic Entries"
msgstr "Analüütilised kirjed"
@@ -658,6 +683,7 @@ msgid "Associated Partner"
msgstr "Seotud partner"
#. module: account
+#: view:account.invoice:0
#: field:account.invoice,comment:0
msgid "Additional Information"
msgstr "Lisainfo"
@@ -673,7 +699,8 @@ msgid "Select the Period for Analysis"
msgstr "Vali periood analüüsi jaoks"
#. module: account
-#: field:account.tax,ref_tax_sign:0 field:account.tax,tax_sign:0
+#: field:account.tax,ref_tax_sign:0
+#: field:account.tax,tax_sign:0
#: field:account.tax.template,ref_tax_sign:0
#: field:account.tax.template,tax_sign:0
msgid "Tax Code Sign"
@@ -705,7 +732,8 @@ msgid "Field Name"
msgstr "Välja nimi"
#. module: account
-#: field:account.tax.code,sign:0 field:account.tax.code.template,sign:0
+#: field:account.tax.code,sign:0
+#: field:account.tax.code.template,sign:0
msgid "Sign for parent"
msgstr "Logi vanemana"
@@ -715,7 +743,8 @@ msgid "End of Year Entries Journal"
msgstr "Aastalõpu kirjete päevik"
#. module: account
-#: view:product.product:0 view:product.template:0
+#: view:product.product:0
+#: view:product.template:0
msgid "Purchase Properties"
msgstr "Ostu omadused"
@@ -735,9 +764,12 @@ msgid "Move Lines Created."
msgstr "Liiguta loodud read."
#. module: account
-#: field:account.fiscalyear,state:0 field:account.journal.period,state:0
-#: field:account.move,state:0 field:account.move.line,state:0
-#: field:account.period,state:0 field:account.subscription,state:0
+#: field:account.fiscalyear,state:0
+#: field:account.journal.period,state:0
+#: field:account.move,state:0
+#: field:account.move.line,state:0
+#: field:account.period,state:0
+#: field:account.subscription,state:0
msgid "Status"
msgstr "Olek"
@@ -890,8 +922,10 @@ msgstr "Vali kontoplaan"
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: field:account.analytic.line,unit_amount:0 rml:account.invoice:0
-#: field:account.invoice.line,quantity:0 field:account.model.line,quantity:0
+#: field:account.analytic.line,unit_amount:0
+#: rml:account.invoice:0
+#: field:account.invoice.line,quantity:0
+#: field:account.model.line,quantity:0
#: field:account.move.line,quantity:0
msgid "Quantity"
msgstr "Kogus"
@@ -934,13 +968,16 @@ msgstr "Analüütiline arve"
#: wizard_field:account.automatic.reconcile,init,period_id:0
#: field:account.bank.statement,period_id:0
#: wizard_field:account.central.journal.report,init,period_id:0
-#: view:account.fiscalyear:0 rml:account.general.journal:0
+#: view:account.fiscalyear:0
+#: rml:account.general.journal:0
#: wizard_field:account.general.journal.report,init,period_id:0
#: wizard_field:account.invoice.pay,init,period_id:0
-#: field:account.journal.period,period_id:0 field:account.move,period_id:0
+#: field:account.journal.period,period_id:0
+#: field:account.move,period_id:0
#: wizard_field:account.move.journal,init,period_id:0
#: field:account.move.line,period_id:0
-#: wizard_field:account.move.validate,init,period_id:0 view:account.period:0
+#: wizard_field:account.move.validate,init,period_id:0
+#: view:account.period:0
#: wizard_field:account.print.journal.report,init,period_id:0
#: field:account.subscription,period_nbr:0
msgid "Period"
@@ -962,7 +999,8 @@ msgid "Net Total:"
msgstr "Netosumma:"
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,name:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,name:0
#: field:account.fiscal.position.account,position_id:0
#: field:account.fiscal.position.account.template,position_id:0
#: field:account.fiscal.position.tax,position_id:0
@@ -1084,7 +1122,8 @@ msgid "Fiscal Position Templates"
msgstr "Finantspositsioonide mallid"
#. module: account
-#: rml:account.invoice:0 field:account.invoice.line,price_unit:0
+#: rml:account.invoice:0
+#: field:account.invoice.line,price_unit:0
msgid "Unit Price"
msgstr "Ühiku hind"
@@ -1237,7 +1276,8 @@ msgid "Not reconciled transactions"
msgstr "Võrdlemata tehingud"
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,tax_ids:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,tax_ids:0
#: field:account.fiscal.position.template,tax_ids:0
msgid "Tax Mapping"
msgstr ""
@@ -1259,7 +1299,8 @@ msgid "Write-Off account"
msgstr "Mahakandmiste konto"
#. module: account
-#: field:account.model.line,model_id:0 field:account.subscription,model_id:0
+#: field:account.model.line,model_id:0
+#: field:account.subscription,model_id:0
msgid "Model"
msgstr "Mudel"
@@ -1285,9 +1326,11 @@ msgid "Select invoices you want to pay and manages advances"
msgstr ""
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: model:account.account.type,name:account.account_type_root
-#: selection:account.analytic.account,type:0 field:account.journal,view_id:0
+#: selection:account.analytic.account,type:0
+#: field:account.journal,view_id:0
msgid "View"
msgstr "Vaade"
@@ -1356,7 +1399,8 @@ msgstr "Konto tüübid"
#: wizard_field:account.central.journal.report,init,journal_id:0
#: wizard_field:account.general.journal.report,init,journal_id:0
#: field:account.invoice,journal_id:0
-#: field:account.journal.period,journal_id:0 field:account.model,journal_id:0
+#: field:account.journal.period,journal_id:0
+#: field:account.model,journal_id:0
#: field:account.move,journal_id:0
#: wizard_field:account.move.bank.reconcile,init,journal_id:0
#: wizard_field:account.move.journal,init,journal_id:0
@@ -1372,7 +1416,8 @@ msgid "Journal"
msgstr "Päevik"
#. module: account
-#: field:account.account,child_id:0 field:account.analytic.account,child_ids:0
+#: field:account.account,child_id:0
+#: field:account.analytic.account,child_ids:0
msgid "Child Accounts"
msgstr "Alamkontod"
@@ -1398,7 +1443,8 @@ msgid "Statement reconcile line"
msgstr ""
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Keep empty to use the income account"
msgstr "Hoia tühjana, et kasutada tulude kontot"
@@ -1407,6 +1453,9 @@ msgstr "Hoia tühjana, et kasutada tulude kontot"
#: field:account.bank.statement.reconcile,line_new_ids:0
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
+#: code:addons/account/wizard/wizard_pay_invoice.py:0
+#: code:addons/account/wizard/wizard_reconcile.py:0
+#, python-format
msgid "Write-Off"
msgstr "Mahakandmine"
@@ -1525,7 +1574,8 @@ msgid "Account n°"
msgstr "Konto nr."
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Keep empty to use the expense account"
msgstr "Jäta tühjaks kasutamaks kulu kontot"
@@ -1535,7 +1585,8 @@ msgid "Account to reconcile"
msgstr ""
#. module: account
-#: rml:account.invoice:0 field:account.model.line,partner_id:0
+#: rml:account.invoice:0
+#: field:account.model.line,partner_id:0
#: field:account.move.line,partner_id:0
msgid "Partner Ref."
msgstr "Partneri viide"
@@ -1547,12 +1598,14 @@ msgid "Receivable and Payable Accounts"
msgstr "Nõuete ja võlgade kontod"
#. module: account
-#: view:account.subscription:0 field:account.subscription,lines_id:0
+#: view:account.subscription:0
+#: field:account.subscription,lines_id:0
msgid "Subscription Lines"
msgstr "Tellimuse read"
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Purchase"
@@ -1716,7 +1769,8 @@ msgid "Period length (days)"
msgstr "Perioodi pikkus (päeva)"
#. module: account
-#: selection:account.payment.term.line,value:0 selection:account.tax,type:0
+#: selection:account.payment.term.line,value:0
+#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "Percent"
msgstr "Protsent"
@@ -1727,7 +1781,8 @@ msgid "Charts"
msgstr "Plaanid"
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Sale"
@@ -1801,9 +1856,11 @@ msgstr ""
#. module: account
#: field:account.analytic.journal,type:0
-#: field:account.bank.statement.line,type:0 field:account.invoice,type:0
-#: field:account.journal,type:0 field:account.move,type:0
-#: field:account.move.reconcile,type:0 xsl:account.transfer:0
+#: field:account.bank.statement.line,type:0
+#: field:account.invoice,type:0
+#: field:account.journal,type:0
+#: field:account.move,type:0
+#: field:account.move.reconcile,type:0
msgid "Type"
msgstr "Tüüp"
@@ -1951,7 +2008,8 @@ msgid "Journal-Period Name"
msgstr ""
#. module: account
-#: field:account.tax.code,name:0 field:account.tax.code.template,name:0
+#: field:account.tax.code,name:0
+#: field:account.tax.code.template,name:0
msgid "Tax Case Name"
msgstr ""
@@ -1966,7 +2024,8 @@ msgstr ""
#. module: account
#: field:account.bank.statement.line,partner_id:0
#: field:account.bank.statement.reconcile,partner_id:0
-#: rml:account.general.ledger:0 field:account.invoice,partner_id:0
+#: rml:account.general.ledger:0
+#: field:account.invoice,partner_id:0
#: field:account.move,partner_id:0
#: wizard_field:account.partner.balance.report,init,result_selection:0
#: wizard_field:account.third_party_ledger.report,init,result_selection:0
@@ -2039,8 +2098,10 @@ msgstr "Endine"
#: field:account.bank.statement,currency:0
#: field:account.bank.statement.reconcile,total_currency:0
#: field:account.bank.statement.reconcile,total_second_currency:0
-#: rml:account.general.ledger:0 field:account.invoice,currency_id:0
-#: field:account.journal,currency:0 field:account.model.line,currency_id:0
+#: rml:account.general.ledger:0
+#: field:account.invoice,currency_id:0
+#: field:account.journal,currency:0
+#: field:account.model.line,currency_id:0
#: field:account.move.line,currency_id:0
msgid "Currency"
msgstr "Valuuta"
@@ -2078,7 +2139,8 @@ msgid "Analytic Entry"
msgstr "Analüütiline kirje"
#. module: account
-#: view:res.company:0 field:res.company,overdue_msg:0
+#: view:res.company:0
+#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
msgstr ""
@@ -2130,7 +2192,8 @@ msgid "Detail"
msgstr "Detail"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Consolidation"
msgstr "Konsolideerimine"
@@ -2193,9 +2256,13 @@ msgid "Date Invoiced"
msgstr "Arveldamise kuupäev"
#. module: account
-#: help:account.balance.account.balance.report,init,periods:0
+#: help:account.account.balance.report,checktype,periods:0
+#: help:account.general.ledger.report,checktype,periods:0
+#: help:account.partner.balance.report,init,periods:0
+#: help:account.third_party_ledger.report,init,periods:0
+#: help:account.vat.declaration,init,periods:0
msgid "All periods if empty"
-msgstr "Kõik perioodid kui tühi"
+msgstr ""
#. module: account
#: model:account.account.type,name:account.account_type_liability
@@ -2218,17 +2285,22 @@ msgid "The account basis of the tax declaration."
msgstr ""
#. module: account
-#: rml:account.analytic.account.journal:0 field:account.analytic.line,date:0
+#: rml:account.analytic.account.journal:0
+#: field:account.analytic.line,date:0
#: field:account.bank.statement,date:0
#: field:account.bank.statement.line,date:0
-#: field:account.bank.statement.reconcile,name:0 rml:account.general.ledger:0
+#: field:account.bank.statement.reconcile,name:0
+#: rml:account.general.ledger:0
#: selection:account.general.ledger.report,checktype,sortbydate:0
-#: rml:account.journal.period.print:0 field:account.move,date:0
+#: rml:account.journal.period.print:0
+#: field:account.move,date:0
+#: wizard_field:account.move.line.reconcile,addendum,date_p:0
#: rml:account.overdue:0
#: wizard_field:account.subscription.generate,init,date:0
-#: field:account.subscription.line,date:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
-#: xsl:account.transfer:0
+#: field:account.subscription.line,date:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Date"
msgstr "Kuupäev"
@@ -2244,7 +2316,8 @@ msgid "Unreconcile"
msgstr ""
#. module: account
-#: field:account.tax,type:0 field:account.tax.template,type:0
+#: field:account.tax,type:0
+#: field:account.tax.template,type:0
msgid "Tax Type"
msgstr "Maksutüüp"
@@ -2254,7 +2327,8 @@ msgid "Statement Entries"
msgstr ""
#. module: account
-#: field:account.analytic.line,user_id:0 field:account.journal,user_id:0
+#: field:account.analytic.line,user_id:0
+#: field:account.journal,user_id:0
msgid "User"
msgstr "Kasutaja"
@@ -2340,15 +2414,18 @@ msgid "Date End"
msgstr "Lõppkuupäev"
#. module: account
-#: view:account.bank.statement:0 field:account.move.reconcile,line_id:0
+#: view:account.bank.statement:0
+#: field:account.move.reconcile,line_id:0
#: model:ir.actions.act_window,name:account.action_move_line_search
+#: model:ir.actions.act_window,name:account.action_move_line_select
#: model:ir.actions.act_window,name:account.action_move_line_tree1
#: model:ir.ui.menu,name:account.menu_action_move_line_search
msgid "Entry Lines"
msgstr "Kirje read"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Applicable Code (if type=code)"
msgstr ""
@@ -2437,9 +2514,11 @@ msgstr ""
#: wizard_button:account.general.journal.report,init,end:0
#: wizard_button:account.general.ledger.report,account_selection,end:0
#: wizard_button:account.general.ledger.report,checktype,end:0
-#: view:account.invoice:0 wizard_button:account.invoice.pay,addendum,end:0
+#: view:account.invoice:0
+#: wizard_button:account.invoice.pay,addendum,end:0
#: wizard_button:account.invoice.pay,init,end:0
-#: wizard_button:account.invoice.refund,init,end:0 view:account.move:0
+#: wizard_button:account.invoice.refund,init,end:0
+#: view:account.move:0
#: wizard_button:account.move.bank.reconcile,init,end:0
#: wizard_button:account.move.journal,init,end:0
#: wizard_button:account.move.line.reconcile,addendum,end:0
@@ -2458,7 +2537,8 @@ msgstr ""
#: wizard_button:account.third_party_ledger.report,init,end:0
#: wizard_button:account.vat.declaration,init,end:0
#: wizard_button:account_use_models,init_form,end:0
-#: view:wizard.company.setup:0 view:wizard.multi.charts.accounts:0
+#: view:wizard.company.setup:0
+#: view:wizard.multi.charts.accounts:0
msgid "Cancel"
msgstr "Loobu"
@@ -2468,8 +2548,10 @@ msgid "Acc. Type Name"
msgstr "Konto tüübi nimi"
#. module: account
-#: help:account.tax,base_code_id:0 help:account.tax,ref_base_code_id:0
-#: help:account.tax,ref_tax_code_id:0 help:account.tax,tax_code_id:0
+#: help:account.tax,base_code_id:0
+#: help:account.tax,ref_base_code_id:0
+#: help:account.tax,ref_tax_code_id:0
+#: help:account.tax,tax_code_id:0
#: help:account.tax.template,base_code_id:0
#: help:account.tax.template,ref_base_code_id:0
#: help:account.tax.template,ref_tax_code_id:0
@@ -2483,7 +2565,8 @@ msgid "Litigation"
msgstr ""
#. module: account
-#: view:account.move.line:0 wizard_view:account.move.validate,init:0
+#: view:account.move.line:0
+#: wizard_view:account.move.validate,init:0
#: view:account.payment.term:0
msgid "Information"
msgstr "Info"
@@ -2526,6 +2609,8 @@ msgstr ""
#. module: account
#: rml:account.analytic.account.journal:0
+#: wizard_view:account.invoice.pay,addendum:0
+#: wizard_view:account.move.line.reconcile,addendum:0
#: model:ir.ui.menu,name:account.next_id_40
#: model:process.node,name:account.process_node_analytic0
#: model:process.node,name:account.process_node_analyticcost0
@@ -2593,7 +2678,8 @@ msgid "Price"
msgstr "Hind"
#. module: account
-#: rml:account.analytic.account.journal:0 rml:account.third_party_ledger:0
+#: rml:account.analytic.account.journal:0
+#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "-"
msgstr ""
@@ -2628,6 +2714,7 @@ msgid "Invoice Number"
msgstr "Arve number"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: field:account.period,date_stop:0
msgid "End of Period"
msgstr "Perioodi lõpp"
@@ -2660,13 +2747,17 @@ msgid "Invoice Reference"
msgstr ""
#. module: account
-#: field:account.account,name:0 field:account.account.template,name:0
+#: field:account.account,name:0
+#: field:account.account.template,name:0
#: rml:account.analytic.account.inverted.balance:0
#: field:account.bank.statement,name:0
#: field:account.bank.statement.line,name:0
-#: field:account.chart.template,name:0 field:account.config.wizard,name:0
-#: field:account.model.line,name:0 field:account.move,name:0
-#: field:account.move.line,name:0 field:account.move.reconcile,name:0
+#: field:account.chart.template,name:0
+#: field:account.config.wizard,name:0
+#: field:account.model.line,name:0
+#: field:account.move,name:0
+#: field:account.move.line,name:0
+#: field:account.move.reconcile,name:0
#: field:account.subscription,name:0
msgid "Name"
msgstr "Nimi"
@@ -2706,7 +2797,8 @@ msgid ""
msgstr ""
#. module: account
-#: field:account.journal.column,view_id:0 view:account.journal.view:0
+#: field:account.journal.column,view_id:0
+#: view:account.journal.view:0
#: field:account.journal.view,name:0
#: model:ir.model,name:account.model_account_journal_view
msgid "Journal View"
@@ -2799,11 +2891,14 @@ msgid "Full Account Name"
msgstr "Täielik konto nimi"
#. module: account
-#: rml:account.account.balance:0 rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.account.balance:0
+#: rml:account.analytic.account.analytic.check:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.vat.declaration:0
msgid "1cm 27.7cm 20cm 27.7cm"
msgstr ""
@@ -2824,7 +2919,9 @@ msgid "Document: Customer account statement"
msgstr ""
#. module: account
-#: view:product.product:0 view:product.template:0 view:res.partner:0
+#: view:product.product:0
+#: view:product.template:0
+#: view:res.partner:0
msgid "Accounting"
msgstr "Raamatupidamine"
@@ -2857,9 +2954,11 @@ msgstr "Kirje read"
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
#: wizard_view:account.move.line.reconcile.select,init:0
+#: code:addons/account/wizard/wizard_reconcile_select.py:0
#: model:ir.ui.menu,name:account.next_id_20
#: model:process.node,name:account.process_node_reconciliation0
#: model:process.node,name:account.process_node_supplierreconciliation0
+#, python-format
msgid "Reconciliation"
msgstr ""
@@ -2869,8 +2968,10 @@ msgid "Centralisation"
msgstr ""
#. module: account
-#: field:account.invoice.tax,tax_code_id:0 field:account.tax,description:0
-#: field:account.tax,tax_code_id:0 field:account.tax.template,tax_code_id:0
+#: field:account.invoice.tax,tax_code_id:0
+#: field:account.tax,description:0
+#: field:account.tax,tax_code_id:0
+#: field:account.tax.template,tax_code_id:0
#: model:ir.model,name:account.model_account_tax_code
msgid "Tax Code"
msgstr "Maksukood"
@@ -2910,12 +3011,13 @@ msgid ""
msgstr ""
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
msgid "Situation"
msgstr ""
#. module: account
-#: rml:account.invoice:0 xsl:account.transfer:0
+#: rml:account.invoice:0
msgid "Document"
msgstr "Dokument"
@@ -2953,7 +3055,8 @@ msgid "Cancel selected invoices"
msgstr "Tühista valitud arved"
#. module: account
-#: view:account.analytic.journal:0 field:account.analytic.line,journal_id:0
+#: view:account.analytic.journal:0
+#: field:account.analytic.line,journal_id:0
#: field:account.journal,analytic_journal_id:0
#: model:ir.actions.report.xml,name:account.analytic_journal_print
#: model:ir.actions.wizard,name:account.account_analytic_account_journal_report
@@ -2962,6 +3065,8 @@ msgstr ""
#. module: account
#: rml:account.general.ledger:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Entry Label"
msgstr ""
@@ -2976,23 +3081,28 @@ msgid "("
msgstr ""
#. module: account
-#: view:account.invoice:0 view:account.period:0 view:account.subscription:0
+#: view:account.invoice:0
+#: view:account.period:0
+#: view:account.subscription:0
msgid "Set to Draft"
msgstr "Sea mustandiks"
#. module: account
-#: help:account.invoice,origin:0 help:account.invoice.line,origin:0
+#: help:account.invoice,origin:0
+#: help:account.invoice.line,origin:0
msgid "Reference of the document that produced this invoice."
msgstr ""
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: selection:account.aged.trial.balance,init,result_selection:0
msgid "Payable"
msgstr "Võlad"
#. module: account
-#: rml:account.invoice:0 field:account.invoice.tax,base:0
+#: rml:account.invoice:0
+#: field:account.invoice.tax,base:0
msgid "Base"
msgstr "Baas"
@@ -3002,7 +3112,8 @@ msgid "Model Name"
msgstr ""
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Others"
msgstr "Muud"
@@ -3012,13 +3123,15 @@ msgid "8"
msgstr ""
#. module: account
-#: view:account.invoice:0 view:account.move:0
+#: view:account.invoice:0
+#: view:account.move:0
#: wizard_button:account.move.validate,init,validate:0
msgid "Validate"
msgstr "Valideeri"
#. module: account
-#: view:account.model:0 field:account.model,legend:0
+#: view:account.model:0
+#: field:account.model,legend:0
msgid "Legend"
msgstr ""
@@ -3033,14 +3146,17 @@ msgid "account.move.line.select"
msgstr ""
#. module: account
-#: view:account.account:0 rml:account.account.balance:0
+#: view:account.account:0
+#: rml:account.account.balance:0
#: wizard_field:account.account.balance.report,account_selection,Account_list:0
#: wizard_field:account.automatic.reconcile,init,writeoff_acc_id:0
#: field:account.bank.statement.line,account_id:0
#: field:account.bank.statement.reconcile.line,account_id:0
-#: field:account.invoice,account_id:0 field:account.invoice.line,account_id:0
+#: field:account.invoice,account_id:0
+#: field:account.invoice.line,account_id:0
#: field:account.journal,account_control_ids:0
-#: field:account.model.line,account_id:0 field:account.move.line,account_id:0
+#: field:account.model.line,account_id:0
+#: field:account.move.line,account_id:0
#: wizard_field:account.move.line.reconcile.select,init,account_id:0
#: wizard_field:account.move.line.unreconcile.select,init,account_id:0
#: model:ir.model,name:account.model_account_account
@@ -3061,9 +3177,12 @@ msgid "By Date and Period"
msgstr "Kuupäeva ja perioodi järgi"
#. module: account
-#: view:account.account:0 view:account.account.template:0
-#: view:account.bank.statement:0 field:account.bank.statement.line,note:0
-#: field:account.fiscal.position,note:0 view:account.invoice.line:0
+#: view:account.account:0
+#: view:account.account.template:0
+#: view:account.bank.statement:0
+#: field:account.bank.statement.line,note:0
+#: field:account.fiscal.position,note:0
+#: view:account.invoice.line:0
#: field:account.invoice.line,note:0
msgid "Notes"
msgstr "Märkused"
@@ -3076,7 +3195,8 @@ msgid ""
msgstr ""
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
#: field:account.invoice.line,invoice_line_tax_id:0
#: model:ir.actions.act_window,name:account.action_tax_form
#: model:ir.ui.menu,name:account.menu_action_tax_form
@@ -3101,15 +3221,21 @@ msgid "Statement encoding produces payment entries"
msgstr ""
#. module: account
-#: field:account.account,code:0 rml:account.account.balance:0
-#: field:account.account.template,code:0 field:account.account.type,code:0
+#: field:account.account,code:0
+#: rml:account.account.balance:0
+#: field:account.account.template,code:0
+#: field:account.account.type,code:0
#: rml:account.analytic.account.analytic.check:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.analytic.account.journal:0 field:account.analytic.line,code:0
-#: field:account.config.wizard,code:0 field:account.fiscalyear,code:0
-#: rml:account.general.journal:0 field:account.journal,code:0
-#: rml:account.partner.balance:0 field:account.period,code:0
+#: rml:account.analytic.account.journal:0
+#: field:account.analytic.line,code:0
+#: field:account.config.wizard,code:0
+#: field:account.fiscalyear,code:0
+#: rml:account.general.journal:0
+#: field:account.journal,code:0
+#: rml:account.partner.balance:0
+#: field:account.period,code:0
msgid "Code"
msgstr "Kood"
@@ -3119,7 +3245,8 @@ msgid "Financial Management"
msgstr "Finantshaldus"
#. module: account
-#: selection:account.account.type,close_method:0 selection:account.tax,type:0
+#: selection:account.account.type,close_method:0
+#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "None"
msgstr ""
@@ -3131,6 +3258,7 @@ msgid "Generate Fiscal Year Opening Entries"
msgstr "Genereeri majandusaasta avatud kirjetega"
#. module: account
+#: view:account.move.reconcile:0
#: model:ir.actions.wizard,name:account.wizard_reconcile
msgid "Reconcile Entries"
msgstr ""
@@ -3146,7 +3274,8 @@ msgid "Additionnal Information"
msgstr "Lisainfo"
#. module: account
-#: field:account.tax,name:0 field:account.tax.template,name:0
+#: field:account.tax,name:0
+#: field:account.tax.template,name:0
#: rml:account.vat.declaration:0
msgid "Tax Name"
msgstr "Maksu Nimi"
@@ -3223,7 +3352,8 @@ msgid "Partner Balance"
msgstr "Partneri bilanss"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Third Party Ledger"
msgstr ""
@@ -3236,7 +3366,8 @@ msgstr ""
#. module: account
#: selection:account.tax,applicable_type:0
-#: field:account.tax,python_applicable:0 field:account.tax,python_compute:0
+#: field:account.tax,python_applicable:0
+#: field:account.tax,python_compute:0
#: selection:account.tax,type:0
#: selection:account.tax.template,applicable_type:0
#: field:account.tax.template,python_applicable:0
@@ -3273,7 +3404,8 @@ msgid "Import invoice"
msgstr ""
#. module: account
-#: view:account.invoice:0 view:wizard.company.setup:0
+#: view:account.invoice:0
+#: view:wizard.company.setup:0
#: view:wizard.multi.charts.accounts:0
msgid "Create"
msgstr ""
@@ -3289,7 +3421,8 @@ msgid "Invoice line"
msgstr ""
#. module: account
-#: field:account.account,shortcut:0 field:account.account.template,shortcut:0
+#: field:account.account,shortcut:0
+#: field:account.account.template,shortcut:0
msgid "Shortcut"
msgstr "Otsetee"
@@ -3314,13 +3447,15 @@ msgid ""
msgstr ""
#. module: account
-#: field:account.tax,parent_id:0 field:account.tax.template,parent_id:0
+#: field:account.tax,parent_id:0
+#: field:account.tax.template,parent_id:0
msgid "Parent Tax Account"
msgstr "Ülem maksukonto"
#. module: account
#: field:account.account,user_type:0
-#: field:account.account.template,user_type:0 view:account.account.type:0
+#: field:account.account.template,user_type:0
+#: view:account.account.type:0
#: field:account.analytic.account,type:0
#: model:ir.model,name:account.model_account_account_type
msgid "Account Type"
@@ -3356,7 +3491,8 @@ msgid "Central Journal"
msgstr ""
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Balance brought forward"
msgstr ""
@@ -3432,7 +3568,8 @@ msgid "Journal code"
msgstr "Päeviku kood"
#. module: account
-#: wizard_button:account.fiscalyear.close,init,close:0 view:account.model:0
+#: wizard_button:account.fiscalyear.close,init,close:0
+#: view:account.model:0
msgid "Create entries"
msgstr "Loo sissekanded"
@@ -3469,7 +3606,6 @@ msgid ""
msgstr ""
#. module: account
-#: wizard_field:account.invoice.pay,addendum,comment:0
#: wizard_field:account.invoice.pay,init,name:0
msgid "Entry Name"
msgstr "Kirje Nimi"
@@ -3488,11 +3624,14 @@ msgid ""
msgstr ""
#. module: account
-#: field:account.account.type,sequence:0 field:account.invoice.tax,sequence:0
-#: field:account.journal.column,sequence:0 field:account.model.line,sequence:0
+#: field:account.account.type,sequence:0
+#: field:account.invoice.tax,sequence:0
+#: field:account.journal.column,sequence:0
+#: field:account.model.line,sequence:0
#: field:account.payment.term.line,sequence:0
#: field:account.sequence.fiscalyear,sequence_id:0
-#: field:account.tax,sequence:0 field:account.tax.template,sequence:0
+#: field:account.tax,sequence:0
+#: field:account.tax.template,sequence:0
#: field:fiscalyear.seq,sequence_id:0
msgid "Sequence"
msgstr "Järjekord"
@@ -3558,7 +3697,8 @@ msgstr ""
#. module: account
#: field:account.model.line,date_maturity:0
-#: field:account.move.line,date_maturity:0 rml:account.overdue:0
+#: field:account.move.line,date_maturity:0
+#: rml:account.overdue:0
msgid "Maturity date"
msgstr "Tähtaja kuupäev"
@@ -3578,7 +3718,8 @@ msgid "Account Configure Wizard "
msgstr ""
#. module: account
-#: field:account.config.wizard,date1:0 field:account.fiscalyear,date_start:0
+#: field:account.config.wizard,date1:0
+#: field:account.fiscalyear,date_start:0
#: field:account.subscription,date_start:0
msgid "Start Date"
msgstr "Alguskuupäev"
@@ -3616,7 +3757,8 @@ msgid "Unreconciled"
msgstr ""
#. module: account
-#: field:account.account,note:0 field:account.account.template,note:0
+#: field:account.account,note:0
+#: field:account.account.template,note:0
msgid "Note"
msgstr ""
@@ -3640,7 +3782,8 @@ msgid "Entry Sequence"
msgstr "Kirje järjekord"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Closed"
msgstr "Suletud"
@@ -3761,9 +3904,12 @@ msgid "Code/Date"
msgstr "Kood/Kuupäev"
#. module: account
-#: field:account.account,active:0 field:account.analytic.account,active:0
-#: field:account.analytic.journal,active:0 field:account.journal,active:0
-#: field:account.journal.period,active:0 field:account.payment.term,active:0
+#: field:account.account,active:0
+#: field:account.analytic.account,active:0
+#: field:account.analytic.journal,active:0
+#: field:account.journal,active:0
+#: field:account.journal.period,active:0
+#: field:account.payment.term,active:0
#: field:account.tax,active:0
msgid "Active"
msgstr "Aktiivne"
@@ -3815,15 +3961,20 @@ msgid "Secondary Currency"
msgstr "Teine Valuuta"
#. module: account
-#: field:account.account,credit:0 rml:account.account.balance:0
+#: field:account.account,credit:0
+#: rml:account.account.balance:0
#: field:account.analytic.account,credit:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.central.journal:0 rml:account.journal.period.print:0
-#: field:account.model.line,credit:0 field:account.move.line,credit:0
-#: rml:account.partner.balance:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.central.journal:0
+#: rml:account.journal.period.print:0
+#: field:account.model.line,credit:0
+#: field:account.move.line,credit:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
#: rml:account.vat.declaration:0
#: field:report.hr.timesheet.invoice.journal,cost:0
msgid "Credit"
@@ -3854,7 +4005,8 @@ msgid "Account Move"
msgstr ""
#. module: account
-#: view:account.bank.statement:0 field:account.bank.statement,line_ids:0
+#: view:account.bank.statement:0
+#: field:account.bank.statement,line_ids:0
msgid "Statement lines"
msgstr ""
@@ -3946,15 +4098,18 @@ msgid "Journal Column"
msgstr ""
#. module: account
-#: selection:account.fiscalyear,state:0 selection:account.invoice,state:0
-#: selection:account.journal.period,state:0 selection:account.period,state:0
+#: selection:account.fiscalyear,state:0
+#: selection:account.invoice,state:0
+#: selection:account.journal.period,state:0
+#: selection:account.period,state:0
#: selection:account.subscription,state:0
msgid "Done"
msgstr "Valmis"
#. module: account
#: wizard_field:account.account.balance.report,checktype,periods:0
-#: field:account.config.wizard,period:0 view:account.fiscalyear:0
+#: field:account.config.wizard,period:0
+#: view:account.fiscalyear:0
#: field:account.fiscalyear,period_ids:0
#: wizard_field:account.general.ledger.report,checktype,periods:0
#: wizard_field:account.partner.balance.report,init,periods:0
@@ -3967,7 +4122,8 @@ msgid "Periods"
msgstr "Perioodid"
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
#: field:account.move.line,invoice:0
#: model:ir.model,name:account.model_account_invoice
#: model:res.request.link,name:account.req_link_invoice
@@ -3994,7 +4150,8 @@ msgid "Analytic costs to reinvoice purchases, timesheets, ..."
msgstr ""
#. module: account
-#: field:account.account,tax_ids:0 field:account.account.template,tax_ids:0
+#: field:account.account,tax_ids:0
+#: field:account.account.template,tax_ids:0
msgid "Default Taxes"
msgstr "Vaikimisi Maksud"
@@ -4048,7 +4205,8 @@ msgstr ""
#. module: account
#: field:account.analytic.account,name:0
#: rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.central.journal:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.central.journal:0
msgid "Account Name"
msgstr "Konto nimi"
@@ -4139,7 +4297,8 @@ msgid "Import file from your bank statement"
msgstr "Impordi fail oma pangabilansist"
#. module: account
-#: field:account.account,type:0 field:account.account.template,type:0
+#: field:account.account,type:0
+#: field:account.account.template,type:0
msgid "Internal Type"
msgstr "Sisemine tüüp"
@@ -4165,12 +4324,14 @@ msgid "Posted"
msgstr ""
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Credit Notes"
msgstr "Krediidi Märkused"
#. module: account
-#: field:account.config.wizard,date2:0 field:account.fiscalyear,date_stop:0
+#: field:account.config.wizard,date2:0
+#: field:account.fiscalyear,date_stop:0
msgid "End Date"
msgstr "Lõppkuupäev"
@@ -4191,7 +4352,8 @@ msgid "Day of the Month"
msgstr "Päev kuus"
#. module: account
-#: field:account.analytic.journal,line_ids:0 field:account.tax.code,line_ids:0
+#: field:account.analytic.journal,line_ids:0
+#: field:account.tax.code,line_ids:0
msgid "Lines"
msgstr "Read"
@@ -4209,7 +4371,8 @@ msgid ""
msgstr ""
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Tax Declaration"
msgstr "Maksudeklaratsioon"
@@ -4269,12 +4432,14 @@ msgid "The optional quantity on entries"
msgstr ""
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "JNRL"
msgstr ""
#. module: account
-#: view:account.fiscalyear:0 view:account.period:0
+#: view:account.fiscalyear:0
+#: view:account.period:0
msgid "States"
msgstr "Olekud"
@@ -4288,7 +4453,7 @@ msgstr ""
#. module: account
#: model:ir.actions.act_window,name:account.act_account_partner_account_move_unreconciled
msgid "Receivables & Payables"
-msgstr "Nõuded ja võlad"
+msgstr ""
#. module: account
#: rml:account.general.ledger:0
@@ -4310,7 +4475,8 @@ msgstr "Alguskuupäev"
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: field:account.invoice,amount_total:0 field:account.invoice,check_total:0
+#: field:account.invoice,amount_total:0
+#: field:account.invoice,check_total:0
msgid "Total"
msgstr "Kokku"
@@ -4427,9 +4593,11 @@ msgstr ""
#: field:account.fiscal.position,company_id:0
#: field:account.fiscalyear,company_id:0
#: wizard_field:account.general.ledger.report,checktype,company_id:0
-#: field:account.invoice,company_id:0 field:account.journal,company_id:0
+#: field:account.invoice,company_id:0
+#: field:account.journal,company_id:0
#: wizard_field:account.partner.balance.report,init,company_id:0
-#: field:account.tax,company_id:0 field:account.tax.code,company_id:0
+#: field:account.tax,company_id:0
+#: field:account.tax.code,company_id:0
#: wizard_field:account.third_party_ledger.report,init,company_id:0
#: wizard_field:account.vat.declaration,init,company_id:0
#: field:wizard.company.setup,company_id:0
@@ -4524,9 +4692,12 @@ msgid "Print Aged Trial Balance"
msgstr ""
#. module: account
-#: field:account.analytic.line,ref:0 field:account.bank.statement.line,ref:0
-#: field:account.model.line,ref:0 field:account.move.line,ref:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: field:account.analytic.line,ref:0
+#: field:account.bank.statement.line,ref:0
+#: field:account.model.line,ref:0
+#: field:account.move.line,ref:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Ref."
msgstr ""
@@ -4603,7 +4774,8 @@ msgid "Control Invoice"
msgstr ""
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: selection:account.aged.trial.balance,init,result_selection:0
msgid "Receivable"
msgstr "Nõuded"
@@ -4630,7 +4802,8 @@ msgstr "KM:"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: rml:account.central.journal:0 rml:account.general.journal:0
+#: rml:account.central.journal:0
+#: rml:account.general.journal:0
#: rml:account.invoice:0
msgid "Total:"
msgstr "Kokku:"
@@ -4641,7 +4814,8 @@ msgid "account.analytic.journal"
msgstr ""
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,account_ids:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,account_ids:0
#: field:account.fiscal.position.template,account_ids:0
msgid "Account Mapping"
msgstr ""
@@ -4657,7 +4831,8 @@ msgid "Account Reconciliation"
msgstr ""
#. module: account
-#: view:account.bank.statement:0 selection:account.bank.statement,state:0
+#: view:account.bank.statement:0
+#: selection:account.bank.statement,state:0
msgid "Confirm"
msgstr "Kinnita"
@@ -4672,7 +4847,8 @@ msgid "Parent Account Template"
msgstr "Ülemkonto mall"
#. module: account
-#: help:account.tax,domain:0 help:account.tax.template,domain:0
+#: help:account.tax,domain:0
+#: help:account.tax.template,domain:0
msgid ""
"This field is only used if you develop your own module allowing developers "
"to create specific taxes in a custom domain."
@@ -4690,7 +4866,8 @@ msgid "Analytic account"
msgstr "Analüütiline konto"
#. module: account
-#: rml:account.invoice:0 selection:account.invoice,type:0
+#: rml:account.invoice:0
+#: selection:account.invoice,type:0
msgid "Supplier Invoice"
msgstr "Tarnija arve"
@@ -4700,16 +4877,22 @@ msgid "Valid"
msgstr "Kehtiv"
#. module: account
-#: field:account.account,debit:0 rml:account.account.balance:0
+#: field:account.account,debit:0
+#: rml:account.account.balance:0
#: field:account.analytic.account,debit:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.central.journal:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 field:account.model.line,debit:0
-#: field:account.move.line,debit:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.central.journal:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: field:account.model.line,debit:0
+#: field:account.move.line,debit:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
+#: rml:account.vat.declaration:0
#: field:report.hr.timesheet.invoice.journal,revenue:0
msgid "Debit"
msgstr "Deebet"
@@ -4730,6 +4913,7 @@ msgid "Invoice Lines"
msgstr "Arve read"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: field:account.period,date_start:0
msgid "Start of Period"
msgstr "Perioodi algus"
@@ -4771,7 +4955,8 @@ msgid "Reporting"
msgstr "Aruandlus"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "/"
msgstr "/"
@@ -4799,10 +4984,11 @@ msgstr "Grupeeri arve read"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_configuration
msgid "Configuration"
-msgstr "Seadistus"
+msgstr "Seadistused"
#. module: account
-#: view:account.analytic.line:0 view:account.invoice:0
+#: view:account.analytic.line:0
+#: view:account.invoice:0
msgid "Total amount"
msgstr "Kogusumma"
@@ -4852,12 +5038,14 @@ msgid "Paid invoice"
msgstr "Makstud arve"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Tax Definition"
msgstr "Maksu definitsioon"
#. module: account
-#: field:account.tax,tax_group:0 field:account.tax.template,tax_group:0
+#: field:account.tax,tax_group:0
+#: field:account.tax.template,tax_group:0
msgid "Tax Group"
msgstr "Maksu Grupp"
@@ -4898,7 +5086,8 @@ msgid "With movements"
msgstr "Liikumistega"
#. module: account
-#: field:account.tax,domain:0 field:account.tax.template,domain:0
+#: field:account.tax,domain:0
+#: field:account.tax.template,domain:0
msgid "Domain"
msgstr "Domeen"
@@ -4923,7 +5112,9 @@ msgid "Manually"
msgstr ""
#. module: account
-#: view:account.invoice:0 view:account.tax:0 view:account.tax.template:0
+#: view:account.invoice:0
+#: view:account.tax:0
+#: view:account.tax.template:0
#: selection:account.vat.declaration,init,based_on:0
#: model:ir.actions.act_window,name:account.act_res_partner_2_account_invoice_opened
#: model:ir.actions.act_window,name:account.action_invoice_tree
@@ -4940,7 +5131,8 @@ msgid "Payable Accounts"
msgstr "Võlgade kontod"
#. module: account
-#: view:account.invoice.line:0 field:account.invoice.tax,invoice_id:0
+#: view:account.invoice.line:0
+#: field:account.invoice.tax,invoice_id:0
msgid "Invoice Line"
msgstr "Arve rida"
@@ -4991,7 +5183,8 @@ msgid "The optional other currency if it is a multi-currency entry."
msgstr ""
#. module: account
-#: view:account.invoice:0 field:account.invoice,payment_ids:0
+#: view:account.invoice:0
+#: field:account.invoice,payment_ids:0
#: selection:account.vat.declaration,init,based_on:0
msgid "Payments"
msgstr "Maksed"
@@ -5037,9 +5230,12 @@ msgstr "Vali päevik ja makse kuupäev"
#. module: account
#: selection:account.analytic.account,state:0
#: selection:account.bank.statement,state:0
-#: selection:account.fiscalyear,state:0 selection:account.invoice,state:0
-#: selection:account.journal.period,state:0 selection:account.move,state:0
-#: selection:account.move.line,state:0 selection:account.period,state:0
+#: selection:account.fiscalyear,state:0
+#: selection:account.invoice,state:0
+#: selection:account.journal.period,state:0
+#: selection:account.move,state:0
+#: selection:account.move.line,state:0
+#: selection:account.period,state:0
#: selection:account.subscription,state:0
msgid "Draft"
msgstr "Mustand"
@@ -5066,7 +5262,8 @@ msgid "Are you sure ?"
msgstr "Oled sa kindel?"
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
msgid "PRO-FORMA"
msgstr "PRO-FORMA"
@@ -5102,16 +5299,20 @@ msgid "Supplier Invoice Process"
msgstr "Tarnija arve protsess"
#. module: account
-#: rml:account.account.balance:0 rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.account.balance:0
+#: rml:account.analytic.account.analytic.check:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.vat.declaration:0
msgid "Page"
msgstr ""
#. module: account
-#: view:account.move:0 view:account.move.line:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "Optional Information"
msgstr "Valikuline info"
@@ -5127,7 +5328,8 @@ msgid "Receivable and Payable"
msgstr "Nõuded ja võlad"
#. module: account
-#: rml:account.account.balance:0 rml:account.general.journal:0
+#: rml:account.account.balance:0
+#: rml:account.general.journal:0
msgid ":"
msgstr ":"
@@ -5150,7 +5352,8 @@ msgid ""
msgstr ""
#. module: account
-#: view:account.bank.statement:0 view:account.bank.statement.reconcile:0
+#: view:account.bank.statement:0
+#: view:account.bank.statement.reconcile:0
#: view:account.subscription:0
msgid "Compute"
msgstr "Arvuta"
@@ -5184,7 +5387,6 @@ msgstr "Perioodide arv"
#. module: account
#: wizard_field:account.analytic.account.analytic.check.report,init,date2:0
-#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date2:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date2:0
#: wizard_field:account.analytic.account.journal.report,init,date2:0
@@ -5194,7 +5396,8 @@ msgid "End of period"
msgstr "Perioodi lõpp"
#. module: account
-#: view:account.move:0 model:ir.model,name:account.model_account_move
+#: view:account.move:0
+#: model:ir.model,name:account.model_account_move
msgid "Account Entry"
msgstr "Konto kirje"
@@ -5205,7 +5408,8 @@ msgid "General Journal"
msgstr ""
#. module: account
-#: field:account.account,balance:0 rml:account.account.balance:0
+#: field:account.account,balance:0
+#: rml:account.account.balance:0
#: selection:account.account.type,close_method:0
#: field:account.analytic.account,balance:0
#: rml:account.analytic.account.balance:0
@@ -5213,9 +5417,12 @@ msgstr ""
#: rml:account.analytic.account.inverted.balance:0
#: field:account.bank.statement,balance_end:0
#: field:account.bank.statement.reconcile,total_balance:0
-#: rml:account.general.ledger:0 field:account.move.line,balance:0
-#: rml:account.partner.balance:0 selection:account.payment.term.line,value:0
-#: selection:account.tax,type:0 rml:account.third_party_ledger:0
+#: rml:account.general.ledger:0
+#: field:account.move.line,balance:0
+#: rml:account.partner.balance:0
+#: selection:account.payment.term.line,value:0
+#: selection:account.tax,type:0
+#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "Balance"
msgstr "Bilanss"
@@ -5259,8 +5466,11 @@ msgid "The sequence used for invoice numbers in this journal."
msgstr ""
#. module: account
-#: view:account.account:0 view:account.account.template:0
-#: view:account.journal:0 view:account.move:0 view:account.move.line:0
+#: view:account.account:0
+#: view:account.account.template:0
+#: view:account.journal:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "General Information"
msgstr "Üldine info"
@@ -5299,7 +5509,8 @@ msgid "List of Accounts"
msgstr "Kontode nimekiri"
#. module: account
-#: view:product.product:0 view:product.template:0
+#: view:product.product:0
+#: view:product.template:0
msgid "Sales Properties"
msgstr ""
@@ -5364,7 +5575,6 @@ msgstr "Majandusaasta mida sulgeda"
#. module: account
#: wizard_field:account.aged.trial.balance,init,date1:0
#: wizard_field:account.analytic.account.analytic.check.report,init,date1:0
-#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date1:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date1:0
#: wizard_field:account.analytic.account.journal.report,init,date1:0
@@ -5392,11 +5602,15 @@ msgstr ""
#: view:account.analytic.account:0
#: field:account.analytic.account,description:0
#: field:account.analytic.line,name:0
-#: field:account.bank.statement.reconcile.line,name:0 rml:account.invoice:0
-#: field:account.invoice,name:0 field:account.invoice.line,name:0
+#: field:account.bank.statement.reconcile.line,name:0
+#: rml:account.invoice:0
+#: field:account.invoice,name:0
+#: field:account.invoice.line,name:0
#: wizard_field:account.invoice.refund,init,description:0
-#: rml:account.overdue:0 field:account.payment.term,note:0
-#: field:account.tax.code,info:0 field:account.tax.code.template,info:0
+#: rml:account.overdue:0
+#: field:account.payment.term,note:0
+#: field:account.tax.code,info:0
+#: field:account.tax.code.template,info:0
msgid "Description"
msgstr "Kirjeldus"
@@ -5440,7 +5654,8 @@ msgid ""
msgstr ""
#. module: account
-#: field:account.tax.code,code:0 field:account.tax.code.template,code:0
+#: field:account.tax.code,code:0
+#: field:account.tax.code.template,code:0
msgid "Case Code"
msgstr ""
@@ -5522,7 +5737,8 @@ msgstr ""
#. module: account
#: model:account.account.type,name:account.account_type_cash_moves
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
msgid "Cash"
msgstr "Kassa"
@@ -5562,7 +5778,8 @@ msgid "Keep empty for all open fiscal year"
msgstr "Jäta tühjaks kõigi avatud majandusaastate joks"
#. module: account
-#: rml:account.invoice:0 selection:account.invoice,type:0
+#: rml:account.invoice:0
+#: selection:account.invoice,type:0
msgid "Supplier Refund"
msgstr "Tarnija tagasimakse"
@@ -5610,8 +5827,10 @@ msgstr ""
"Seda kontot kasutatakse käesoleva kategooria lao väljundväärtuse hindamiseks"
#. module: account
-#: help:account.tax,base_sign:0 help:account.tax,ref_base_sign:0
-#: help:account.tax,ref_tax_sign:0 help:account.tax,tax_sign:0
+#: help:account.tax,base_sign:0
+#: help:account.tax,ref_base_sign:0
+#: help:account.tax,ref_tax_sign:0
+#: help:account.tax,tax_sign:0
#: help:account.tax.template,base_sign:0
#: help:account.tax.template,ref_base_sign:0
#: help:account.tax.template,ref_tax_sign:0
@@ -5645,8 +5864,10 @@ msgid "Name of the fiscal year as displayed on screens."
msgstr "Majandusaasta nimi nagu kuvatakse ekraanil."
#. module: account
-#: field:account.invoice,payment_term:0 view:account.payment.term:0
-#: field:account.payment.term,name:0 view:account.payment.term.line:0
+#: field:account.invoice,payment_term:0
+#: view:account.payment.term:0
+#: field:account.payment.term,name:0
+#: view:account.payment.term.line:0
#: field:account.payment.term.line,payment_id:0
#: model:ir.model,name:account.model_account_payment_term
#: field:res.partner,property_payment_term:0
@@ -5704,7 +5925,8 @@ msgstr "Jah"
#. module: account
#: help:account.account,reconcile:0
-msgid "Check this if the user is allowed to reconcile entries in this account."
+msgid ""
+"Check this if the user is allowed to reconcile entries in this account."
msgstr ""
#. module: account
@@ -5715,21 +5937,22 @@ msgstr "Arvuta kirje kuupäevad"
#. module: account
#: view:board.board:0
msgid "Analytic accounts to close"
-msgstr "Analüütilised kontod sulgeda"
+msgstr ""
#. module: account
#: view:board.board:0
msgid "Draft invoices"
-msgstr "Arvete mustandid"
+msgstr ""
#. module: account
#: model:ir.actions.act_window,name:account.open_board_account
#: model:ir.ui.menu,name:account.menu_board_account
msgid "Accounting Dashboard"
-msgstr "Raamatupdamise töölaud"
+msgstr ""
#. module: account
-#: view:board.board:0 model:ir.actions.act_window,name:account.act_my_account
+#: view:board.board:0
+#: model:ir.actions.act_window,name:account.act_my_account
msgid "Accounts to invoice"
msgstr ""
@@ -5737,7 +5960,7 @@ msgstr ""
#: view:board.board:0
#: model:ir.actions.act_window,name:account.action_account_analytic_line_to_invoice
msgid "Costs to invoice"
-msgstr "Kulud arveldamiseks"
+msgstr ""
#. module: account
#: view:board.board:0
@@ -5747,69 +5970,69 @@ msgstr ""
#. module: account
#: model:ir.module.module,shortdesc:account.module_meta_information
msgid "Board for accountant"
-msgstr "Töölaud raamatupidajale"
+msgstr ""
#. module: account
#: model:ir.actions.act_window,name:account.action_aged_income
msgid "Income Accounts"
-msgstr "Tulude kontod"
+msgstr ""
#. module: account
#: view:board.board:0
msgid "My indicators"
-msgstr "Minu näiturid"
+msgstr ""
#. module: account
#: view:board.board:0
msgid "Account Board"
-msgstr "Raamatupidamise töölaud"
+msgstr ""
#. module: account
#: view:board.board:0
msgid "Aged income"
-msgstr "Aegunud tulu"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,show_columns:0
msgid "Show Debit/Credit Information"
-msgstr "Näita Deebet/Kreedit informatsiooni"
+msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,account_choice:0
msgid "All accounts"
-msgstr "Kõik kontod"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,period_manner:0
msgid "Entries Selection Based on"
-msgstr "Kirjete valik põhineb"
+msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
#: wizard_view:account.balance.account.balance.report,zero_years:0
msgid "Notification"
-msgstr "Teavitus"
+msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,period_manner:0
msgid "Financial Period"
-msgstr "Finantsperiood"
+msgstr ""
#. module: account
#: model:ir.actions.report.xml,name:account.account_account_balance
#: model:ir.actions.report.xml,name:account.account_account_balance_landscape
msgid "Account balance"
-msgstr "Kontojääk"
+msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,init:0
msgid "Select Period(s)"
-msgstr "Vali periood(id)"
+msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,compare_pattern:0
msgid "Percentage"
-msgstr "Protsent"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,compare_pattern:0
@@ -5819,12 +6042,12 @@ msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,init:0
msgid "Select Fiscal Year(s)(Maximum Three Years)"
-msgstr "Vali finantsaasta(d) (maksimum kolm aastat)"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,select_account:0
msgid "Select Reference Account(for % comparision)"
-msgstr "Valige võrdluskonto (% võrdluseks)"
+msgstr ""
#. module: account
#: model:ir.actions.wizard,name:account.wizard_account_balance_report
@@ -5867,7 +6090,7 @@ msgstr ""
#: rml:account.account.balance.landscape:0
#: rml:account.balance.account.balance:0
msgid "Total :"
-msgstr ""
+msgstr "Kokku :"
#. module: account
#: wizard_field:account.balance.account.balance.report,init,format_perc:0
@@ -5875,7 +6098,7 @@ msgid "Show Comparision in %"
msgstr "Näita võrdlus protsentides %"
#. module: account
-#: wizard_view:account.balance.account.balance.report,init:0
+#: wizard_view:account.analytic.account.balance.report,init:0
msgid "Select Period"
msgstr "Vali periood"
@@ -5887,17 +6110,17 @@ msgstr "Aruande valikud"
#. module: account
#: selection:account.balance.account.balance.report,init,compare_pattern:0
msgid "Don't Compare"
-msgstr "Ära Võrdle"
+msgstr "Ära võrdle"
#. module: account
#: wizard_field:account.balance.account.balance.report,init,account_choice:0
msgid "Show Accounts"
-msgstr "Näita Kontosid"
+msgstr "Näita kontosid"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
msgid "1. You have selected more than 3 years in any case."
-msgstr ""
+msgstr "1. Teie valisite rohkem kui kolm aastat igal juhul"
#. module: account
#: model:ir.module.module,shortdesc:account.module_meta_information
@@ -5908,7 +6131,7 @@ msgstr ""
#: rml:account.account.balance.landscape:0
#: rml:account.balance.account.balance:0
msgid "Year :"
-msgstr ""
+msgstr "Aasta :"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
@@ -5933,12 +6156,12 @@ msgstr ""
#. module: account
#: help:account.balance.account.balance.report,init,select_account:0
msgid "Keep empty for comparision to its parent"
-msgstr ""
+msgstr "Jätke tühjaks, et võrrelda selle vanemaga"
#. module: account
#: selection:account.balance.account.balance.report,init,period_manner:0
msgid "Creation Date"
-msgstr "Loomise Kuupäev"
+msgstr "Loomise kuupäev"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
@@ -5950,9 +6173,9 @@ msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,zero_years:0
msgid ""
-"You may have selected the compare options with more than 1 year with credit/"
-"debit columns and % option.This can lead contents to be printed out of the "
-"paper.Please try again."
+"You may have selected the compare options with more than 1 year with "
+"credit/debit columns and % option.This can lead contents to be printed out "
+"of the paper.Please try again."
msgstr ""
#. module: account
@@ -5971,12 +6194,12 @@ msgid "Month Range"
msgstr "Kuu vahemik"
#. module: account
-#: model:ir.actions.act_window,name:account.action_view_created_invoice_dashboard
+#: model:ir.actions.act_window,name:report_account.action_view_created_invoice_dashboard
msgid "Invoices Created Within Past 15 Days"
msgstr "Viimase 15 päeva jooksul loodud arved"
#. module: account
-#: model:ir.model,name:account.model_report_invoice_created
+#: model:ir.model,name:report_account.model_report_invoice_created
msgid "Report of Invoices Created within Last 15 days"
msgstr "Viimase 15 päeva jooksul loodud arvete aruanne"
@@ -5991,12 +6214,12 @@ msgid "Accounts by type"
msgstr "Kontod tüübi järgi"
#. module: account
-#: model:ir.model,name:account.model_report_aged_receivable
+#: model:ir.model,name:report_account.model_report_aged_receivable
msgid "Aged Receivable Till Today"
msgstr "Aegunud nõuded kuni tänaseni"
#. module: account
-#: model:ir.model,name:account.model_report_account_receivable
+#: model:ir.model,name:report_account.model_report_account_receivable
msgid "Receivable accounts"
msgstr "Laekumiskontod"
@@ -6006,25 +6229,25 @@ msgid "Range"
msgstr "Vahemik"
#. module: account
-#: model:ir.module.module,description:account.module_meta_information
+#: model:ir.module.module,description:report_account.module_meta_information
msgid "A module that adds new reports based on the account module."
msgstr "Moodul, mis lisab uusi aruandeid konto mooduli põhjal."
#. module: account
-#: model:ir.module.module,shortdesc:account.module_meta_information
+#: model:ir.module.module,shortdesc:report_account.module_meta_information
msgid "Account Reporting - Reporting"
msgstr "Konto aruandlus - Aruandlus"
#. module: account
-#: model:ir.actions.act_window,name:account.action_account_receivable_graph
-#: model:ir.ui.menu,name:account.menu_account_receivable_graph
+#: model:ir.actions.act_window,name:report_account.action_account_receivable_graph
+#: model:ir.ui.menu,name:report_account.menu_account_receivable_graph
msgid "Balance by Type of Account"
msgstr "Bilanss kontotüübi järgi"
#. module: account
#: field:report.account.receivable,name:0
msgid "Week of Year"
-msgstr "Nädal"
+msgstr ""
#. module: account
#: field:report.invoice.created,create_date:0
@@ -6032,7 +6255,7 @@ msgid "Create Date"
msgstr "Loomise kuupäev"
#. module: account
-#: model:ir.actions.act_window,name:account.action_aged_receivable_graph
+#: model:ir.actions.act_window,name:report_account.action_aged_receivable_graph
#: view:report.aged.receivable:0
msgid "Aged Receivable"
msgstr "Aegunud nõuded"
@@ -6041,3 +6264,75 @@ msgstr "Aegunud nõuded"
#: view:report.invoice.created:0
msgid "Untaxed Amount"
msgstr "Maksuvaba summa"
+
+#, python-format
+#~ msgid "Warning !"
+#~ msgstr "Ettevaatust !"
+
+#, python-format
+#~ msgid "You must first select a partner !"
+#~ msgstr "Sa pead esmalt valima partneri !"
+
+#, python-format
+#~ msgid "End of Fiscal Year Entry"
+#~ msgstr "Majandusaasta lõpp"
+
+#, python-format
+#~ msgid "This period is already closed !"
+#~ msgstr "See periood on juba suletud !"
+
+#, python-format
+#~ msgid "Closing of fiscal year cancelled, please check the box !"
+#~ msgstr "Majandusaasta sulgemine tühistatud, palun märgi kastike !"
+
+#, python-format
+#~ msgid "Taxes missing !"
+#~ msgstr "Maks puudub !"
+
+#, python-format
+#~ msgid "Integrity Error !"
+#~ msgstr "Terviklikkuse viga !"
+
+#, python-format
+#~ msgid "You can not use an inactive account!"
+#~ msgstr "Sa ei saa kasutada mitteaktiivset kontot!"
+
+#, python-format
+#~ msgid "Bank Journal "
+#~ msgstr "Panga päevik "
+
+#, python-format
+#~ msgid "Account move line \"%s\" is not valid"
+#~ msgstr "Konto liigutuskirje \"%s\" ei ole õige"
+
+#, python-format
+#~ msgid "You can not add/modify entries in a closed journal."
+#~ msgstr "Teie ei saa lisada/muuta suletud päeviku kirjeid."
+
+#, python-format
+#~ msgid ""
+#~ "Specified Journal does not have any account move entries in draft state for "
+#~ "this period"
+#~ msgstr ""
+#~ "Valitud päevik ei sisalda konto liigutuskirjeid mustandolekus sellel "
+#~ "perioodil"
+
+#, python-format
+#~ msgid "You have to provide an account for the write off entry !"
+#~ msgstr "Te peate valima konto mahakandmise kirje jaoks !"
+
+#, python-format
+#~ msgid "No analytic journal !"
+#~ msgstr "Puudub analüütiline päevik !"
+
+#, python-format
+#~ msgid "You can not use this general account in this journal !"
+#~ msgstr "Te ei saa kasutada üldist kontot selles päevikus !"
+
+#, python-format
+#~ msgid "The opening journal must not have any entry in the new fiscal year !"
+#~ msgstr "Avatav päevik ei tohi sisaldama kirjeid uues finantsaastas !"
+
+#, python-format
+#~ msgid "The account entries lines are not in valid state."
+#~ msgstr "Konto kirjete read ei ole õiges olekus."
diff --git a/addons/account/i18n/nl_BE.po b/addons/account/i18n/nl_BE.po
index b9458e35ada..c620cea1669 100644
--- a/addons/account/i18n/nl_BE.po
+++ b/addons/account/i18n/nl_BE.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-07-20 11:57+0000\n"
+"PO-Revision-Date: 2010-07-22 16:28+0000\n"
"Last-Translator: Niels Huylebroeck \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-07-21 03:43+0000\n"
+"X-Launchpad-Export-Date: 2010-07-23 04:07+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -101,28 +101,28 @@ msgstr "Basiscode"
#. module: account
#: view:account.account:0
msgid "Account Statistics"
-msgstr ""
+msgstr "Rekeningstatistieken"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_vat_declaration
#: model:ir.ui.menu,name:account.menu_wizard_vat_declaration
msgid "Print Taxes Report"
-msgstr ""
+msgstr "Btw-aangifte afdrukken"
#. module: account
#: field:account.account,parent_id:0
msgid "Parent"
-msgstr ""
+msgstr "Hoofd"
#. module: account
#: selection:account.move,type:0
msgid "Journal Voucher"
-msgstr ""
+msgstr "Boekstuk"
#. module: account
#: field:account.invoice,residual:0
msgid "Residual"
-msgstr ""
+msgstr "Rest"
#. module: account
#: field:account.tax,base_sign:0
@@ -130,13 +130,13 @@ msgstr ""
#: field:account.tax.template,base_sign:0
#: field:account.tax.template,ref_base_sign:0
msgid "Base Code Sign"
-msgstr ""
+msgstr "Teken basisbedrag"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_unreconcile_select
#: model:ir.ui.menu,name:account.menu_unreconcile_select
msgid "Unreconcile entries"
-msgstr ""
+msgstr "Afpunten boekingen ongedaan maken"
#. module: account
#: constraint:account.period:0
@@ -151,17 +151,17 @@ msgstr ""
#: model:ir.actions.act_window,name:account.action_move_line_form
#: model:ir.ui.menu,name:account.menu_action_move_line_form
msgid "Entries"
-msgstr ""
+msgstr "Boekingen"
#. module: account
#: selection:account.move.line,centralisation:0
msgid "Debit Centralisation"
-msgstr ""
+msgstr "Debetcentralisering"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_invoice_state_confirm
msgid "Confirm draft invoices"
-msgstr ""
+msgstr "Conceptfacturen bevestigen"
#. module: account
#: help:account.payment.term.line,days2:0
@@ -170,59 +170,63 @@ msgid ""
"positive, it gives the day of the next month. Set 0 for net days (otherwise "
"it's based on the beginning of the month)."
msgstr ""
+"Dag van de maand, -1 instellen voor laatste datum huidige maand. Indien \r\n"
+"positief, eerste dag van volgende maand. 0 instellen voor nettodagen (andere "
+"\r\n"
+"gebaseerd op begin van de maand)."
#. module: account
#: view:account.move:0
msgid "Total Credit"
-msgstr ""
+msgstr "Totaal credit"
#. module: account
#: field:account.config.wizard,charts:0
msgid "Charts of Account"
-msgstr ""
+msgstr "Boekhoudplannen"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_move_line_select
msgid "Move line select"
-msgstr ""
+msgstr "Lijnselectie verplaatsen"
#. module: account
#: rml:account.journal.period.print:0
#: rml:account.tax.code.entries:0
msgid "Entry label"
-msgstr ""
+msgstr "Omschrijving boeking"
#. module: account
#: model:ir.model,name:account.model_account_model_line
msgid "Account Model Entries"
-msgstr ""
+msgstr "Rekeningmodelboekingen"
#. module: account
#: field:account.tax.code,sum_period:0
msgid "Period Sum"
-msgstr ""
+msgstr "Periodesom"
#. module: account
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Compute Code (if type=code)"
-msgstr ""
+msgstr "Berekeningscode (als type=code)"
#. module: account
#: view:account.move:0
#: view:account.move.line:0
msgid "Account Entry Line"
-msgstr ""
+msgstr "Lijn boeking op rekening"
#. module: account
#: wizard_view:account.aged.trial.balance,init:0
msgid "Aged Trial Balance"
-msgstr ""
+msgstr "Ageingbalans"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_recurrent_entries
msgid "Recurrent Entries"
-msgstr ""
+msgstr "Standaardboekingen"
#. module: account
#: field:account.analytic.line,amount:0
@@ -234,29 +238,29 @@ msgstr ""
#: field:account.tax,amount:0
#: field:account.tax.template,amount:0
msgid "Amount"
-msgstr ""
+msgstr "Bedrag"
#. module: account
#: model:ir.actions.report.xml,name:account.account_3rdparty_ledger
#: model:ir.actions.wizard,name:account.wizard_third_party_ledger
#: model:ir.ui.menu,name:account.menu_third_party_ledger
msgid "Partner Ledger"
-msgstr ""
+msgstr "Relatieplan"
#. module: account
#: field:product.template,supplier_taxes_id:0
msgid "Supplier Taxes"
-msgstr ""
+msgstr "Leveranciers-btw"
#. module: account
#: view:account.move:0
msgid "Total Debit"
-msgstr ""
+msgstr "Totaal debet"
#. module: account
#: rml:account.tax.code.entries:0
msgid "Accounting Entries-"
-msgstr ""
+msgstr "Journaalposten-"
#. module: account
#: help:account.journal,view_id:0
@@ -266,6 +270,10 @@ msgid ""
"in which order. You can create your own view for a faster encoding in each "
"journal."
msgstr ""
+"Geeft de weergave wanneer mutaties in het dagboek worden geschreven of "
+"doorgebladerd. De weergave verteld Open ERP welke velden er zichtbaar, "
+"verplicht of alleen lezen moeten zijn en in welke volgorde. U kunt uw eigen "
+"weergave aanmaken voor een snellere codering in elk dagboek."
#. module: account
#: help:account.invoice,date_due:0
@@ -276,18 +284,24 @@ msgid ""
"date empty, it means direct payment. The payment term may compute several "
"due dates, for example 50% now, 50% in one month."
msgstr ""
+"Als u betalingsvoorwaarden gebruikt, wordt de vervaldatum automatisch \r\n"
+"berekend als u een boeking doet. Als u de betalingsvoorwaarde en de \r\n"
+"vervaldatum niet invult, gaat het systeem uit van contante betaling. De \r\n"
+"betalingsvoorwaarde kan ook meerdere vervaldatums bepalen, vb. 50% nu en 50% "
+"\r\n"
+"binnen een maand."
#. module: account
#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "Fixed"
-msgstr ""
+msgstr "Vast"
#. module: account
#: model:ir.actions.report.xml,name:account.account_overdue
#: view:res.company:0
msgid "Overdue Payments"
-msgstr ""
+msgstr "Achterstallige betalingen"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
@@ -297,38 +311,38 @@ msgstr ""
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
#: wizard_view:account.vat.declaration,init:0
msgid "Select period"
-msgstr ""
+msgstr "Periode kiezen"
#. module: account
#: field:account.invoice,origin:0
#: field:account.invoice.line,origin:0
msgid "Origin"
-msgstr ""
+msgstr "Oorsprong"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "Move Name"
-msgstr ""
+msgstr "Naam beweging"
#. module: account
#: xsl:account.transfer:0
msgid "Reference"
-msgstr ""
+msgstr "Referentie"
#. module: account
#: wizard_view:account.subscription.generate,init:0
msgid "Subscription Compute"
-msgstr ""
+msgstr "Abonnementen berekenen"
#. module: account
#: rml:account.central.journal:0
msgid "Account Num."
-msgstr ""
+msgstr "Rekeningnr."
#. module: account
#: rml:account.analytic.account.analytic.check:0
msgid "Delta Debit"
-msgstr ""
+msgstr "Delta debet"
#. module: account
#: model:account.account.type,name:account.account_type_tax
@@ -341,7 +355,7 @@ msgstr "Belasting"
#. module: account
#: rml:account.general.journal:0
msgid "Debit Trans."
-msgstr ""
+msgstr "Debettrans."
#. module: account
#: field:account.analytic.line,account_id:0
@@ -351,25 +365,25 @@ msgstr ""
#: wizard_field:account.move.line.reconcile,addendum,analytic_id:0
#: field:report.hr.timesheet.invoice.journal,account_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Analytische rekening"
#. module: account
#: field:account.tax,child_depend:0
#: field:account.tax.template,child_depend:0
msgid "Tax on Children"
-msgstr ""
+msgstr "Btw op onderliggende records"
#. module: account
#: rml:account.central.journal:0
#: rml:account.general.journal:0
#: field:account.journal,name:0
msgid "Journal Name"
-msgstr ""
+msgstr "Journaalnaam"
#. module: account
#: view:account.payment.term:0
msgid "Description on invoices"
-msgstr ""
+msgstr "Omschrijving op facturen"
#. module: account
#: constraint:account.analytic.account:0
@@ -379,24 +393,24 @@ msgstr ""
#. module: account
#: field:account.bank.statement.reconcile,total_entry:0
msgid "Total entries"
-msgstr ""
+msgstr "Totaal boekingen"
#. module: account
#: field:account.fiscal.position.account,account_src_id:0
#: field:account.fiscal.position.account.template,account_src_id:0
msgid "Account Source"
-msgstr ""
+msgstr "Bronrekening"
#. module: account
#: field:account.journal,update_posted:0
msgid "Allow Cancelling Entries"
-msgstr ""
+msgstr "Annuleren posten toelaten"
#. module: account
#: model:process.transition,name:account.process_transition_paymentorderbank0
#: model:process.transition,name:account.process_transition_paymentorderreconcilation0
msgid "Payment Reconcilation"
-msgstr ""
+msgstr "Afpunten betalingen"
#. module: account
#: model:account.journal,name:account.expenses_journal
@@ -406,27 +420,27 @@ msgstr ""
#. module: account
#: model:ir.actions.act_window,name:account.act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal
msgid "All Analytic Entries"
-msgstr ""
+msgstr "Alle analytische boekingen"
#. module: account
#: rml:account.overdue:0
msgid "Date:"
-msgstr ""
+msgstr "Datum"
#. module: account
#: selection:account.account.type,sign:0
msgid "Negative"
-msgstr ""
+msgstr "Negatief"
#. module: account
#: rml:account.partner.balance:0
msgid "(Account/Partner) Name"
-msgstr ""
+msgstr "Naam (rekening/relatie)"
#. module: account
#: selection:account.move,type:0
msgid "Contra"
-msgstr ""
+msgstr "Tegenover"
#. module: account
#: field:account.analytic.account,state:0
@@ -436,36 +450,37 @@ msgstr ""
#: view:account.move.line:0
#: view:account.subscription:0
msgid "State"
-msgstr ""
+msgstr "Status"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree13
#: model:ir.ui.menu,name:account.menu_action_invoice_tree13
msgid "Unpaid Supplier Refunds"
-msgstr ""
+msgstr "Openstaande leveranciersterugbetalingen"
#. module: account
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Special Computation"
-msgstr ""
+msgstr "Speciale berekening"
#. module: account
#: model:process.transition,note:account.process_transition_confirmstatementfromdraft0
msgid "Confirm statement with/without reconciliation from draft statement"
msgstr ""
+"Bevestig uittreksel met/zonder afpunting op basis van voorlopig uittreksel"
#. module: account
#: wizard_view:account.move.bank.reconcile,init:0
#: model:ir.actions.wizard,name:account.action_account_bank_reconcile_tree
#: model:ir.ui.menu,name:account.menu_action_account_bank_reconcile_check_tree
msgid "Bank reconciliation"
-msgstr ""
+msgstr "Afstemming banksaldo"
#. module: account
#: rml:account.invoice:0
msgid "Disc.(%)"
-msgstr ""
+msgstr "Korting(%)"
#. module: account
#: rml:account.general.ledger:0
@@ -474,12 +489,12 @@ msgstr ""
#: rml:account.overdue:0
#: field:account.subscription,ref:0
msgid "Ref"
-msgstr ""
+msgstr "Ref"
#. module: account
#: field:account.tax.template,type_tax_use:0
msgid "Tax Use In"
-msgstr ""
+msgstr "Btw-type"
#. module: account
#: help:account.tax.template,include_base_amount:0
@@ -487,81 +502,84 @@ msgid ""
"Set if the amount of tax must be included in the base amount before "
"computing the next taxes."
msgstr ""
+"Geef aan of het btw-bedrag moet worden opgenomen in het basisbedrag voordat "
+"\r\n"
+"de volgende btw wordt berekend."
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_periodical_processing
msgid "Periodical Processing"
-msgstr ""
+msgstr "Periodieke verwerking"
#. module: account
#: view:report.hr.timesheet.invoice.journal:0
msgid "Analytic Entries Stats"
-msgstr ""
+msgstr "Statistieken analyt. boekingen"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_tax_code_template_form
#: model:ir.ui.menu,name:account.menu_action_account_tax_code_template_form
msgid "Tax Code Templates"
-msgstr ""
+msgstr "Sjablonen btw-codes"
#. module: account
#: view:account.invoice:0
msgid "Supplier invoice"
-msgstr ""
+msgstr "Leverancierfactuur"
#. module: account
#: model:process.transition,name:account.process_transition_reconcilepaid0
#: model:process.transition,name:account.process_transition_supplierreconcilepaid0
msgid "Reconcile Paid"
-msgstr ""
+msgstr "Betaald afpunten"
#. module: account
#: wizard_field:account.chart,init,target_move:0
msgid "Target Moves"
-msgstr ""
+msgstr "Doelbewegingen"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_tax_template_form
#: model:ir.ui.menu,name:account.menu_action_account_tax_template_form
msgid "Tax Templates"
-msgstr ""
+msgstr "Btw-sjablonen"
#. module: account
#: field:account.invoice,reconciled:0
msgid "Paid/Reconciled"
-msgstr ""
+msgstr "Betaald/afgepunt"
#. module: account
#: field:account.account.type,close_method:0
msgid "Deferral Method"
-msgstr ""
+msgstr "Overdrachtsmethode"
#. module: account
#: field:account.tax.template,include_base_amount:0
msgid "Include in Base Amount"
-msgstr ""
+msgstr "Opnemen in basisbedrag"
#. module: account
#: field:account.tax,ref_base_code_id:0
#: field:account.tax.template,ref_base_code_id:0
msgid "Refund Base Code"
-msgstr ""
+msgstr "Code basis terugbetaling"
#. module: account
#: view:account.invoice.line:0
msgid "Line"
-msgstr ""
+msgstr "Lijn"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
msgid "J.C. or Move name"
-msgstr ""
+msgstr "Naam beweging"
#. module: account
#: selection:account.tax,applicable_type:0
#: selection:account.tax.template,applicable_type:0
msgid "True"
-msgstr ""
+msgstr "Waar"
#. module: account
#: help:account.payment.term.line,days:0
@@ -569,6 +587,8 @@ msgid ""
"Number of days to add before computation of the day of month.If Date=15/01, "
"Number of Days=22, Day of Month=-1, then the due date is 28/02."
msgstr ""
+"Aantal dagen toe te voegen voor berekening van dag van de maand. Als datum "
+"=15/01, aantal dagen =22, dag van de maand =-1, dan is de vervaldatum 28/02."
#. module: account
#: model:ir.model,name:account.model_account_tax
@@ -578,23 +598,23 @@ msgstr ""
#. module: account
#: rml:account.central.journal:0
msgid "Printing Date"
-msgstr ""
+msgstr "Afdrukdatum"
#. module: account
#: rml:account.general.ledger:0
msgid "Mvt"
-msgstr ""
+msgstr "Bew."
#. module: account
#: model:ir.actions.wizard,name:account.wizard_aged_trial_balance
#: model:ir.ui.menu,name:account.menu_aged_trial_balance
msgid "Aged Partner Balance"
-msgstr ""
+msgstr "Ageingbalans relaties"
#. module: account
#: view:account.journal:0
msgid "Entry Controls"
-msgstr ""
+msgstr "Controle boekingen"
#. module: account
#: help:account.model.line,sequence:0
@@ -602,64 +622,65 @@ msgid ""
"The sequence field is used to order the resources from lower sequences to "
"higher ones"
msgstr ""
+"Volgorde wordt gebruikt om de resources te sorteren van laag naar hoog"
#. module: account
#: wizard_view:account.analytic.account.chart,init:0
#: wizard_view:account.analytic.line,init:0
msgid "(Keep empty to open the current situation)"
-msgstr ""
+msgstr "(leeg om de huidige situatie te openen)"
#. module: account
#: model:ir.model,name:account.model_account_fiscal_position_account
msgid "Fiscal Position Accounts Mapping"
-msgstr ""
+msgstr "Rekeningkoppeling fiscale positie"
#. module: account
#: field:account.analytic.account,contact_id:0
msgid "Contact"
-msgstr ""
+msgstr "Contact"
#. module: account
#: selection:account.model.line,date:0
#: selection:account.model.line,date_maturity:0
msgid "Partner Payment Term"
-msgstr ""
+msgstr "Betalingsvoorwaarde relatie"
#. module: account
#: view:account.move.reconcile:0
msgid "Account Entry Reconcile"
-msgstr ""
+msgstr "Afstemmen rekeningboeking"
#. module: account
#: wizard_button:account.move.bank.reconcile,init,open:0
msgid "Open for bank reconciliation"
-msgstr ""
+msgstr "Open voor afstemming banksaldo"
#. module: account
#: field:account.invoice.line,discount:0
msgid "Discount (%)"
-msgstr ""
+msgstr "Korting (%)"
#. module: account
#: wizard_field:account.move.line.reconcile,init_full,writeoff:0
#: wizard_field:account.move.line.reconcile,init_partial,writeoff:0
msgid "Write-Off amount"
-msgstr ""
+msgstr "Afschrijvingsbedrag"
#. module: account
#: help:account.fiscalyear,company_id:0
msgid "Keep empty if the fiscal year belongs to several companies."
-msgstr ""
+msgstr "Leeg laten als het fiscaal jaar voor meerdere firma's geldt."
#. module: account
#: model:ir.ui.menu,name:account.menu_analytic_accounting
msgid "Analytic Accounting"
-msgstr ""
+msgstr "Analytische boekhouding"
#. module: account
#: rml:account.overdue:0
msgid "Sub-Total :"
-msgstr ""
+msgstr "Subtotaal:"
#. module: account
#: field:account.analytic.account,line_ids:0
@@ -670,28 +691,28 @@ msgstr ""
#: model:ir.ui.menu,name:account.next_id_41
#, python-format
msgid "Analytic Entries"
-msgstr ""
+msgstr "Analytische boekingen"
#. module: account
#: selection:account.subscription,period_type:0
msgid "month"
-msgstr ""
+msgstr "Maand"
#. module: account
#: field:account.analytic.account,partner_id:0
msgid "Associated Partner"
-msgstr ""
+msgstr "Gekoppelde relatie"
#. module: account
#: view:account.invoice:0
#: field:account.invoice,comment:0
msgid "Additional Information"
-msgstr ""
+msgstr "Extra informatie"
#. module: account
#: selection:account.invoice,type:0
msgid "Customer Refund"
-msgstr ""
+msgstr "Terugbetaling klant"
#. module: account
#: wizard_view:account.analytic.account.chart,init:0
@@ -704,64 +725,64 @@ msgstr ""
#: field:account.tax.template,ref_tax_sign:0
#: field:account.tax.template,tax_sign:0
msgid "Tax Code Sign"
-msgstr ""
+msgstr "Teken btw-bedrag"
#. module: account
#: help:res.partner,credit:0
msgid "Total amount this customer owes you."
-msgstr ""
+msgstr "Totaalbedrag dat de klant is verschuldigd."
#. module: account
#: view:account.move.line:0
msgid "St."
-msgstr ""
+msgstr "St."
#. module: account
#: model:ir.actions.act_window,name:account.action_tax_code_line_open
msgid "account.move.line"
-msgstr ""
+msgstr "account.move.line"
#. module: account
#: model:process.transition,name:account.process_transition_supplieranalyticcost0
msgid "Analytic Invoice"
-msgstr ""
+msgstr "Analytische factuur"
#. module: account
#: field:account.journal.column,field:0
msgid "Field Name"
-msgstr ""
+msgstr "Veldnaam"
#. module: account
#: field:account.tax.code,sign:0
#: field:account.tax.code.template,sign:0
msgid "Sign for parent"
-msgstr ""
+msgstr "Teken voor hoofdcode"
#. module: account
#: field:account.fiscalyear,end_journal_period_id:0
msgid "End of Year Entries Journal"
-msgstr ""
+msgstr "Journaal eindejaarsboekingen"
#. module: account
#: view:product.product:0
#: view:product.template:0
msgid "Purchase Properties"
-msgstr ""
+msgstr "Aankoopeigenschappen"
#. module: account
#: model:process.node,note:account.process_node_paymententries0
msgid "Can be draft or validated"
-msgstr ""
+msgstr "Concept of gevalideerd"
#. module: account
#: wizard_button:account.invoice.pay,init,reconcile:0
msgid "Partial Payment"
-msgstr ""
+msgstr "Deelbetaling"
#. module: account
#: wizard_view:account_use_models,create:0
msgid "Move Lines Created."
-msgstr ""
+msgstr "Gemaakte lijnen verplaatsen"
#. module: account
#: field:account.fiscalyear,state:0
@@ -771,23 +792,23 @@ msgstr ""
#: field:account.period,state:0
#: field:account.subscription,state:0
msgid "Status"
-msgstr ""
+msgstr "Status"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "Period to"
-msgstr ""
+msgstr "Periode tot"
#. module: account
#: field:account.account.type,partner_account:0
msgid "Partner account"
-msgstr ""
+msgstr "Relatierekening"
#. module: account
#: wizard_view:account.subscription.generate,init:0
msgid "Generate entries before:"
-msgstr ""
+msgstr "Genereren boekingen voor:"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
@@ -795,7 +816,7 @@ msgstr ""
#: model:ir.actions.report.xml,name:account.account_analytic_account_cost_ledger
#: model:ir.actions.wizard,name:account.account_analytic_account_cost_ledger_report
msgid "Cost Ledger"
-msgstr ""
+msgstr "Kostenstaat"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
@@ -803,18 +824,18 @@ msgstr ""
#: wizard_view:account.partner.balance.report,init:0
#: wizard_view:account.third_party_ledger.report,init:0
msgid "(Keep empty for all open fiscal years)"
-msgstr ""
+msgstr "(Leeg voor alle geopende boekjaren)"
#. module: account
#: field:account.invoice,move_lines:0
msgid "Move Lines"
-msgstr ""
+msgstr "Mutatielijnen"
#. module: account
#: model:ir.actions.act_window,name:account.report_account_analytic_journal_tree
#: model:ir.ui.menu,name:account.report_account_analytic_journal_print
msgid "Account cost and revenue by journal"
-msgstr ""
+msgstr "Winst- en verliesrekeningen per journaal"
#. module: account
#: help:account.account.template,user_type:0
@@ -822,83 +843,85 @@ msgid ""
"These types are defined according to your country. The type contain more "
"information about the account and it's specificities."
msgstr ""
+"Deze types hangen af van uw land. Het type bevat meer info over de rekening "
+"en diens kenmerken."
#. module: account
#: selection:account.automatic.reconcile,init,power:0
msgid "6"
-msgstr ""
+msgstr "6"
#. module: account
#: model:ir.ui.menu,name:account.next_id_30
msgid "Bank Reconciliation"
-msgstr ""
+msgstr "Afpunten banksaldo"
#. module: account
#: model:ir.model,name:account.model_account_account_template
msgid "Templates for Accounts"
-msgstr ""
+msgstr "Rekeningmodellen"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_analytic_account_form
#: model:ir.model,name:account.model_account_analytic_account
#: model:ir.ui.menu,name:account.account_analytic_def_account
msgid "Analytic Accounts"
-msgstr ""
+msgstr "Analytische rekeningen"
#. module: account
#: wizard_view:account.print.journal.report,init:0
#: model:ir.actions.wizard,name:account.wizard_print_journal
#: model:ir.ui.menu,name:account.menu_print_journal
msgid "Print Journal"
-msgstr ""
+msgstr "Journaal afdrukken"
#. module: account
#: model:ir.model,name:account.model_account_bank_accounts_wizard
msgid "account.bank.accounts.wizard"
-msgstr ""
+msgstr "account.bank.accounts.wizard"
#. module: account
#: field:account.move.line,date_created:0
#: field:account.move.reconcile,create_date:0
msgid "Creation date"
-msgstr ""
+msgstr "Aanmaakdatum"
#. module: account
#: wizard_button:account.invoice.refund,init,cancel_invoice:0
msgid "Cancel Invoice"
-msgstr ""
+msgstr "Factuur annuleren"
#. module: account
#: field:account.journal.column,required:0
msgid "Required"
-msgstr ""
+msgstr "Verplicht"
#. module: account
#: field:product.category,property_account_expense_categ:0
#: field:product.template,property_account_expense:0
msgid "Expense Account"
-msgstr ""
+msgstr "Kostenrekening"
#. module: account
#: wizard_field:account.move.line.reconcile,addendum,journal_id:0
msgid "Write-Off Journal"
-msgstr ""
+msgstr "Afschrijvingsjournaal"
#. module: account
#: field:account.model.line,amount_currency:0
#: field:account.move.line,amount_currency:0
msgid "Amount Currency"
-msgstr ""
+msgstr "Bedrag valuta"
#. module: account
#: field:account.chart.template,property_account_expense_categ:0
msgid "Expense Category Account"
-msgstr ""
+msgstr "Kostencategorierekening"
#. module: account
#: wizard_field:account.fiscalyear.close,init,fy2_id:0
msgid "New Fiscal Year"
-msgstr ""
+msgstr "Nieuw boekjaar"
#. module: account
#: help:account.tax,tax_group:0
@@ -906,16 +929,18 @@ msgid ""
"If a default tax is given in the partner it only overrides taxes from "
"accounts (or products) in the same group."
msgstr ""
+"Als de standaard-btw voor de relatie is gedefinieerd, overschrijft deze "
+"alleen de btw ingesteld op rekeningen (of producten) in dezelfde groep."
#. module: account
#: wizard_field:account.open_closed_fiscalyear,init,fyear_id:0
msgid "Fiscal Year to Open"
-msgstr ""
+msgstr "Te openen boekjaar"
#. module: account
#: view:account.config.wizard:0
msgid "Select Chart of Accounts"
-msgstr ""
+msgstr "Boekhoudplan kiezen"
#. module: account
#: field:account.analytic.account,quantity:0
@@ -928,7 +953,7 @@ msgstr ""
#: field:account.model.line,quantity:0
#: field:account.move.line,quantity:0
msgid "Quantity"
-msgstr ""
+msgstr "Hoeveelheid"
#. module: account
#: wizard_field:account.account.balance.report,checktype,date_to:0
@@ -936,33 +961,33 @@ msgstr ""
#: wizard_field:account.partner.balance.report,init,date2:0
#: wizard_field:account.third_party_ledger.report,init,date2:0
msgid "End date"
-msgstr ""
+msgstr "Einddatum"
#. module: account
#: field:account.invoice.tax,base_amount:0
msgid "Base Code Amount"
-msgstr ""
+msgstr "Basisbedrag"
#. module: account
#: help:account.journal,user_id:0
msgid "The user responsible for this journal"
-msgstr ""
+msgstr "Gebruiker die voor het journaal verantwoordelijk is"
#. module: account
#: field:account.journal,default_debit_account_id:0
msgid "Default Debit Account"
-msgstr ""
+msgstr "Standaard debetrekening"
#. module: account
#: model:ir.actions.act_window,name:account.action_bank_statement_tree
#: model:ir.ui.menu,name:account.menu_bank_statement_tree
msgid "Entries by Statements"
-msgstr ""
+msgstr "Boekingen per uittreksel"
#. module: account
#: model:process.transition,name:account.process_transition_analyticinvoice0
msgid "analytic Invoice"
-msgstr ""
+msgstr "Analytische factuur"
#. module: account
#: wizard_field:account.automatic.reconcile,init,period_id:0
@@ -981,22 +1006,22 @@ msgstr ""
#: wizard_field:account.print.journal.report,init,period_id:0
#: field:account.subscription,period_nbr:0
msgid "Period"
-msgstr ""
+msgstr "Periode"
#. module: account
#: rml:account.partner.balance:0
msgid "Grand total"
-msgstr ""
+msgstr "Eindtotaal"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_accounting
msgid "Financial Accounting"
-msgstr ""
+msgstr "Financiële boekhouding"
#. module: account
#: rml:account.invoice:0
msgid "Net Total:"
-msgstr ""
+msgstr "Nettototaal:"
#. module: account
#: view:account.fiscal.position:0
@@ -1010,68 +1035,68 @@ msgstr ""
#: model:ir.model,name:account.model_account_fiscal_position
#: field:res.partner,property_account_position:0
msgid "Fiscal Position"
-msgstr ""
+msgstr "Fiscale positie"
#. module: account
#: field:account.analytic.line,product_uom_id:0
#: field:account.move.line,product_uom_id:0
msgid "UoM"
-msgstr ""
+msgstr "Eenh."
#. module: account
#: wizard_field:account.third_party_ledger.report,init,page_split:0
msgid "One Partner Per Page"
-msgstr ""
+msgstr "Een relatie per bladzijde"
#. module: account
#: field:account.account,child_parent_ids:0
#: field:account.account.template,child_parent_ids:0
msgid "Children"
-msgstr ""
+msgstr "Afhankel."
#. module: account
#: model:ir.model,name:account.model_account_fiscal_position_tax
msgid "Fiscal Position Taxes Mapping"
-msgstr ""
+msgstr "Btw-koppeling fiscale positie"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree2_new
#: model:ir.ui.menu,name:account.menu_action_invoice_tree2_new
msgid "New Supplier Invoice"
-msgstr ""
+msgstr "Nieuwe leveranciersfactuur"
#. module: account
#: wizard_field:account.invoice.pay,init,amount:0
msgid "Amount paid"
-msgstr ""
+msgstr "Betaald bedrag"
#. module: account
#: selection:account.invoice,type:0
#: model:process.transition,name:account.process_transition_customerinvoice0
#: model:process.transition,name:account.process_transition_suppliercustomerinvoice0
msgid "Customer Invoice"
-msgstr ""
+msgstr "Klantenfactuur"
#. module: account
#: wizard_view:account.open_closed_fiscalyear,init:0
msgid "Choose Fiscal Year"
-msgstr ""
+msgstr "Boekjaar kiezen"
#. module: account
#: field:account.sequence.fiscalyear,sequence_main_id:0
msgid "Main Sequence"
-msgstr ""
+msgstr "Hoofdvolgorde"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_analytic_journal_tree
#: model:ir.ui.menu,name:account.account_analytic_journal_print
msgid "Print Analytic Journals"
-msgstr ""
+msgstr "Analytische journalen afdrukken"
#. module: account
#: rml:account.tax.code.entries:0
msgid "Voucher Nb"
-msgstr ""
+msgstr "Boekingsnr."
#. module: account
#: help:account.payment.term.line,sequence:0
@@ -1079,125 +1104,127 @@ msgid ""
"The sequence field is used to order the payment term lines from the lowest "
"sequences to the higher ones"
msgstr ""
+"Volgorde wordt gebruikt om de betalingsvoorwaarden te sorteren van laag naar "
+"hoog."
#. module: account
#: field:account.bank.statement.reconcile,total_new:0
msgid "Total write-off"
-msgstr ""
+msgstr "Totaal afgeschreven"
#. module: account
#: view:account.tax.template:0
msgid "Compute Code for Taxes included prices"
-msgstr ""
+msgstr "Code voor prijzen inclusief btw berekenen"
#. module: account
#: view:account.invoice.tax:0
#: model:ir.actions.act_window,name:account.action_tax_code_list
#: model:ir.ui.menu,name:account.menu_action_tax_code_list
msgid "Tax codes"
-msgstr ""
+msgstr "Btw-codes"
#. module: account
#: field:account.fiscal.position.template,chart_template_id:0
#: field:account.tax.template,chart_template_id:0
#: field:wizard.multi.charts.accounts,chart_template_id:0
msgid "Chart Template"
-msgstr ""
+msgstr "Boekhoudplansjabloon"
#. module: account
#: field:account.chart.template,property_account_income_categ:0
msgid "Income Category Account"
-msgstr ""
+msgstr "Inkomstencategorierekening"
#. module: account
#: model:ir.actions.act_window,name:account.analytic_account_form
#: model:ir.ui.menu,name:account.account_analytic_form
msgid "New Analytic Account"
-msgstr ""
+msgstr "Nieuwe analytische rekening"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_fiscal_position_template_form
#: model:ir.ui.menu,name:account.menu_action_account_fiscal_position_form_template
msgid "Fiscal Position Templates"
-msgstr ""
+msgstr "Sjablonen fiscale posities"
#. module: account
#: rml:account.invoice:0
#: field:account.invoice.line,price_unit:0
msgid "Unit Price"
-msgstr ""
+msgstr "Eenheidsprijs"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "Period from :"
-msgstr ""
+msgstr "Periode van:"
#. module: account
#: model:ir.model,name:account.model_wizard_multi_charts_accounts
msgid "wizard.multi.charts.accounts"
-msgstr ""
+msgstr "wizard.multi.charts.accounts"
#. module: account
#: model:account.journal,name:account.sales_journal
msgid "Journal de vente"
-msgstr ""
+msgstr "Verkoopdagboek"
#. module: account
#: help:account.model.line,amount_currency:0
msgid "The amount expressed in an optional other currency."
-msgstr ""
+msgstr "Het bedrag uitgedrukt in een optionele andere munt."
#. module: account
#: view:account.fiscal.position.template:0
#: field:account.fiscal.position.template,name:0
msgid "Fiscal Position Template"
-msgstr ""
+msgstr "Sjabloon fiscale posities"
#. module: account
#: field:account.payment.term,line_ids:0
msgid "Terms"
-msgstr ""
+msgstr "Voorwaarden"
#. module: account
#: rml:account.vat.declaration:0
msgid "Tax Report"
-msgstr ""
+msgstr "Belasting-aangifte"
#. module: account
#: wizard_button:account.analytic.account.chart,init,open:0
#: wizard_button:account.chart,init,open:0
msgid "Open Charts"
-msgstr ""
+msgstr "Open boekhoudplannen"
#. module: account
#: wizard_view:account.fiscalyear.close.state,init:0
msgid "Are you sure you want to close the fiscal year ?"
-msgstr ""
+msgstr "Bent u zeker dat u het boekjaar wilt afsluiten?"
#. module: account
#: selection:account.move,type:0
msgid "Bank Receipt"
-msgstr ""
+msgstr "Bankontvangst"
#. module: account
#: view:res.partner:0
msgid "Bank account"
-msgstr ""
+msgstr "Bankrekening"
#. module: account
#: field:account.chart.template,tax_template_ids:0
msgid "Tax Template List"
-msgstr ""
+msgstr "Lijst btw-sjablonen"
#. module: account
#: model:process.transition,name:account.process_transition_invoiceimport0
msgid "Invoice import"
-msgstr ""
+msgstr "Import facturen"
#. module: account
#: model:ir.actions.wizard,name:account.action_move_journal_line_form_select
msgid "Standard entry"
-msgstr ""
+msgstr "Standaardboeking"
#. module: account
#: help:account.account,currency_mode:0
@@ -1208,122 +1235,130 @@ msgid ""
"software system you may have to use the rate at date. Incoming transactions "
"always use the rate at date."
msgstr ""
+"Hiermee kiest u hoe de koers voor uitgaande transacties wordt berekend. In "
+"\r\n"
+"de meeste landen is \"gemiddeld\" de wettelijke manier, maar slechts weinig "
+"\r\n"
+"softwaresystemen kunnen dit. Als u dus importeert uit een ander \r\n"
+"softwarepakket, dient u wellicht de koers op datum te gebruiken. Inkomende "
+"\r\n"
+"transacties gebeuren altijd volgens de dagkoers."
#. module: account
#: field:account.account,company_currency_id:0
msgid "Company Currency"
-msgstr ""
+msgstr "Firmamunt"
#. module: account
#: model:ir.model,name:account.model_account_fiscal_position_account_template
msgid "Fiscal Position Template Account Mapping"
-msgstr ""
+msgstr "Rekeningkoppeling sjabloon fiscale positie"
#. module: account
#: field:account.analytic.account,parent_id:0
msgid "Parent Analytic Account"
-msgstr ""
+msgstr "Primaire analytische rekening"
#. module: account
#: wizard_button:account.move.line.reconcile,init_partial,addendum:0
msgid "Reconcile With Write-Off"
-msgstr ""
+msgstr "Afpunten met afschrijving"
#. module: account
#: field:account.move.line,tax_amount:0
msgid "Tax/Base Amount"
-msgstr ""
+msgstr "Btw-/basisbedrag"
#. module: account
#: help:wizard.multi.charts.accounts,code_digits:0
msgid "No. of Digits to use for account code"
-msgstr ""
+msgstr "Aantal cijfers voor de rekeningcode"
#. module: account
#: field:account.bank.statement,balance_end_real:0
msgid "Ending Balance"
-msgstr ""
+msgstr "Eindbalans"
#. module: account
#: view:product.product:0
msgid "Purchase Taxes"
-msgstr ""
+msgstr "Aankoopbtw"
#. module: account
#: field:account.payment.term.line,name:0
msgid "Line Name"
-msgstr ""
+msgstr "Lijnnaam"
#. module: account
#: selection:account.payment.term.line,value:0
msgid "Fixed Amount"
-msgstr ""
+msgstr "Vast bedrag"
#. module: account
#: rml:account.analytic.account.analytic.check:0
msgid "Analytic Credit"
-msgstr ""
+msgstr "Analytisch credit"
#. module: account
#: field:account.move.line,reconcile_partial_id:0
#: wizard_button:account.move.line.reconcile,init_partial,partial:0
msgid "Partial Reconcile"
-msgstr ""
+msgstr "Gedeeltelijke afpunting"
#. module: account
#: wizard_field:account.automatic.reconcile,reconcile,unreconciled:0
msgid "Not reconciled transactions"
-msgstr ""
+msgstr "Niet-afgepunte transacties"
#. module: account
#: view:account.fiscal.position:0
#: field:account.fiscal.position,tax_ids:0
#: field:account.fiscal.position.template,tax_ids:0
msgid "Tax Mapping"
-msgstr ""
+msgstr "Btw-koppeling"
#. module: account
#: view:account.config.wizard:0
msgid "Continue"
-msgstr ""
+msgstr "Doorgaan"
#. module: account
#: field:account.payment.term.line,value:0
msgid "Value"
-msgstr ""
+msgstr "Waarde"
#. module: account
#: wizard_field:account.invoice.pay,addendum,writeoff_acc_id:0
#: wizard_field:account.move.line.reconcile,addendum,writeoff_acc_id:0
msgid "Write-Off account"
-msgstr ""
+msgstr "Afschrijvingsrekening"
#. module: account
#: field:account.model.line,model_id:0
#: field:account.subscription,model_id:0
msgid "Model"
-msgstr ""
+msgstr "Model"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_fiscalyear_close_state
#: model:ir.ui.menu,name:account.menu_wizard_fy_close_state
msgid "Close a Fiscal Year"
-msgstr ""
+msgstr "Boekjaar afsluiten"
#. module: account
#: field:account.journal,centralisation:0
msgid "Centralised counterpart"
-msgstr ""
+msgstr "Centralisatiesaldo"
#. module: account
#: view:wizard.company.setup:0
msgid "Message"
-msgstr ""
+msgstr "Boodschap"
#. module: account
#: model:process.node,note:account.process_node_supplierpaymentorder0
msgid "Select invoices you want to pay and manages advances"
-msgstr ""
+msgstr "Kies de facturen die u wilt betalen en verwerk voorschotten"
#. module: account
#: selection:account.account,type:0
@@ -1332,7 +1367,7 @@ msgstr ""
#: selection:account.analytic.account,type:0
#: field:account.journal,view_id:0
msgid "View"
-msgstr ""
+msgstr "Weergave"
#. module: account
#: selection:account.account.balance.report,checktype,display_account:0
@@ -1340,24 +1375,24 @@ msgstr ""
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "All"
-msgstr ""
+msgstr "Alles"
#. module: account
#: field:account.move.line,analytic_lines:0
#: model:ir.model,name:account.model_account_analytic_line
msgid "Analytic lines"
-msgstr ""
+msgstr "Analytische lijnen"
#. module: account
#: help:account.tax,type:0
msgid "The computation method for the tax amount."
-msgstr ""
+msgstr "De berekeningsmethode voor het btw-bedrag."
#. module: account
#: model:process.node,note:account.process_node_accountingentries0
#: model:process.node,note:account.process_node_supplieraccountingentries0
msgid "Validated accounting entries."
-msgstr ""
+msgstr "Gevalideerde boekingen"
#. module: account
#: wizard_view:account.move.line.unreconcile,init:0
@@ -1366,32 +1401,34 @@ msgid ""
"If you unreconciliate transactions, you must also verify all the actions "
"that are linked to those transactions because they will not be disable"
msgstr ""
+"Als u afgepunte transacties ongedaan maakt, moet u alle gekoppelde acties "
+"nakijken, want deze worden niet uitgeschakeld"
#. module: account
#: model:process.node,name:account.process_node_electronicfile0
msgid "Electronic File"
-msgstr ""
+msgstr "Elektronisch bestand"
#. module: account
#: view:res.partner:0
msgid "Customer Credit"
-msgstr ""
+msgstr "Klantencredit"
#. module: account
#: field:account.invoice,tax_line:0
msgid "Tax Lines"
-msgstr ""
+msgstr "Btw-lijnen"
#. module: account
#: field:ir.sequence,fiscal_ids:0
msgid "Sequences"
-msgstr ""
+msgstr "Volgorden"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_type_form
#: model:ir.ui.menu,name:account.menu_action_account_type_form
msgid "Account Types"
-msgstr ""
+msgstr "Rekeningsoorten"
#. module: account
#: wizard_field:account.automatic.reconcile,init,journal_id:0
@@ -1413,40 +1450,40 @@ msgstr ""
#: wizard_field:populate_statement_from_inv,init,journal_id:0
#: field:report.hr.timesheet.invoice.journal,journal_id:0
msgid "Journal"
-msgstr ""
+msgstr "Journaal"
#. module: account
#: field:account.account,child_id:0
#: field:account.analytic.account,child_ids:0
msgid "Child Accounts"
-msgstr ""
+msgstr "Afhankelijke rekeningen"
#. module: account
#: field:account.account,check_history:0
msgid "Display History"
-msgstr ""
+msgstr "Historiek tonen"
#. module: account
#: wizard_field:account.third_party_ledger.report,init,date1:0
msgid " Start date"
-msgstr ""
+msgstr " Begindatum"
#. module: account
#: wizard_field:account.account.balance.report,checktype,display_account:0
#: wizard_field:account.general.ledger.report,checktype,display_account:0
msgid "Display accounts "
-msgstr ""
+msgstr "Rekeningen tonen "
#. module: account
#: model:ir.model,name:account.model_account_bank_statement_reconcile_line
msgid "Statement reconcile line"
-msgstr ""
+msgstr "Lijn afschriften afpunten"
#. module: account
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Keep empty to use the income account"
-msgstr ""
+msgstr "Leeg laten voor opbrengstenrekening"
#. module: account
#: view:account.bank.statement.reconcile:0
@@ -1457,7 +1494,7 @@ msgstr ""
#: code:addons/account/wizard/wizard_reconcile.py:0
#, python-format
msgid "Write-Off"
-msgstr ""
+msgstr "Afschrijving"
#. module: account
#: help:account.invoice,partner_bank:0
@@ -1465,97 +1502,99 @@ msgid ""
"The partner bank account to pay\n"
"Keep empty to use the default"
msgstr ""
+"De bankrekening van de relatie voor betaling.\n"
+"Laat leeg voor de standaardwaarde."
#. module: account
#: field:res.partner,debit:0
msgid "Total Payable"
-msgstr ""
+msgstr "Totaal te betalen"
#. module: account
#: wizard_button:account.fiscalyear.close.state,init,close:0
msgid "Close states"
-msgstr ""
+msgstr "Status gesloten"
#. module: account
#: model:ir.model,name:account.model_wizard_company_setup
msgid "wizard.company.setup"
-msgstr ""
+msgstr "wizard.company.setup"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_analytic_account_line_extended_form
msgid "account.analytic.line.extended"
-msgstr ""
+msgstr "account.analytic.line.extended"
#. module: account
#: field:account.journal,refund_journal:0
msgid "Refund Journal"
-msgstr ""
+msgstr "Terugbetalingsjournaal"
#. module: account
#: model:account.account.type,name:account.account_type_income
msgid "Income"
-msgstr ""
+msgstr "Inkomsten"
#. module: account
#: selection:account.bank.statement.line,type:0
msgid "Supplier"
-msgstr ""
+msgstr "Leverancier"
#. module: account
#: rml:account.invoice:0
msgid "Tel. :"
-msgstr ""
+msgstr "Tel. :"
#. module: account
#: field:account.invoice.tax,tax_amount:0
msgid "Tax Code Amount"
-msgstr ""
+msgstr "Btw-bedrag"
#. module: account
#: selection:account.account.type,sign:0
msgid "Positive"
-msgstr ""
+msgstr "Positief"
#. module: account
#: wizard_view:account.general.journal.report,init:0
#: model:ir.actions.wizard,name:account.wizard_general_journal
#: model:ir.ui.menu,name:account.menu_general_journal
msgid "Print General Journal"
-msgstr ""
+msgstr "Algemeen dagboek afdrukken"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_chart_template_form
#: model:ir.ui.menu,name:account.menu_action_account_chart_template_form
msgid "Chart of Accounts Templates"
-msgstr ""
+msgstr "Sjablonen boekhoudplan"
#. module: account
#: field:account.invoice,move_id:0
msgid "Invoice Movement"
-msgstr ""
+msgstr "Factuurbeweging"
#. module: account
#: model:ir.actions.act_window,name:account.action_wizard_multi_chart
#: model:ir.ui.menu,name:account.menu_wizard
#: view:wizard.multi.charts.accounts:0
msgid "Generate Chart of Accounts from a Chart Template"
-msgstr ""
+msgstr "Boekhoudplan maken op basis van sjabloon"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_legal_statement
msgid "Legal Statements"
-msgstr ""
+msgstr "Wettelijke staten"
#. module: account
#: field:account.tax.code,parent_id:0
#: field:account.tax.code.template,parent_id:0
msgid "Parent Code"
-msgstr ""
+msgstr "Hoofdcode"
#. module: account
#: wizard_button:account.move.line.reconcile.select,init,open:0
msgid "Open for reconciliation"
-msgstr ""
+msgstr "Open voor afstemming"
#. module: account
#: model:account.journal,name:account.bilan_journal
@@ -1566,42 +1605,42 @@ msgstr ""
#: selection:account.tax,tax_group:0
#: selection:account.tax.template,tax_group:0
msgid "VAT"
-msgstr ""
+msgstr "BTW"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "Account n°"
-msgstr ""
+msgstr "Rekeningnr."
#. module: account
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Keep empty to use the expense account"
-msgstr ""
+msgstr "Leeg laten voor kostenrekening"
#. module: account
#: wizard_field:account.automatic.reconcile,init,account_ids:0
msgid "Account to reconcile"
-msgstr ""
+msgstr "Af te stemmen rekening"
#. module: account
#: rml:account.invoice:0
#: field:account.model.line,partner_id:0
#: field:account.move.line,partner_id:0
msgid "Partner Ref."
-msgstr ""
+msgstr "Relatieref."
#. module: account
#: selection:account.partner.balance.report,init,result_selection:0
#: selection:account.third_party_ledger.report,init,result_selection:0
msgid "Receivable and Payable Accounts"
-msgstr ""
+msgstr "Te ontvangen en te betalen"
#. module: account
#: view:account.subscription:0
#: field:account.subscription,lines_id:0
msgid "Subscription Lines"
-msgstr ""
+msgstr "Abonnementslijnen"
#. module: account
#: selection:account.analytic.journal,type:0
@@ -1609,43 +1648,43 @@ msgstr ""
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Purchase"
-msgstr ""
+msgstr "Aankoop"
#. module: account
#: view:account.analytic.line:0
msgid "Total quantity"
-msgstr ""
+msgstr "Totale hvh"
#. module: account
#: field:account.invoice,date_due:0
msgid "Due Date"
-msgstr ""
+msgstr "Vervaldatum"
#. module: account
#: wizard_view:account.period.close,init:0
#: wizard_button:account.period.close,init,close:0
msgid "Close Period"
-msgstr ""
+msgstr "Periode afsluiten"
#. module: account
#: rml:account.overdue:0
msgid "Due"
-msgstr ""
+msgstr "Vervallen"
#. module: account
#: rml:account.journal.period.print:0
msgid "Third party"
-msgstr ""
+msgstr "Derde"
#. module: account
#: view:account.journal:0
msgid "Accounts Type Allowed (empty for no control)"
-msgstr ""
+msgstr "Toegelaten rekeningtypen (leeg indien geen controle)"
#. module: account
#: field:account.bank.statement,balance_start:0
msgid "Starting Balance"
-msgstr ""
+msgstr "Beginbalans"
#. module: account
#: wizard_field:account.analytic.account.quantity_cost_ledger.report,init,journal:0
@@ -1653,29 +1692,29 @@ msgstr ""
#: model:ir.actions.act_window,name:account.action_account_journal_period_tree
#: model:ir.ui.menu,name:account.menu_action_account_journal_period_tree
msgid "Journals"
-msgstr ""
+msgstr "Journalen"
#. module: account
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "Max Qty:"
-msgstr ""
+msgstr "Max. hvh"
#. module: account
#: wizard_button:account.invoice.refund,init,refund:0
msgid "Refund Invoice"
-msgstr ""
+msgstr "Factuur terugbetalen"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_period_tree
#: model:ir.actions.wizard,name:account.wizard_period_close
#: model:ir.ui.menu,name:account.menu_action_account_period_close_tree
msgid "Close a Period"
-msgstr ""
+msgstr "Periode afsluiten"
#. module: account
#: model:ir.actions.act_window,name:account.act_acc_analytic_acc_2_report_hr_timesheet_invoice_journal
msgid "Costs & Revenues"
-msgstr ""
+msgstr "Winst en verlies"
#. module: account
#: constraint:account.account:0
@@ -1690,90 +1729,90 @@ msgstr ""
#. module: account
#: view:account.config.wizard:0
msgid "Skip"
-msgstr ""
+msgstr "Overslaan"
#. module: account
#: field:account.invoice,period_id:0
msgid "Force Period"
-msgstr ""
+msgstr "Periode afdwingen"
#. module: account
#: help:account.account.type,sequence:0
msgid "Gives the sequence order when displaying a list of account types."
-msgstr ""
+msgstr "Toont de volgorde bij het weergeven van een lijst met rekeningtypes."
#. module: account
#: view:account.invoice:0
msgid "Re-Open"
-msgstr ""
+msgstr "Heropenen"
#. module: account
#: wizard_view:account.fiscalyear.close,init:0
msgid "Are you sure you want to create entries?"
-msgstr ""
+msgstr "Bent u zeker dat u de boeking wilt uitvoeren?"
#. module: account
#: field:account.tax,include_base_amount:0
msgid "Include in base amount"
-msgstr ""
+msgstr "Opnemen in basisbedrag"
#. module: account
#: rml:account.analytic.account.analytic.check:0
msgid "Delta Credit"
-msgstr ""
+msgstr "Delta credit"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_reconcile_unreconcile
#: model:ir.actions.wizard,name:account.wizard_unreconcile
msgid "Unreconcile Entries"
-msgstr ""
+msgstr "Afpunten boekingen ongedaan maken"
#. module: account
#: model:process.node,note:account.process_node_supplierdraftinvoices0
msgid "Pre-generated invoice from control"
-msgstr ""
+msgstr "Vooraf gemaakte factuur uit controle"
#. module: account
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
msgid "Cost Legder for period"
-msgstr ""
+msgstr "Kostenplaats voor periode"
#. module: account
#: model:ir.actions.act_window,name:account.action_bank_statement_tree2
#: model:ir.ui.menu,name:account.menu_bank_statement_tree2
msgid "New Statement"
-msgstr ""
+msgstr "Nieuw uittreksel"
#. module: account
#: wizard_field:account.analytic.account.chart,init,from_date:0
#: wizard_field:account.analytic.line,init,from_date:0
msgid "From"
-msgstr ""
+msgstr "Van"
#. module: account
#: model:process.node,note:account.process_node_reconciliation0
#: model:process.node,note:account.process_node_supplierreconciliation0
msgid "Reconciliation of entries from invoice(s) and payment(s)"
-msgstr ""
+msgstr "Afpunting of boekingen uit factuur en betaling"
#. module: account
#: wizard_view:account.central.journal.report,init:0
#: model:ir.actions.wizard,name:account.wizard_central_journal
#: model:ir.ui.menu,name:account.menu_central_journal
msgid "Print Central Journal"
-msgstr ""
+msgstr "Centralisatiedagboek afdrukken"
#. module: account
#: wizard_field:account.aged.trial.balance,init,period_length:0
msgid "Period length (days)"
-msgstr ""
+msgstr "Lengte periode (dagen)"
#. module: account
#: selection:account.payment.term.line,value:0
#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "Percent"
-msgstr ""
+msgstr "Procent"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_charts
@@ -1786,46 +1825,46 @@ msgstr ""
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Sale"
-msgstr ""
+msgstr "Verkoop"
#. module: account
#: wizard_button:account.account.balance.report,account_selection,checktype:0
#: wizard_button:account.general.ledger.report,account_selection,checktype:0
msgid "Next"
-msgstr ""
+msgstr "Volgende"
#. module: account
#: help:res.partner,property_account_position:0
msgid ""
"The fiscal position will determine taxes and the accounts used for the the "
"partner."
-msgstr ""
+msgstr "Fiscale positie bepaalt btw en rekeningen voor de relatie."
#. module: account
#: rml:account.analytic.account.cost_ledger:0
msgid "Date or Code"
-msgstr ""
+msgstr "Datum of code"
#. module: account
#: field:account.analytic.account,user_id:0
msgid "Account Manager"
-msgstr ""
+msgstr "Account Manager"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "to :"
-msgstr ""
+msgstr "tot:"
#. module: account
#: wizard_field:account.move.line.reconcile,init_full,debit:0
#: wizard_field:account.move.line.reconcile,init_partial,debit:0
msgid "Debit amount"
-msgstr ""
+msgstr "Debetbedrag"
#. module: account
#: selection:account.subscription,period_type:0
msgid "year"
-msgstr ""
+msgstr "Jaar"
#. module: account
#: wizard_button:account.account.balance.report,checktype,report:0
@@ -1842,12 +1881,12 @@ msgstr ""
#: wizard_button:account.print.journal.report,init,print:0
#: wizard_button:account.third_party_ledger.report,init,checkreport:0
msgid "Print"
-msgstr ""
+msgstr "Afdrukken"
#. module: account
#: wizard_field:account.account.balance.report,checktype,date_from:0
msgid "Start date"
-msgstr ""
+msgstr "Begindatum"
#. module: account
#: model:account.journal,name:account.refund_expenses_journal
@@ -1862,34 +1901,34 @@ msgstr ""
#: field:account.move,type:0
#: field:account.move.reconcile,type:0
msgid "Type"
-msgstr ""
+msgstr "Type"
#. module: account
#: view:account.journal:0
msgid "Accounts Allowed (empty for no control)"
-msgstr ""
+msgstr "Toegelaten rekeningen (leeg indien geen controle)"
#. module: account
#: view:account.invoice:0
msgid "Untaxed amount"
-msgstr ""
+msgstr "Nettobedrag"
#. module: account
#: field:account.tax,account_collected_id:0
#: field:account.tax.template,account_collected_id:0
msgid "Invoice Tax Account"
-msgstr ""
+msgstr "Btw-rekening facturen"
#. module: account
#: view:account.move.line:0
msgid "Analytic Lines"
-msgstr ""
+msgstr "Analytische lijnen"
#. module: account
#: wizard_view:account.invoice.pay,init:0
#: model:ir.actions.wizard,name:account.wizard_invoice_pay
msgid "Pay invoice"
-msgstr ""
+msgstr "Factuur betalen"
#. module: account
#: constraint:account.invoice:0
@@ -1900,12 +1939,12 @@ msgstr ""
#: model:ir.actions.act_window,name:account.action_invoice_tree5
#: model:ir.ui.menu,name:account.menu_invoice_draft
msgid "Draft Customer Invoices"
-msgstr ""
+msgstr "Voorlopige facturen klanten"
#. module: account
#: model:ir.model,name:account.model_account_subscription_line
msgid "Account Subscription Line"
-msgstr ""
+msgstr "Rekeningabonnementlijn"
#. module: account
#: selection:account.account.balance.report,checktype,state:0
@@ -1913,105 +1952,105 @@ msgstr ""
#: selection:account.partner.balance.report,init,state:0
#: selection:account.third_party_ledger.report,init,state:0
msgid "No Filter"
-msgstr ""
+msgstr "Geen filter"
#. module: account
#: field:account.payment.term.line,days:0
msgid "Number of Days"
-msgstr ""
+msgstr "Aantal dagen"
#. module: account
#: help:account.invoice,reference:0
msgid "The partner reference of this invoice."
-msgstr ""
+msgstr "Relatiereferentie van factuur"
#. module: account
#: wizard_field:account.general.ledger.report,checktype,sortbydate:0
msgid "Sort by:"
-msgstr ""
+msgstr "Sorteren op:"
#. module: account
#: field:account.move,to_check:0
msgid "To Be Verified"
-msgstr ""
+msgstr "Te controleren"
#. module: account
#: help:res.partner,debit:0
msgid "Total amount you have to pay to this supplier."
-msgstr ""
+msgstr "Totaalbedrag te betalen voor deze leverancier."
#. module: account
#: selection:account.automatic.reconcile,init,power:0
msgid "7"
-msgstr ""
+msgstr "7"
#. module: account
#: model:ir.actions.report.xml,name:account.account_transfers
msgid "Transfers"
-msgstr ""
+msgstr "Overdrachten"
#. module: account
#: rml:account.overdue:0
msgid "Li."
-msgstr ""
+msgstr "Li."
#. module: account
#: wizard_view:account.chart,init:0
msgid "Account charts"
-msgstr ""
+msgstr "Boekhoudplannen"
#. module: account
#: help:account.tax,name:0
msgid "This name will be displayed on reports"
-msgstr ""
+msgstr "Deze naam wordt op de rapporten getoond."
#. module: account
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "Printing date"
-msgstr ""
+msgstr "Afdrukdatum"
#. module: account
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "Ongeldige XML voor weergave!"
#. module: account
#: wizard_field:account.partner.balance.report,init,date1:0
msgid " Start date"
-msgstr ""
+msgstr " Begindatum"
#. module: account
#: wizard_view:account.analytic.account.journal.report,init:0
msgid "Analytic Journal Report"
-msgstr ""
+msgstr "Analytisch journaalrapport"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree3
#: model:ir.ui.menu,name:account.menu_action_invoice_tree3
msgid "Customer Refunds"
-msgstr ""
+msgstr "Terugbetaling klant"
#. module: account
#: rml:account.vat.declaration:0
msgid "Tax Amount"
-msgstr ""
+msgstr "Btw-bedrag"
#. module: account
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "J.C./Move name"
-msgstr ""
+msgstr "J.C. / Naam beweging"
#. module: account
#: field:account.journal.period,name:0
msgid "Journal-Period Name"
-msgstr ""
+msgstr "Journaal- Periodenaam"
#. module: account
#: field:account.tax.code,name:0
#: field:account.tax.code.template,name:0
msgid "Tax Case Name"
-msgstr ""
+msgstr "Naam btw-vak"
#. module: account
#: help:account.journal,entry_posted:0
@@ -2020,6 +2059,9 @@ msgid ""
"'draft' state and instead goes directly to the 'posted state' without any "
"manual validation."
msgstr ""
+"Schakel dit vakje in als u voor nieuwe rekeningbewegingen de status\r\n"
+"'voorlopig' wilt overslaan en onmiddellijk wilt boeken zonder manuele\r\n"
+"validering."
#. module: account
#: field:account.bank.statement.line,partner_id:0
@@ -2031,7 +2073,7 @@ msgstr ""
#: wizard_field:account.third_party_ledger.report,init,result_selection:0
#: field:wizard.company.setup,partner_id:0
msgid "Partner"
-msgstr ""
+msgstr "Relatie"
#. module: account
#: help:account.invoice,number:0
@@ -2039,58 +2081,60 @@ msgid ""
"Unique number of the invoice, computed automatically when the invoice is "
"created."
msgstr ""
+"Uniek factuurnummer dat automatisch wordt berekend bij het aanmaken van de "
+"factuur."
#. module: account
#: rml:account.invoice:0
msgid "Draft Invoice"
-msgstr ""
+msgstr "Voorlopige factuur"
#. module: account
#: model:account.account.type,name:account.account_type_expense
msgid "Expense"
-msgstr ""
+msgstr "Uitgave"
#. module: account
#: field:account.journal,invoice_sequence_id:0
msgid "Invoice Sequence"
-msgstr ""
+msgstr "Factuurnummering"
#. module: account
#: wizard_view:account.automatic.reconcile,init:0
msgid "Options"
-msgstr ""
+msgstr "Opties"
#. module: account
#: model:process.process,name:account.process_process_invoiceprocess0
msgid "Customer Invoice Process"
-msgstr ""
+msgstr "Verkoopfactuurprocedure"
#. module: account
#: rml:account.invoice:0
msgid "Fiscal Position Remark :"
-msgstr ""
+msgstr "Opmerking fiscale positie:"
#. module: account
#: wizard_field:account.fiscalyear.close,init,period_id:0
msgid "Opening Entries Period"
-msgstr ""
+msgstr "Periode openingsboekingen"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_validate_account_moves
#: model:ir.actions.wizard,name:account.wizard_validate_account_moves_line
#: model:ir.ui.menu,name:account.menu_validate_account_moves
msgid "Validate Account Moves"
-msgstr ""
+msgstr "Rekeningbewegingen valideren"
#. module: account
#: selection:account.subscription,period_type:0
msgid "days"
-msgstr ""
+msgstr "dagen"
#. module: account
#: selection:account.aged.trial.balance,init,direction_selection:0
msgid "Past"
-msgstr ""
+msgstr "Vorige"
#. module: account
#: field:account.analytic.account,company_currency_id:0
@@ -2104,45 +2148,45 @@ msgstr ""
#: field:account.model.line,currency_id:0
#: field:account.move.line,currency_id:0
msgid "Currency"
-msgstr ""
+msgstr "Valuta"
#. module: account
#: model:ir.actions.act_window,name:account.act_account_journal_2_account_invoice_opened
msgid "Unpaid invoices"
-msgstr ""
+msgstr "Onbetaalde facturen"
#. module: account
#: model:process.transition,name:account.process_transition_paymentreconcile0
msgid "Payment Reconcile"
-msgstr ""
+msgstr "Afpunten betalingen"
#. module: account
#: model:ir.actions.act_window,name:account.action_bank_statement_reconciliation_form
#: model:ir.ui.menu,name:account.menu_action_account_bank_reconcile_tree
msgid "Statements reconciliation"
-msgstr ""
+msgstr "Afschriften afpunten"
#. module: account
#: model:ir.actions.act_window,name:account.action_subscription_form_new
#: model:ir.ui.menu,name:account.menu_action_subscription_form_new
msgid "New Subscription"
-msgstr ""
+msgstr "Nieuw abonnement"
#. module: account
#: view:account.payment.term:0
msgid "Computation"
-msgstr ""
+msgstr "Berekening"
#. module: account
#: view:account.analytic.line:0
msgid "Analytic Entry"
-msgstr ""
+msgstr "Analytische boeking"
#. module: account
#: view:res.company:0
#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
-msgstr ""
+msgstr "Boodschap vervallen facturen"
#. module: account
#: model:ir.actions.act_window,name:account.action_tax_code_tree
@@ -2153,54 +2197,54 @@ msgstr ""
#. module: account
#: field:account.payment.term.line,value_amount:0
msgid "Value Amount"
-msgstr ""
+msgstr "Waarde bedrag"
#. module: account
#: model:ir.actions.act_window,name:account.act_account_acount_move_line_reconcile_open
msgid "Reconciled entries"
-msgstr ""
+msgstr "Afgepunte boekingen"
#. module: account
#: field:account.invoice,address_contact_id:0
msgid "Contact Address"
-msgstr ""
+msgstr "Adres contactpersoon"
#. module: account
#: view:account.fiscalyear:0
msgid "Create 3 Months Periods"
-msgstr ""
+msgstr "Trimestriële perioden maken"
#. module: account
#: view:account.invoice:0
msgid "(keep empty to use the current period)"
-msgstr ""
+msgstr "(leeg voor de huidige periode)"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree8
#: model:ir.ui.menu,name:account.menu_action_invoice_tree8
msgid "Draft Supplier Invoices"
-msgstr ""
+msgstr "Voorlopige facturen leveranciers"
#. module: account
#: wizard_field:account.invoice.refund,init,period:0
msgid "Force period"
-msgstr ""
+msgstr "Periode afdwingen"
#. module: account
#: selection:account.account.type,close_method:0
msgid "Detail"
-msgstr ""
+msgstr "Detail"
#. module: account
#: selection:account.account,type:0
#: selection:account.account.template,type:0
msgid "Consolidation"
-msgstr ""
+msgstr "Consolidatie"
#. module: account
#: field:account.chart.template,account_root_id:0
msgid "Root Account"
-msgstr ""
+msgstr "Rootrekening"
#. module: account
#: rml:account.overdue:0
@@ -2209,11 +2253,16 @@ msgid ""
"stay unpaid. Please, take appropriate measures in order to carry out this "
"payment in the next 8 days."
msgstr ""
+"Mogen wij u erop attent maken, behoudens vergissing van onze kant, dat de "
+"\r\n"
+"volgende facturen nog niet zijn betaald. Gelieve het nodige te doen om de "
+"\r\n"
+"betaling ervan binnen de 8 dagen uit te voeren."
#. module: account
#: rml:account.invoice:0
msgid "VAT :"
-msgstr ""
+msgstr "Btw:"
#. module: account
#: wizard_field:account.general.ledger.report,account_selection,Account_list:0
@@ -2222,7 +2271,7 @@ msgstr ""
#: model:ir.ui.menu,name:account.menu_action_account_tree
#: model:ir.ui.menu,name:account.menu_action_account_tree2
msgid "Chart of Accounts"
-msgstr ""
+msgstr "Boekhoudplan"
#. module: account
#: model:account.journal,name:account.check_journal
@@ -2233,27 +2282,27 @@ msgstr ""
#: model:ir.actions.wizard,name:account.wizard_generate_subscription
#: model:ir.ui.menu,name:account.menu_generate_subscription
msgid "Create subscription entries"
-msgstr ""
+msgstr "Abonnementsboekingen maken"
#. module: account
#: wizard_field:account.fiscalyear.close,init,journal_id:0
msgid "Opening Entries Journal"
-msgstr ""
+msgstr "Openingsjournaal"
#. module: account
#: view:account.config.wizard:0
msgid "Create a Fiscal Year"
-msgstr ""
+msgstr "Boekjaar maken"
#. module: account
#: field:product.template,taxes_id:0
msgid "Customer Taxes"
-msgstr ""
+msgstr "Klant-btw"
#. module: account
#: field:account.invoice,date_invoice:0
msgid "Date Invoiced"
-msgstr ""
+msgstr "Datum gefactureerd"
#. module: account
#: help:account.account.balance.report,checktype,periods:0
@@ -2262,7 +2311,7 @@ msgstr ""
#: help:account.third_party_ledger.report,init,periods:0
#: help:account.vat.declaration,init,periods:0
msgid "All periods if empty"
-msgstr ""
+msgstr "Alle periodes indien blanco"
#. module: account
#: model:account.account.type,name:account.account_type_liability
@@ -2272,17 +2321,17 @@ msgstr ""
#. module: account
#: selection:account.automatic.reconcile,init,power:0
msgid "2"
-msgstr ""
+msgstr "2"
#. module: account
#: wizard_view:account.chart,init:0
msgid "(If you do not select Fiscal year it will take all open fiscal years)"
-msgstr ""
+msgstr "(Als u geen boekjaar kiest, worden alle boekjaren genomen)"
#. module: account
#: help:account.invoice.tax,base_code_id:0
msgid "The account basis of the tax declaration."
-msgstr ""
+msgstr "De rekeningbasis van de btw-aangifte."
#. module: account
#: rml:account.analytic.account.journal:0
@@ -2302,77 +2351,77 @@ msgstr ""
#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "Date"
-msgstr ""
+msgstr "Datum"
#. module: account
#: field:account.invoice,reference_type:0
msgid "Reference Type"
-msgstr ""
+msgstr "Referentietype"
#. module: account
#: wizard_button:account.move.line.unreconcile,init,unrec:0
#: wizard_button:account.reconcile.unreconcile,init,unrec:0
msgid "Unreconcile"
-msgstr ""
+msgstr "Afpunten ongedaan maken"
#. module: account
#: field:account.tax,type:0
#: field:account.tax.template,type:0
msgid "Tax Type"
-msgstr ""
+msgstr "Btw-type"
#. module: account
#: model:process.transition,name:account.process_transition_statemententries0
msgid "Statement Entries"
-msgstr ""
+msgstr "Uittrekselboekingen"
#. module: account
#: field:account.analytic.line,user_id:0
#: field:account.journal,user_id:0
msgid "User"
-msgstr ""
+msgstr "Gebruiker"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_template_form
#: model:ir.ui.menu,name:account.menu_action_account_template_form
msgid "Account Templates"
-msgstr ""
+msgstr "Rekeningsjablonen"
#. module: account
#: view:account.chart.template:0
msgid "Chart of Accounts Template"
-msgstr ""
+msgstr "Sjablonen boekhoudplan"
#. module: account
#: model:account.journal,name:account.refund_sales_journal
msgid "Journal d'extourne"
-msgstr ""
+msgstr "Betalingsdagboek"
#. module: account
#: rml:account.journal.period.print:0
msgid "Voucher No"
-msgstr ""
+msgstr "Stuknr."
#. module: account
#: model:ir.actions.wizard,name:account.wizard_automatic_reconcile
#: model:ir.ui.menu,name:account.menu_automatic_reconcile
msgid "Automatic reconciliation"
-msgstr ""
+msgstr "Automatisch afpunten"
#. module: account
#: view:account.bank.statement:0
msgid "Import Invoice"
-msgstr ""
+msgstr "Facturen importeren"
#. module: account
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
msgid "and Journals"
-msgstr ""
+msgstr "en journalen"
#. module: account
#: view:account.tax:0
msgid "Account Tax"
-msgstr ""
+msgstr "Btw rekening"
#. module: account
#: field:account.analytic.line,move_id:0
@@ -2382,7 +2431,7 @@ msgstr ""
#. module: account
#: field:account.bank.accounts.wizard,acc_no:0
msgid "Account No."
-msgstr ""
+msgstr "Rekeningnr."
#. module: account
#: help:account.tax,child_depend:0
@@ -2390,11 +2439,13 @@ msgid ""
"Set if the tax computation is based on the computation of child taxes rather "
"than on the total amount."
msgstr ""
+"Geef aan of de btw-berekening is gebaseerd op de berekening van de "
+"onderliggende btw in plaats van op het totaal bedrag."
#. module: account
#: rml:account.central.journal:0
msgid "Journal Code"
-msgstr ""
+msgstr "Journaalcode"
#. module: account
#: help:account.tax,applicable_type:0
@@ -2402,16 +2453,18 @@ msgid ""
"If not applicable (computed through a Python code), the tax won't appear on "
"the invoice."
msgstr ""
+"Indien niet van toepassing (Python-code) verschijnt de btw niet op de "
+"factuur."
#. module: account
#: field:account.model,lines_id:0
msgid "Model Entries"
-msgstr ""
+msgstr "Modelboekingen"
#. module: account
#: field:account.analytic.account,date:0
msgid "Date End"
-msgstr ""
+msgstr "Einddatum"
#. module: account
#: view:account.bank.statement:0
@@ -2421,23 +2474,23 @@ msgstr ""
#: model:ir.actions.act_window,name:account.action_move_line_tree1
#: model:ir.ui.menu,name:account.menu_action_move_line_search
msgid "Entry Lines"
-msgstr ""
+msgstr "Boekingslijnen"
#. module: account
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Applicable Code (if type=code)"
-msgstr ""
+msgstr "Van toepassing zijnde code (als type=code)"
#. module: account
#: wizard_button:account.move.journal,init,open:0
msgid "Open Journal"
-msgstr ""
+msgstr "Journaal openen"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "KI"
-msgstr ""
+msgstr "KI"
#. module: account
#: model:ir.actions.wizard,name:account.action_account_analytic_line
@@ -2445,47 +2498,47 @@ msgstr ""
#: model:ir.ui.menu,name:account.account_entries_analytic_entries
#: model:ir.ui.menu,name:account.menu_action_move_journal_line_form
msgid "Entries Encoding by Line"
-msgstr ""
+msgstr "Boekingen ingeven per lijn"
#. module: account
#: help:account.chart.template,tax_template_ids:0
msgid "List of all the taxes that have to be installed by the wizard"
-msgstr ""
+msgstr "Lijst met alle btw-codes te installeren door wizard"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "Period from"
-msgstr ""
+msgstr "Periode van"
#. module: account
#: model:ir.model,name:account.model_account_bank_statement
#: model:process.node,name:account.process_node_bankstatement0
#: model:process.node,name:account.process_node_supplierbankstatement0
msgid "Bank Statement"
-msgstr ""
+msgstr "Rekeninguittreksel"
#. module: account
#: wizard_view:account.invoice.pay,addendum:0
#: wizard_view:account.move.line.reconcile,addendum:0
msgid "Information addendum"
-msgstr ""
+msgstr "Addenduminfo"
#. module: account
#: model:process.transition,name:account.process_transition_entriesreconcile0
#: model:process.transition,name:account.process_transition_supplierentriesreconcile0
msgid "Entries Reconcile"
-msgstr ""
+msgstr "Boekingen afpunten"
#. module: account
#: help:account.bank.statement.reconcile,total_second_amount:0
msgid "The amount in the currency of the journal"
-msgstr ""
+msgstr "Liggend"
#. module: account
#: wizard_field:account.general.ledger.report,checktype,landscape:0
msgid "Landscape Mode"
-msgstr ""
+msgstr "Maak factuur volgens analytische rekeningen"
#. module: account
#: model:process.transition,note:account.process_transition_analyticinvoice0
@@ -2540,12 +2593,12 @@ msgstr ""
#: view:wizard.company.setup:0
#: view:wizard.multi.charts.accounts:0
msgid "Cancel"
-msgstr ""
+msgstr "Annuleren"
#. module: account
#: field:account.account.type,name:0
msgid "Acc. Type Name"
-msgstr ""
+msgstr "Rekeningsoortnaam"
#. module: account
#: help:account.tax,base_code_id:0
@@ -2557,55 +2610,55 @@ msgstr ""
#: help:account.tax.template,ref_tax_code_id:0
#: help:account.tax.template,tax_code_id:0
msgid "Use this code for the VAT declaration."
-msgstr ""
+msgstr "Gebruik deze code voor de btw-aangifte"
#. module: account
#: field:account.move.line,blocked:0
msgid "Litigation"
-msgstr ""
+msgstr "Betwist"
#. module: account
#: view:account.move.line:0
#: wizard_view:account.move.validate,init:0
#: view:account.payment.term:0
msgid "Information"
-msgstr ""
+msgstr "Informatie"
#. module: account
#: model:ir.ui.menu,name:account.menu_tax_report
msgid "Taxes Reports"
-msgstr ""
+msgstr "Btw-aangiften"
#. module: account
#: field:res.partner,property_account_payable:0
msgid "Account Payable"
-msgstr ""
+msgstr "Te betalen"
#. module: account
#: wizard_view:populate_statement_from_inv,init:0
msgid "Import Invoices in Statement"
-msgstr ""
+msgstr "Facturen importeren in uittreksel"
#. module: account
#: view:account.invoice:0
msgid "Other Info"
-msgstr ""
+msgstr "Andere info"
#. module: account
#: field:account.journal,default_credit_account_id:0
msgid "Default Credit Account"
-msgstr ""
+msgstr "Standaard creditrekening"
#. module: account
#: model:process.node,name:account.process_node_supplierpaymentorder0
msgid "Payment Order"
-msgstr ""
+msgstr "Betalingsopdracht"
#. module: account
#: help:account.account.template,reconcile:0
msgid ""
"Check this option if you want the user to reconcile entries in this account."
-msgstr ""
+msgstr "Schakel deze optie in als de gebruiker deze rekening mag afpunten."
#. module: account
#: rml:account.analytic.account.journal:0
@@ -2615,12 +2668,12 @@ msgstr ""
#: model:process.node,name:account.process_node_analytic0
#: model:process.node,name:account.process_node_analyticcost0
msgid "Analytic"
-msgstr ""
+msgstr "Analytisch"
#. module: account
#: model:process.node,name:account.process_node_invoiceinvoice0
msgid "Create Invoice"
-msgstr ""
+msgstr "Factuur maken"
#. module: account
#: model:account.account.type,name:account.account_type_cash_equity
@@ -2630,17 +2683,17 @@ msgstr ""
#. module: account
#: field:wizard.company.setup,overdue_msg:0
msgid "Overdue Payment Message"
-msgstr ""
+msgstr "Boodschap vervallen facturen"
#. module: account
#: model:ir.model,name:account.model_account_tax_code_template
msgid "Tax Code Template"
-msgstr ""
+msgstr "Sjablonen btw-codes"
#. module: account
#: rml:account.partner.balance:0
msgid "In dispute"
-msgstr ""
+msgstr "Geschillen"
#. module: account
#: help:account.account.template,type:0
@@ -2651,43 +2704,49 @@ msgid ""
"partners accounts (for debit/credit computations), closed for deprecated "
"accounts."
msgstr ""
+"Dit type dient om bepaalde eigenschappen binnen OpenERP te onderscheiden:\r\n"
+"weergave bevat geen boekingen; consolidatierekeningen zijn rekeningen die\r\n"
+"onderliggende rekeningen kunnen hebben voor het consolideren van meerdere\r\n"
+"firma's; te betalen/te ontvangen zijn centralisatierekeningen (voor "
+"debet/creditberekeningen),\r\n"
+"gesloten dient voor niet meer gebruikte rekeningen."
#. module: account
#: model:ir.ui.menu,name:account.menu_account_end_year_treatments
msgid "End of Year Treatments"
-msgstr ""
+msgstr "Verwerkingen einde jaar"
#. module: account
#: model:ir.ui.menu,name:account.menu_generic_report
msgid "Generic Reports"
-msgstr ""
+msgstr "Generieke rapporten"
#. module: account
#: wizard_field:account.automatic.reconcile,init,power:0
msgid "Power"
-msgstr ""
+msgstr "Kracht"
#. module: account
#: wizard_view:account.analytic.line,init:0
msgid "Account Analytic Lines Analysis"
-msgstr ""
+msgstr "Analyse analytische lijnen"
#. module: account
#: rml:account.invoice:0
msgid "Price"
-msgstr ""
+msgstr "Prijs"
#. module: account
#: rml:account.analytic.account.journal:0
#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "-"
-msgstr ""
+msgstr "-"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "asgfas"
-msgstr ""
+msgstr "asgfas"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_analytic_account_tree2
@@ -2696,50 +2755,50 @@ msgstr ""
#: model:ir.ui.menu,name:account.account_analytic_def_chart
#: model:ir.ui.menu,name:account.menu_action_analytic_account_tree2
msgid "Analytic Chart of Accounts"
-msgstr ""
+msgstr "Analytisch boekhoudplan"
#. module: account
#: wizard_view:account.analytic.line,init:0
msgid "View Account Analytic Lines"
-msgstr ""
+msgstr "Analytische rekeninglijnen bekijken"
#. module: account
#: wizard_view:account.move.validate,init:0
msgid "Select Period and Journal for Validation"
-msgstr ""
+msgstr "Periode en journaal voor validatie kiezen"
#. module: account
#: field:account.invoice,number:0
msgid "Invoice Number"
-msgstr ""
+msgstr "Factuurnummer"
#. module: account
#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: field:account.period,date_stop:0
msgid "End of Period"
-msgstr ""
+msgstr "Einde periode"
#. module: account
#: wizard_button:populate_statement_from_inv,go,finish:0
msgid "O_k"
-msgstr ""
+msgstr "O_k"
#. module: account
#: field:account.invoice,amount_untaxed:0
msgid "Untaxed"
-msgstr ""
+msgstr "Onbelast"
#. module: account
#: model:ir.actions.report.xml,name:account.account_analytic_account_inverted_balance
#: model:ir.actions.wizard,name:account.account_analytic_account_inverted_balance_report
msgid "Inverted Analytic Balance"
-msgstr ""
+msgstr "Omgekeerde analytische Balans"
#. module: account
#: field:account.tax,applicable_type:0
#: field:account.tax.template,applicable_type:0
msgid "Applicable Type"
-msgstr ""
+msgstr "Van toepassing zijnde type"
#. module: account
#: field:account.invoice,reference:0
diff --git a/addons/account/i18n/pt_BR.po b/addons/account/i18n/pt_BR.po
index 5a82c6d0513..ebd5704f956 100644
--- a/addons/account/i18n/pt_BR.po
+++ b/addons/account/i18n/pt_BR.po
@@ -1,19 +1,19 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * account
+# * account
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-24 00:57+0000\n"
-"Last-Translator: Pedro_Maschio \n"
+"PO-Revision-Date: 2010-07-27 20:17+0000\n"
+"Last-Translator: Leandro Chaves \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-06-22 04:07+0000\n"
+"X-Launchpad-Export-Date: 2010-07-28 03:47+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -92,7 +92,8 @@ msgid "Unreconciled entries"
msgstr "Lançamentos não reconciliados"
#. module: account
-#: field:account.invoice.tax,base_code_id:0 field:account.tax,base_code_id:0
+#: field:account.invoice.tax,base_code_id:0
+#: field:account.tax,base_code_id:0
#: field:account.tax.template,base_code_id:0
msgid "Base Code"
msgstr "Código base"
@@ -124,7 +125,8 @@ msgid "Residual"
msgstr "Residual"
#. module: account
-#: field:account.tax,base_sign:0 field:account.tax,ref_base_sign:0
+#: field:account.tax,base_sign:0
+#: field:account.tax,ref_base_sign:0
#: field:account.tax.template,base_sign:0
#: field:account.tax.template,ref_base_sign:0
msgid "Base Code Sign"
@@ -188,8 +190,8 @@ msgid "Move line select"
msgstr "Mover a linha selecionada"
#. module: account
-#: rml:account.journal.period.print:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.journal.period.print:0
+#: rml:account.tax.code.entries:0
msgid "Entry label"
msgstr "Etiqueta de lançamento"
@@ -204,12 +206,14 @@ msgid "Period Sum"
msgstr "Soma do período"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Compute Code (if type=code)"
msgstr "Computar Código (se tipo=código)"
#. module: account
-#: view:account.move:0 view:account.move.line:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "Account Entry Line"
msgstr "Linha de lançamento de conta"
@@ -226,10 +230,12 @@ msgstr "Lançamentos recorrentes"
#. module: account
#: field:account.analytic.line,amount:0
#: field:account.bank.statement.line,amount:0
-#: field:account.bank.statement.reconcile.line,amount:0 rml:account.invoice:0
-#: field:account.invoice.tax,amount:0 field:account.move,amount:0
-#: field:account.tax,amount:0 field:account.tax.template,amount:0
-#: xsl:account.transfer:0
+#: field:account.bank.statement.reconcile.line,amount:0
+#: rml:account.invoice:0
+#: field:account.invoice.tax,amount:0
+#: field:account.move,amount:0
+#: field:account.tax,amount:0
+#: field:account.tax.template,amount:0
msgid "Amount"
msgstr "Montante"
@@ -269,7 +275,8 @@ msgstr ""
"codificação mais rápida em cada diário."
#. module: account
-#: help:account.invoice,date_due:0 help:account.invoice,payment_term:0
+#: help:account.invoice,date_due:0
+#: help:account.invoice,payment_term:0
msgid ""
"If you use payment terms, the due date will be computed automatically at the "
"generation of accounting entries. If you keep the payment term and the due "
@@ -283,19 +290,20 @@ msgstr ""
"exemplo 30/60/90 dias da data."
#. module: account
-#: selection:account.tax,type:0 selection:account.tax.template,type:0
+#: selection:account.tax,type:0
+#: selection:account.tax.template,type:0
msgid "Fixed"
msgstr "Fixo"
#. module: account
-#: model:ir.actions.report.xml,name:account.account_overdue view:res.company:0
+#: model:ir.actions.report.xml,name:account.account_overdue
+#: view:res.company:0
msgid "Overdue Payments"
msgstr "Pagamentos atrasados"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
#: wizard_view:account.analytic.account.analytic.check.report,init:0
-#: wizard_view:account.analytic.account.balance.report,init:0
#: wizard_view:account.analytic.account.cost_ledger.report,init:0
#: wizard_view:account.analytic.account.inverted.balance.report,init:0
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
@@ -304,7 +312,8 @@ msgid "Select period"
msgstr "Selecione o período"
#. module: account
-#: field:account.invoice,origin:0 field:account.invoice.line,origin:0
+#: field:account.invoice,origin:0
+#: field:account.invoice.line,origin:0
msgid "Origin"
msgstr "Origem"
@@ -334,7 +343,9 @@ msgid "Delta Debit"
msgstr "Diferença de Débito"
#. module: account
-#: rml:account.invoice:0 field:account.invoice,amount_tax:0
+#: model:account.account.type,name:account.account_type_tax
+#: rml:account.invoice:0
+#: field:account.invoice,amount_tax:0
#: field:account.move.line,account_tax_id:0
msgid "Tax"
msgstr "Imposto"
@@ -347,18 +358,22 @@ msgstr "Trans. Débito"
#. module: account
#: field:account.analytic.line,account_id:0
#: field:account.invoice.line,account_analytic_id:0
+#: wizard_field:account.invoice.pay,addendum,analytic_id:0
#: field:account.move.line,analytic_account_id:0
+#: wizard_field:account.move.line.reconcile,addendum,analytic_id:0
#: field:report.hr.timesheet.invoice.journal,account_id:0
msgid "Analytic Account"
msgstr "Conta analítica"
#. module: account
-#: field:account.tax,child_depend:0 field:account.tax.template,child_depend:0
+#: field:account.tax,child_depend:0
+#: field:account.tax.template,child_depend:0
msgid "Tax on Children"
msgstr "Imposto nas sub-contas"
#. module: account
-#: rml:account.central.journal:0 rml:account.general.journal:0
+#: rml:account.central.journal:0
+#: rml:account.general.journal:0
#: field:account.journal,name:0
msgid "Journal Name"
msgstr "Nome do diário"
@@ -426,8 +441,11 @@ msgid "Contra"
msgstr "Contra"
#. module: account
-#: field:account.analytic.account,state:0 field:account.bank.statement,state:0
-#: field:account.invoice,state:0 view:account.move:0 view:account.move.line:0
+#: field:account.analytic.account,state:0
+#: field:account.bank.statement,state:0
+#: field:account.invoice,state:0
+#: view:account.move:0
+#: view:account.move.line:0
#: view:account.subscription:0
msgid "State"
msgstr "Estado"
@@ -439,7 +457,8 @@ msgid "Unpaid Supplier Refunds"
msgstr "Reembolsos a fornecedores não pagos"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Special Computation"
msgstr "Cálculo especial"
@@ -462,8 +481,10 @@ msgid "Disc.(%)"
msgstr "Desc.(%)"
#. module: account
-#: rml:account.general.ledger:0 field:account.model,ref:0
-#: field:account.move,ref:0 rml:account.overdue:0
+#: rml:account.general.ledger:0
+#: field:account.model,ref:0
+#: field:account.move,ref:0
+#: rml:account.overdue:0
#: field:account.subscription,ref:0
msgid "Ref"
msgstr "Ref"
@@ -660,9 +681,13 @@ msgid "Sub-Total :"
msgstr "Subtotal:"
#. module: account
-#: field:account.analytic.account,line_ids:0 view:account.analytic.line:0
+#: field:account.analytic.account,line_ids:0
+#: view:account.analytic.line:0
+#: code:addons/account/project/wizard/wizard_account_analytic_line.py:0
#: model:ir.actions.act_window,name:account.action_account_analytic_line_form
+#: model:ir.actions.act_window,name:account.action_account_tree1
#: model:ir.ui.menu,name:account.next_id_41
+#, python-format
msgid "Analytic Entries"
msgstr "Lançamentos analíticos"
@@ -677,6 +702,7 @@ msgid "Associated Partner"
msgstr "Parceiro Associado"
#. module: account
+#: view:account.invoice:0
#: field:account.invoice,comment:0
msgid "Additional Information"
msgstr "Informação Adicional"
@@ -692,7 +718,8 @@ msgid "Select the Period for Analysis"
msgstr "Selecione o Período para Análise"
#. module: account
-#: field:account.tax,ref_tax_sign:0 field:account.tax,tax_sign:0
+#: field:account.tax,ref_tax_sign:0
+#: field:account.tax,tax_sign:0
#: field:account.tax.template,ref_tax_sign:0
#: field:account.tax.template,tax_sign:0
msgid "Tax Code Sign"
@@ -724,7 +751,8 @@ msgid "Field Name"
msgstr "Nome do Campo"
#. module: account
-#: field:account.tax.code,sign:0 field:account.tax.code.template,sign:0
+#: field:account.tax.code,sign:0
+#: field:account.tax.code.template,sign:0
msgid "Sign for parent"
msgstr "Sinal para conta-pai"
@@ -734,7 +762,8 @@ msgid "End of Year Entries Journal"
msgstr "Diário de lançamentos do fim do ano"
#. module: account
-#: view:product.product:0 view:product.template:0
+#: view:product.product:0
+#: view:product.template:0
msgid "Purchase Properties"
msgstr "Propriedades da Compra"
@@ -754,9 +783,12 @@ msgid "Move Lines Created."
msgstr "Foram criadas linhas de movimento"
#. module: account
-#: field:account.fiscalyear,state:0 field:account.journal.period,state:0
-#: field:account.move,state:0 field:account.move.line,state:0
-#: field:account.period,state:0 field:account.subscription,state:0
+#: field:account.fiscalyear,state:0
+#: field:account.journal.period,state:0
+#: field:account.move,state:0
+#: field:account.move.line,state:0
+#: field:account.period,state:0
+#: field:account.subscription,state:0
msgid "Status"
msgstr "Posição"
@@ -913,8 +945,10 @@ msgstr "Selecionar plano de contas"
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: field:account.analytic.line,unit_amount:0 rml:account.invoice:0
-#: field:account.invoice.line,quantity:0 field:account.model.line,quantity:0
+#: field:account.analytic.line,unit_amount:0
+#: rml:account.invoice:0
+#: field:account.invoice.line,quantity:0
+#: field:account.model.line,quantity:0
#: field:account.move.line,quantity:0
msgid "Quantity"
msgstr "Quantidade"
@@ -957,13 +991,16 @@ msgstr "Fatura analítica"
#: wizard_field:account.automatic.reconcile,init,period_id:0
#: field:account.bank.statement,period_id:0
#: wizard_field:account.central.journal.report,init,period_id:0
-#: view:account.fiscalyear:0 rml:account.general.journal:0
+#: view:account.fiscalyear:0
+#: rml:account.general.journal:0
#: wizard_field:account.general.journal.report,init,period_id:0
#: wizard_field:account.invoice.pay,init,period_id:0
-#: field:account.journal.period,period_id:0 field:account.move,period_id:0
+#: field:account.journal.period,period_id:0
+#: field:account.move,period_id:0
#: wizard_field:account.move.journal,init,period_id:0
#: field:account.move.line,period_id:0
-#: wizard_field:account.move.validate,init,period_id:0 view:account.period:0
+#: wizard_field:account.move.validate,init,period_id:0
+#: view:account.period:0
#: wizard_field:account.print.journal.report,init,period_id:0
#: field:account.subscription,period_nbr:0
msgid "Period"
@@ -985,7 +1022,8 @@ msgid "Net Total:"
msgstr "Total líquido:"
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,name:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,name:0
#: field:account.fiscal.position.account,position_id:0
#: field:account.fiscal.position.account.template,position_id:0
#: field:account.fiscal.position.tax,position_id:0
@@ -1109,7 +1147,8 @@ msgid "Fiscal Position Templates"
msgstr "Modelo de posição fiscal"
#. module: account
-#: rml:account.invoice:0 field:account.invoice.line,price_unit:0
+#: rml:account.invoice:0
+#: field:account.invoice.line,price_unit:0
msgid "Unit Price"
msgstr "Preço unitário"
@@ -1267,7 +1306,8 @@ msgid "Not reconciled transactions"
msgstr "Transação não conciliada"
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,tax_ids:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,tax_ids:0
#: field:account.fiscal.position.template,tax_ids:0
msgid "Tax Mapping"
msgstr "Mapeamento de Impostos"
@@ -1289,7 +1329,8 @@ msgid "Write-Off account"
msgstr "Conta de amortização"
#. module: account
-#: field:account.model.line,model_id:0 field:account.subscription,model_id:0
+#: field:account.model.line,model_id:0
+#: field:account.subscription,model_id:0
msgid "Model"
msgstr "Modelo"
@@ -1315,9 +1356,11 @@ msgid "Select invoices you want to pay and manages advances"
msgstr "Selecionar as faturas que você quer pagar e adiantamentos a fazer"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: model:account.account.type,name:account.account_type_root
-#: selection:account.analytic.account,type:0 field:account.journal,view_id:0
+#: selection:account.analytic.account,type:0
+#: field:account.journal,view_id:0
msgid "View"
msgstr "Visualizar"
@@ -1389,7 +1432,8 @@ msgstr "Tipos de Conta"
#: wizard_field:account.central.journal.report,init,journal_id:0
#: wizard_field:account.general.journal.report,init,journal_id:0
#: field:account.invoice,journal_id:0
-#: field:account.journal.period,journal_id:0 field:account.model,journal_id:0
+#: field:account.journal.period,journal_id:0
+#: field:account.model,journal_id:0
#: field:account.move,journal_id:0
#: wizard_field:account.move.bank.reconcile,init,journal_id:0
#: wizard_field:account.move.journal,init,journal_id:0
@@ -1405,7 +1449,8 @@ msgid "Journal"
msgstr "Diário"
#. module: account
-#: field:account.account,child_id:0 field:account.analytic.account,child_ids:0
+#: field:account.account,child_id:0
+#: field:account.analytic.account,child_ids:0
msgid "Child Accounts"
msgstr "Sub-contas"
@@ -1431,7 +1476,8 @@ msgid "Statement reconcile line"
msgstr "Linha de reconciliação do Demonstrativo"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Keep empty to use the income account"
msgstr "Manter vazio para usar a conta de receita"
@@ -1440,6 +1486,9 @@ msgstr "Manter vazio para usar a conta de receita"
#: field:account.bank.statement.reconcile,line_new_ids:0
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
+#: code:addons/account/wizard/wizard_pay_invoice.py:0
+#: code:addons/account/wizard/wizard_reconcile.py:0
+#, python-format
msgid "Write-Off"
msgstr "Baixa ou exclusão"
@@ -1560,7 +1609,8 @@ msgid "Account n°"
msgstr "Conta n°"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Keep empty to use the expense account"
msgstr "Deixe vazio para usar a conta de despesas"
@@ -1570,7 +1620,8 @@ msgid "Account to reconcile"
msgstr "Conta a reconciliar"
#. module: account
-#: rml:account.invoice:0 field:account.model.line,partner_id:0
+#: rml:account.invoice:0
+#: field:account.model.line,partner_id:0
#: field:account.move.line,partner_id:0
msgid "Partner Ref."
msgstr "Código parceiro"
@@ -1582,12 +1633,14 @@ msgid "Receivable and Payable Accounts"
msgstr "Contas a Pagar e Receber"
#. module: account
-#: view:account.subscription:0 field:account.subscription,lines_id:0
+#: view:account.subscription:0
+#: field:account.subscription,lines_id:0
msgid "Subscription Lines"
msgstr "Linhas de inscrição"
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Purchase"
@@ -1751,7 +1804,8 @@ msgid "Period length (days)"
msgstr "Duração do Período (dias)"
#. module: account
-#: selection:account.payment.term.line,value:0 selection:account.tax,type:0
+#: selection:account.payment.term.line,value:0
+#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "Percent"
msgstr "Percentual"
@@ -1762,7 +1816,8 @@ msgid "Charts"
msgstr "Planos"
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Sale"
@@ -1838,9 +1893,11 @@ msgstr "x Diário de Notas de Crédito gastas"
#. module: account
#: field:account.analytic.journal,type:0
-#: field:account.bank.statement.line,type:0 field:account.invoice,type:0
-#: field:account.journal,type:0 field:account.move,type:0
-#: field:account.move.reconcile,type:0 xsl:account.transfer:0
+#: field:account.bank.statement.line,type:0
+#: field:account.invoice,type:0
+#: field:account.journal,type:0
+#: field:account.move,type:0
+#: field:account.move.reconcile,type:0
msgid "Type"
msgstr "Tipo"
@@ -1988,7 +2045,8 @@ msgid "Journal-Period Name"
msgstr "Diário-Nome do período"
#. module: account
-#: field:account.tax.code,name:0 field:account.tax.code.template,name:0
+#: field:account.tax.code,name:0
+#: field:account.tax.code.template,name:0
msgid "Tax Case Name"
msgstr "Nome do caso da taxa"
@@ -2006,7 +2064,8 @@ msgstr ""
#. module: account
#: field:account.bank.statement.line,partner_id:0
#: field:account.bank.statement.reconcile,partner_id:0
-#: rml:account.general.ledger:0 field:account.invoice,partner_id:0
+#: rml:account.general.ledger:0
+#: field:account.invoice,partner_id:0
#: field:account.move,partner_id:0
#: wizard_field:account.partner.balance.report,init,result_selection:0
#: wizard_field:account.third_party_ledger.report,init,result_selection:0
@@ -2080,8 +2139,10 @@ msgstr "Passado"
#: field:account.bank.statement,currency:0
#: field:account.bank.statement.reconcile,total_currency:0
#: field:account.bank.statement.reconcile,total_second_currency:0
-#: rml:account.general.ledger:0 field:account.invoice,currency_id:0
-#: field:account.journal,currency:0 field:account.model.line,currency_id:0
+#: rml:account.general.ledger:0
+#: field:account.invoice,currency_id:0
+#: field:account.journal,currency:0
+#: field:account.model.line,currency_id:0
#: field:account.move.line,currency_id:0
msgid "Currency"
msgstr "Moeda"
@@ -2119,7 +2180,8 @@ msgid "Analytic Entry"
msgstr "Lançamento analítico"
#. module: account
-#: view:res.company:0 field:res.company,overdue_msg:0
+#: view:res.company:0
+#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
msgstr "Mensagem para Pagamentos Atrasados"
@@ -2171,7 +2233,8 @@ msgid "Detail"
msgstr "Detalhe"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Consolidation"
msgstr "Consolidação"
@@ -2268,17 +2331,22 @@ msgid "The account basis of the tax declaration."
msgstr "A base contábil da declaração de imposto."
#. module: account
-#: rml:account.analytic.account.journal:0 field:account.analytic.line,date:0
+#: rml:account.analytic.account.journal:0
+#: field:account.analytic.line,date:0
#: field:account.bank.statement,date:0
#: field:account.bank.statement.line,date:0
-#: field:account.bank.statement.reconcile,name:0 rml:account.general.ledger:0
+#: field:account.bank.statement.reconcile,name:0
+#: rml:account.general.ledger:0
#: selection:account.general.ledger.report,checktype,sortbydate:0
-#: rml:account.journal.period.print:0 field:account.move,date:0
+#: rml:account.journal.period.print:0
+#: field:account.move,date:0
+#: wizard_field:account.move.line.reconcile,addendum,date_p:0
#: rml:account.overdue:0
#: wizard_field:account.subscription.generate,init,date:0
-#: field:account.subscription.line,date:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
-#: xsl:account.transfer:0
+#: field:account.subscription.line,date:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Date"
msgstr "Data"
@@ -2294,7 +2362,8 @@ msgid "Unreconcile"
msgstr "Não concilidado"
#. module: account
-#: field:account.tax,type:0 field:account.tax.template,type:0
+#: field:account.tax,type:0
+#: field:account.tax.template,type:0
msgid "Tax Type"
msgstr "Tipo de taxa"
@@ -2304,7 +2373,8 @@ msgid "Statement Entries"
msgstr "Lançamentos do Demonstrativo"
#. module: account
-#: field:account.analytic.line,user_id:0 field:account.journal,user_id:0
+#: field:account.analytic.line,user_id:0
+#: field:account.journal,user_id:0
msgid "User"
msgstr "Usuário"
@@ -2394,15 +2464,18 @@ msgid "Date End"
msgstr "Data de término"
#. module: account
-#: view:account.bank.statement:0 field:account.move.reconcile,line_id:0
+#: view:account.bank.statement:0
+#: field:account.move.reconcile,line_id:0
#: model:ir.actions.act_window,name:account.action_move_line_search
+#: model:ir.actions.act_window,name:account.action_move_line_select
#: model:ir.actions.act_window,name:account.action_move_line_tree1
#: model:ir.ui.menu,name:account.menu_action_move_line_search
msgid "Entry Lines"
msgstr "Linhas de lançamentos"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Applicable Code (if type=code)"
msgstr "Código aplicável (se tipo=código)"
@@ -2491,9 +2564,11 @@ msgstr "De contas analíticas, criar fatura."
#: wizard_button:account.general.journal.report,init,end:0
#: wizard_button:account.general.ledger.report,account_selection,end:0
#: wizard_button:account.general.ledger.report,checktype,end:0
-#: view:account.invoice:0 wizard_button:account.invoice.pay,addendum,end:0
+#: view:account.invoice:0
+#: wizard_button:account.invoice.pay,addendum,end:0
#: wizard_button:account.invoice.pay,init,end:0
-#: wizard_button:account.invoice.refund,init,end:0 view:account.move:0
+#: wizard_button:account.invoice.refund,init,end:0
+#: view:account.move:0
#: wizard_button:account.move.bank.reconcile,init,end:0
#: wizard_button:account.move.journal,init,end:0
#: wizard_button:account.move.line.reconcile,addendum,end:0
@@ -2512,7 +2587,8 @@ msgstr "De contas analíticas, criar fatura."
#: wizard_button:account.third_party_ledger.report,init,end:0
#: wizard_button:account.vat.declaration,init,end:0
#: wizard_button:account_use_models,init_form,end:0
-#: view:wizard.company.setup:0 view:wizard.multi.charts.accounts:0
+#: view:wizard.company.setup:0
+#: view:wizard.multi.charts.accounts:0
msgid "Cancel"
msgstr "Cancelar"
@@ -2522,8 +2598,10 @@ msgid "Acc. Type Name"
msgstr "Nome Tipo de Conta"
#. module: account
-#: help:account.tax,base_code_id:0 help:account.tax,ref_base_code_id:0
-#: help:account.tax,ref_tax_code_id:0 help:account.tax,tax_code_id:0
+#: help:account.tax,base_code_id:0
+#: help:account.tax,ref_base_code_id:0
+#: help:account.tax,ref_tax_code_id:0
+#: help:account.tax,tax_code_id:0
#: help:account.tax.template,base_code_id:0
#: help:account.tax.template,ref_base_code_id:0
#: help:account.tax.template,ref_tax_code_id:0
@@ -2537,7 +2615,8 @@ msgid "Litigation"
msgstr "Litígio"
#. module: account
-#: view:account.move.line:0 wizard_view:account.move.validate,init:0
+#: view:account.move.line:0
+#: wizard_view:account.move.validate,init:0
#: view:account.payment.term:0
msgid "Information"
msgstr "Informação"
@@ -2582,6 +2661,8 @@ msgstr ""
#. module: account
#: rml:account.analytic.account.journal:0
+#: wizard_view:account.invoice.pay,addendum:0
+#: wizard_view:account.move.line.reconcile,addendum:0
#: model:ir.ui.menu,name:account.next_id_40
#: model:process.node,name:account.process_node_analytic0
#: model:process.node,name:account.process_node_analyticcost0
@@ -2654,7 +2735,8 @@ msgid "Price"
msgstr "Preço"
#. module: account
-#: rml:account.analytic.account.journal:0 rml:account.third_party_ledger:0
+#: rml:account.analytic.account.journal:0
+#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "-"
msgstr "-"
@@ -2689,6 +2771,7 @@ msgid "Invoice Number"
msgstr "Número da Fatura"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: field:account.period,date_stop:0
msgid "End of Period"
msgstr "Fim do Período"
@@ -2721,13 +2804,17 @@ msgid "Invoice Reference"
msgstr "Referencia fatura"
#. module: account
-#: field:account.account,name:0 field:account.account.template,name:0
+#: field:account.account,name:0
+#: field:account.account.template,name:0
#: rml:account.analytic.account.inverted.balance:0
#: field:account.bank.statement,name:0
#: field:account.bank.statement.line,name:0
-#: field:account.chart.template,name:0 field:account.config.wizard,name:0
-#: field:account.model.line,name:0 field:account.move,name:0
-#: field:account.move.line,name:0 field:account.move.reconcile,name:0
+#: field:account.chart.template,name:0
+#: field:account.config.wizard,name:0
+#: field:account.model.line,name:0
+#: field:account.move,name:0
+#: field:account.move.line,name:0
+#: field:account.move.reconcile,name:0
#: field:account.subscription,name:0
msgid "Name"
msgstr "Nome"
@@ -2770,7 +2857,8 @@ msgstr ""
"dependentes/derivados."
#. module: account
-#: field:account.journal.column,view_id:0 view:account.journal.view:0
+#: field:account.journal.column,view_id:0
+#: view:account.journal.view:0
#: field:account.journal.view,name:0
#: model:ir.model,name:account.model_account_journal_view
msgid "Journal View"
@@ -2863,11 +2951,14 @@ msgid "Full Account Name"
msgstr "Nome Completo da Conta"
#. module: account
-#: rml:account.account.balance:0 rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.account.balance:0
+#: rml:account.analytic.account.analytic.check:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.vat.declaration:0
msgid "1cm 27.7cm 20cm 27.7cm"
msgstr "1cm 27.7cm 20cm 27.7cm"
@@ -2888,7 +2979,9 @@ msgid "Document: Customer account statement"
msgstr "Documento: demonstrativo da conta cliente"
#. module: account
-#: view:product.product:0 view:product.template:0 view:res.partner:0
+#: view:product.product:0
+#: view:product.template:0
+#: view:res.partner:0
msgid "Accounting"
msgstr "Contas"
@@ -2921,9 +3014,11 @@ msgstr "Linhas de lançamento"
#: wizard_view:account.move.line.reconcile,init_full:0
#: wizard_view:account.move.line.reconcile,init_partial:0
#: wizard_view:account.move.line.reconcile.select,init:0
+#: code:addons/account/wizard/wizard_reconcile_select.py:0
#: model:ir.ui.menu,name:account.next_id_20
#: model:process.node,name:account.process_node_reconciliation0
#: model:process.node,name:account.process_node_supplierreconciliation0
+#, python-format
msgid "Reconciliation"
msgstr "Conciliação"
@@ -2933,8 +3028,10 @@ msgid "Centralisation"
msgstr "Centralização"
#. module: account
-#: field:account.invoice.tax,tax_code_id:0 field:account.tax,description:0
-#: field:account.tax,tax_code_id:0 field:account.tax.template,tax_code_id:0
+#: field:account.invoice.tax,tax_code_id:0
+#: field:account.tax,description:0
+#: field:account.tax,tax_code_id:0
+#: field:account.tax.template,tax_code_id:0
#: model:ir.model,name:account.model_account_tax_code
msgid "Tax Code"
msgstr "Código da taxa"
@@ -2977,12 +3074,13 @@ msgstr ""
"mais o prazo de pagamento\""
#. module: account
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
msgid "Situation"
msgstr "Situação"
#. module: account
-#: rml:account.invoice:0 xsl:account.transfer:0
+#: rml:account.invoice:0
msgid "Document"
msgstr "Documento"
@@ -3022,7 +3120,8 @@ msgid "Cancel selected invoices"
msgstr "Cancelar faturas selecionadas"
#. module: account
-#: view:account.analytic.journal:0 field:account.analytic.line,journal_id:0
+#: view:account.analytic.journal:0
+#: field:account.analytic.line,journal_id:0
#: field:account.journal,analytic_journal_id:0
#: model:ir.actions.report.xml,name:account.analytic_journal_print
#: model:ir.actions.wizard,name:account.account_analytic_account_journal_report
@@ -3031,6 +3130,8 @@ msgstr "Diário analítico"
#. module: account
#: rml:account.general.ledger:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Entry Label"
msgstr "Aba de lançamento"
@@ -3045,23 +3146,28 @@ msgid "("
msgstr "("
#. module: account
-#: view:account.invoice:0 view:account.period:0 view:account.subscription:0
+#: view:account.invoice:0
+#: view:account.period:0
+#: view:account.subscription:0
msgid "Set to Draft"
msgstr "Definir como Provisório"
#. module: account
-#: help:account.invoice,origin:0 help:account.invoice.line,origin:0
+#: help:account.invoice,origin:0
+#: help:account.invoice.line,origin:0
msgid "Reference of the document that produced this invoice."
msgstr "Referencia ao documento que produziu esta fatura."
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: selection:account.aged.trial.balance,init,result_selection:0
msgid "Payable"
msgstr "A Pagar"
#. module: account
-#: rml:account.invoice:0 field:account.invoice.tax,base:0
+#: rml:account.invoice:0
+#: field:account.invoice.tax,base:0
msgid "Base"
msgstr "Base"
@@ -3071,7 +3177,8 @@ msgid "Model Name"
msgstr "Nome do modelo"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Others"
msgstr "Outros"
@@ -3081,13 +3188,15 @@ msgid "8"
msgstr "8"
#. module: account
-#: view:account.invoice:0 view:account.move:0
+#: view:account.invoice:0
+#: view:account.move:0
#: wizard_button:account.move.validate,init,validate:0
msgid "Validate"
msgstr "Validar"
#. module: account
-#: view:account.model:0 field:account.model,legend:0
+#: view:account.model:0
+#: field:account.model,legend:0
msgid "Legend"
msgstr "Legenda"
@@ -3102,14 +3211,17 @@ msgid "account.move.line.select"
msgstr "account.move.line.select"
#. module: account
-#: view:account.account:0 rml:account.account.balance:0
+#: view:account.account:0
+#: rml:account.account.balance:0
#: wizard_field:account.account.balance.report,account_selection,Account_list:0
#: wizard_field:account.automatic.reconcile,init,writeoff_acc_id:0
#: field:account.bank.statement.line,account_id:0
#: field:account.bank.statement.reconcile.line,account_id:0
-#: field:account.invoice,account_id:0 field:account.invoice.line,account_id:0
+#: field:account.invoice,account_id:0
+#: field:account.invoice.line,account_id:0
#: field:account.journal,account_control_ids:0
-#: field:account.model.line,account_id:0 field:account.move.line,account_id:0
+#: field:account.model.line,account_id:0
+#: field:account.move.line,account_id:0
#: wizard_field:account.move.line.reconcile.select,init,account_id:0
#: wizard_field:account.move.line.unreconcile.select,init,account_id:0
#: model:ir.model,name:account.model_account_account
@@ -3130,9 +3242,12 @@ msgid "By Date and Period"
msgstr "Por data e período"
#. module: account
-#: view:account.account:0 view:account.account.template:0
-#: view:account.bank.statement:0 field:account.bank.statement.line,note:0
-#: field:account.fiscal.position,note:0 view:account.invoice.line:0
+#: view:account.account:0
+#: view:account.account.template:0
+#: view:account.bank.statement:0
+#: field:account.bank.statement.line,note:0
+#: field:account.fiscal.position,note:0
+#: view:account.invoice.line:0
#: field:account.invoice.line,note:0
msgid "Notes"
msgstr "Observações"
@@ -3147,7 +3262,8 @@ msgstr ""
"pagamentos."
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
#: field:account.invoice.line,invoice_line_tax_id:0
#: model:ir.actions.act_window,name:account.action_tax_form
#: model:ir.ui.menu,name:account.menu_action_tax_form
@@ -3172,15 +3288,21 @@ msgid "Statement encoding produces payment entries"
msgstr "Codificação de demonstrativos para lançamentos de pagamento"
#. module: account
-#: field:account.account,code:0 rml:account.account.balance:0
-#: field:account.account.template,code:0 field:account.account.type,code:0
+#: field:account.account,code:0
+#: rml:account.account.balance:0
+#: field:account.account.template,code:0
+#: field:account.account.type,code:0
#: rml:account.analytic.account.analytic.check:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.analytic.account.journal:0 field:account.analytic.line,code:0
-#: field:account.config.wizard,code:0 field:account.fiscalyear,code:0
-#: rml:account.general.journal:0 field:account.journal,code:0
-#: rml:account.partner.balance:0 field:account.period,code:0
+#: rml:account.analytic.account.journal:0
+#: field:account.analytic.line,code:0
+#: field:account.config.wizard,code:0
+#: field:account.fiscalyear,code:0
+#: rml:account.general.journal:0
+#: field:account.journal,code:0
+#: rml:account.partner.balance:0
+#: field:account.period,code:0
msgid "Code"
msgstr "Código"
@@ -3190,7 +3312,8 @@ msgid "Financial Management"
msgstr "Administração financeira"
#. module: account
-#: selection:account.account.type,close_method:0 selection:account.tax,type:0
+#: selection:account.account.type,close_method:0
+#: selection:account.tax,type:0
#: selection:account.tax.template,type:0
msgid "None"
msgstr "Nada"
@@ -3202,6 +3325,7 @@ msgid "Generate Fiscal Year Opening Entries"
msgstr "Gerar Lançamentos Iniciais de Abertura do Ano Fiscal"
#. module: account
+#: view:account.move.reconcile:0
#: model:ir.actions.wizard,name:account.wizard_reconcile
msgid "Reconcile Entries"
msgstr "Reconciliar lançamentos"
@@ -3217,7 +3341,8 @@ msgid "Additionnal Information"
msgstr "Informação adicional"
#. module: account
-#: field:account.tax,name:0 field:account.tax.template,name:0
+#: field:account.tax,name:0
+#: field:account.tax.template,name:0
#: rml:account.vat.declaration:0
msgid "Tax Name"
msgstr "Nome da taxa"
@@ -3294,7 +3419,8 @@ msgid "Partner Balance"
msgstr "Saldo do parceiro"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Third Party Ledger"
msgstr "Ficha de terceiros"
@@ -3309,7 +3435,8 @@ msgstr ""
#. module: account
#: selection:account.tax,applicable_type:0
-#: field:account.tax,python_applicable:0 field:account.tax,python_compute:0
+#: field:account.tax,python_applicable:0
+#: field:account.tax,python_compute:0
#: selection:account.tax,type:0
#: selection:account.tax.template,applicable_type:0
#: field:account.tax.template,python_applicable:0
@@ -3348,7 +3475,8 @@ msgid "Import invoice"
msgstr "Importar fatura"
#. module: account
-#: view:account.invoice:0 view:wizard.company.setup:0
+#: view:account.invoice:0
+#: view:wizard.company.setup:0
#: view:wizard.multi.charts.accounts:0
msgid "Create"
msgstr "Criado"
@@ -3364,7 +3492,8 @@ msgid "Invoice line"
msgstr "Linha da fatura"
#. module: account
-#: field:account.account,shortcut:0 field:account.account.template,shortcut:0
+#: field:account.account,shortcut:0
+#: field:account.account.template,shortcut:0
msgid "Shortcut"
msgstr "Atalho"
@@ -3393,13 +3522,15 @@ msgstr ""
"moeda"
#. module: account
-#: field:account.tax,parent_id:0 field:account.tax.template,parent_id:0
+#: field:account.tax,parent_id:0
+#: field:account.tax.template,parent_id:0
msgid "Parent Tax Account"
msgstr "Conta-pai de Impostos"
#. module: account
#: field:account.account,user_type:0
-#: field:account.account.template,user_type:0 view:account.account.type:0
+#: field:account.account.template,user_type:0
+#: view:account.account.type:0
#: field:account.analytic.account,type:0
#: model:ir.model,name:account.model_account_account_type
msgid "Account Type"
@@ -3435,7 +3566,8 @@ msgid "Central Journal"
msgstr "Diário Central"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Balance brought forward"
msgstr "Saldo transferido de para"
@@ -3511,7 +3643,8 @@ msgid "Journal code"
msgstr "Código do diário"
#. module: account
-#: wizard_button:account.fiscalyear.close,init,close:0 view:account.model:0
+#: wizard_button:account.fiscalyear.close,init,close:0
+#: view:account.model:0
msgid "Create entries"
msgstr "Criar lançamentos"
@@ -3549,7 +3682,6 @@ msgstr ""
"Esta forma de pagamento será usada em vez da padrão para o parceiro atual"
#. module: account
-#: wizard_field:account.invoice.pay,addendum,comment:0
#: wizard_field:account.invoice.pay,init,name:0
msgid "Entry Name"
msgstr "Nome do lançamento"
@@ -3570,11 +3702,14 @@ msgstr ""
"(VAT) relativos a este código de imposto apareçam nas faturas"
#. module: account
-#: field:account.account.type,sequence:0 field:account.invoice.tax,sequence:0
-#: field:account.journal.column,sequence:0 field:account.model.line,sequence:0
+#: field:account.account.type,sequence:0
+#: field:account.invoice.tax,sequence:0
+#: field:account.journal.column,sequence:0
+#: field:account.model.line,sequence:0
#: field:account.payment.term.line,sequence:0
#: field:account.sequence.fiscalyear,sequence_id:0
-#: field:account.tax,sequence:0 field:account.tax.template,sequence:0
+#: field:account.tax,sequence:0
+#: field:account.tax.template,sequence:0
#: field:fiscalyear.seq,sequence_id:0
msgid "Sequence"
msgstr "Sequencia"
@@ -3642,7 +3777,8 @@ msgstr "Inscriçãoda conta"
#. module: account
#: field:account.model.line,date_maturity:0
-#: field:account.move.line,date_maturity:0 rml:account.overdue:0
+#: field:account.move.line,date_maturity:0
+#: rml:account.overdue:0
msgid "Maturity date"
msgstr "Data de vencimento"
@@ -3662,7 +3798,8 @@ msgid "Account Configure Wizard "
msgstr "Assistente de configuração de conta "
#. module: account
-#: field:account.config.wizard,date1:0 field:account.fiscalyear,date_start:0
+#: field:account.config.wizard,date1:0
+#: field:account.fiscalyear,date_start:0
#: field:account.subscription,date_start:0
msgid "Start Date"
msgstr "Data de Início"
@@ -3700,7 +3837,8 @@ msgid "Unreconciled"
msgstr "Não conciliado"
#. module: account
-#: field:account.account,note:0 field:account.account.template,note:0
+#: field:account.account,note:0
+#: field:account.account.template,note:0
msgid "Note"
msgstr "Nota"
@@ -3733,7 +3871,8 @@ msgid "Entry Sequence"
msgstr "Sequencia de lançamento"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
msgid "Closed"
msgstr "Fechado"
@@ -3863,9 +4002,12 @@ msgid "Code/Date"
msgstr "Código/Data"
#. module: account
-#: field:account.account,active:0 field:account.analytic.account,active:0
-#: field:account.analytic.journal,active:0 field:account.journal,active:0
-#: field:account.journal.period,active:0 field:account.payment.term,active:0
+#: field:account.account,active:0
+#: field:account.analytic.account,active:0
+#: field:account.analytic.journal,active:0
+#: field:account.journal,active:0
+#: field:account.journal.period,active:0
+#: field:account.payment.term,active:0
#: field:account.tax,active:0
msgid "Active"
msgstr "Ativo"
@@ -3917,15 +4059,20 @@ msgid "Secondary Currency"
msgstr "Moeda secundária"
#. module: account
-#: field:account.account,credit:0 rml:account.account.balance:0
+#: field:account.account,credit:0
+#: rml:account.account.balance:0
#: field:account.analytic.account,credit:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.central.journal:0 rml:account.journal.period.print:0
-#: field:account.model.line,credit:0 field:account.move.line,credit:0
-#: rml:account.partner.balance:0 rml:account.tax.code.entries:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.central.journal:0
+#: rml:account.journal.period.print:0
+#: field:account.model.line,credit:0
+#: field:account.move.line,credit:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
#: rml:account.vat.declaration:0
#: field:report.hr.timesheet.invoice.journal,cost:0
msgid "Credit"
@@ -3958,7 +4105,8 @@ msgid "Account Move"
msgstr "Movimentos da Conta"
#. module: account
-#: view:account.bank.statement:0 field:account.bank.statement,line_ids:0
+#: view:account.bank.statement:0
+#: field:account.bank.statement,line_ids:0
msgid "Statement lines"
msgstr "Linhas do demonstrativo"
@@ -4055,15 +4203,18 @@ msgid "Journal Column"
msgstr "Coluna do diário"
#. module: account
-#: selection:account.fiscalyear,state:0 selection:account.invoice,state:0
-#: selection:account.journal.period,state:0 selection:account.period,state:0
+#: selection:account.fiscalyear,state:0
+#: selection:account.invoice,state:0
+#: selection:account.journal.period,state:0
+#: selection:account.period,state:0
#: selection:account.subscription,state:0
msgid "Done"
msgstr "Concluído"
#. module: account
#: wizard_field:account.account.balance.report,checktype,periods:0
-#: field:account.config.wizard,period:0 view:account.fiscalyear:0
+#: field:account.config.wizard,period:0
+#: view:account.fiscalyear:0
#: field:account.fiscalyear,period_ids:0
#: wizard_field:account.general.ledger.report,checktype,periods:0
#: wizard_field:account.partner.balance.report,init,periods:0
@@ -4076,7 +4227,8 @@ msgid "Periods"
msgstr "Períodos"
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
#: field:account.move.line,invoice:0
#: model:ir.model,name:account.model_account_invoice
#: model:res.request.link,name:account.req_link_invoice
@@ -4103,7 +4255,8 @@ msgid "Analytic costs to reinvoice purchases, timesheets, ..."
msgstr "Custos analíticos para fatura de compra, planilhas, ..."
#. module: account
-#: field:account.account,tax_ids:0 field:account.account.template,tax_ids:0
+#: field:account.account,tax_ids:0
+#: field:account.account.template,tax_ids:0
msgid "Default Taxes"
msgstr "Taxas padrão"
@@ -4163,7 +4316,8 @@ msgstr "Controlos de tipo"
#. module: account
#: field:account.analytic.account,name:0
#: rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.central.journal:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.central.journal:0
msgid "Account Name"
msgstr "Nome da conta"
@@ -4254,7 +4408,8 @@ msgid "Import file from your bank statement"
msgstr "Importar arquivo do seu extrato bancário"
#. module: account
-#: field:account.account,type:0 field:account.account.template,type:0
+#: field:account.account,type:0
+#: field:account.account.template,type:0
msgid "Internal Type"
msgstr "Tipo interno"
@@ -4280,12 +4435,14 @@ msgid "Posted"
msgstr "Publicado"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Credit Notes"
msgstr "Notas de crédito"
#. module: account
-#: field:account.config.wizard,date2:0 field:account.fiscalyear,date_stop:0
+#: field:account.config.wizard,date2:0
+#: field:account.fiscalyear,date_stop:0
msgid "End Date"
msgstr "Data de Término"
@@ -4306,7 +4463,8 @@ msgid "Day of the Month"
msgstr "Dia do mês"
#. module: account
-#: field:account.analytic.journal,line_ids:0 field:account.tax.code,line_ids:0
+#: field:account.analytic.journal,line_ids:0
+#: field:account.tax.code,line_ids:0
msgid "Lines"
msgstr "Linhas"
@@ -4327,7 +4485,8 @@ msgstr ""
"impostos derivados."
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Tax Declaration"
msgstr "Declaração da taxa"
@@ -4387,12 +4546,14 @@ msgid "The optional quantity on entries"
msgstr "A quantidade opcional nos lançamentos"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "JNRL"
msgstr "JNRL"
#. module: account
-#: view:account.fiscalyear:0 view:account.period:0
+#: view:account.fiscalyear:0
+#: view:account.period:0
msgid "States"
msgstr "Estado"
@@ -4428,7 +4589,8 @@ msgstr "Data de início"
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.inverted.balance:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: field:account.invoice,amount_total:0 field:account.invoice,check_total:0
+#: field:account.invoice,amount_total:0
+#: field:account.invoice,check_total:0
msgid "Total"
msgstr "Total"
@@ -4547,9 +4709,11 @@ msgstr "Lançamentos válidos da fatura"
#: field:account.fiscal.position,company_id:0
#: field:account.fiscalyear,company_id:0
#: wizard_field:account.general.ledger.report,checktype,company_id:0
-#: field:account.invoice,company_id:0 field:account.journal,company_id:0
+#: field:account.invoice,company_id:0
+#: field:account.journal,company_id:0
#: wizard_field:account.partner.balance.report,init,company_id:0
-#: field:account.tax,company_id:0 field:account.tax.code,company_id:0
+#: field:account.tax,company_id:0
+#: field:account.tax.code,company_id:0
#: wizard_field:account.third_party_ledger.report,init,company_id:0
#: wizard_field:account.vat.declaration,init,company_id:0
#: field:wizard.company.setup,company_id:0
@@ -4646,9 +4810,12 @@ msgid "Print Aged Trial Balance"
msgstr "Imprimir saldo tentativo anterior"
#. module: account
-#: field:account.analytic.line,ref:0 field:account.bank.statement.line,ref:0
-#: field:account.model.line,ref:0 field:account.move.line,ref:0
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: field:account.analytic.line,ref:0
+#: field:account.bank.statement.line,ref:0
+#: field:account.model.line,ref:0
+#: field:account.move.line,ref:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "Ref."
msgstr "Ref."
@@ -4728,7 +4895,8 @@ msgid "Control Invoice"
msgstr "Controlar fatura"
#. module: account
-#: selection:account.account,type:0 selection:account.account.template,type:0
+#: selection:account.account,type:0
+#: selection:account.account.template,type:0
#: selection:account.aged.trial.balance,init,result_selection:0
msgid "Receivable"
msgstr "Receber"
@@ -4755,7 +4923,8 @@ msgstr "Imposto:"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.quantity_cost_ledger:0
-#: rml:account.central.journal:0 rml:account.general.journal:0
+#: rml:account.central.journal:0
+#: rml:account.general.journal:0
#: rml:account.invoice:0
msgid "Total:"
msgstr "Total:"
@@ -4766,7 +4935,8 @@ msgid "account.analytic.journal"
msgstr "account.analytic.journal"
#. module: account
-#: view:account.fiscal.position:0 field:account.fiscal.position,account_ids:0
+#: view:account.fiscal.position:0
+#: field:account.fiscal.position,account_ids:0
#: field:account.fiscal.position.template,account_ids:0
msgid "Account Mapping"
msgstr "Mapeamento de contas"
@@ -4782,7 +4952,8 @@ msgid "Account Reconciliation"
msgstr "Reconciliação da conta"
#. module: account
-#: view:account.bank.statement:0 selection:account.bank.statement,state:0
+#: view:account.bank.statement:0
+#: selection:account.bank.statement,state:0
msgid "Confirm"
msgstr "Confirmar"
@@ -4797,7 +4968,8 @@ msgid "Parent Account Template"
msgstr "Modelo de conta-pai"
#. module: account
-#: help:account.tax,domain:0 help:account.tax.template,domain:0
+#: help:account.tax,domain:0
+#: help:account.tax.template,domain:0
msgid ""
"This field is only used if you develop your own module allowing developers "
"to create specific taxes in a custom domain."
@@ -4818,7 +4990,8 @@ msgid "Analytic account"
msgstr "Conta analítica"
#. module: account
-#: rml:account.invoice:0 selection:account.invoice,type:0
+#: rml:account.invoice:0
+#: selection:account.invoice,type:0
msgid "Supplier Invoice"
msgstr "Fatura do fornecedor"
@@ -4828,16 +5001,22 @@ msgid "Valid"
msgstr "Válido"
#. module: account
-#: field:account.account,debit:0 rml:account.account.balance:0
+#: field:account.account,debit:0
+#: rml:account.account.balance:0
#: field:account.analytic.account,debit:0
#: rml:account.analytic.account.balance:0
#: rml:account.analytic.account.cost_ledger:0
#: rml:account.analytic.account.inverted.balance:0
-#: rml:account.central.journal:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 field:account.model.line,debit:0
-#: field:account.move.line,debit:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.central.journal:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: field:account.model.line,debit:0
+#: field:account.move.line,debit:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
+#: rml:account.vat.declaration:0
#: field:report.hr.timesheet.invoice.journal,revenue:0
msgid "Debit"
msgstr "Débito"
@@ -4858,6 +5037,7 @@ msgid "Invoice Lines"
msgstr "Linhas da fatura"
#. module: account
+#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: field:account.period,date_start:0
msgid "Start of Period"
msgstr "Início do Período"
@@ -4899,7 +5079,8 @@ msgid "Reporting"
msgstr "Relatórios"
#. module: account
-#: rml:account.third_party_ledger:0 rml:account.third_party_ledger_other:0
+#: rml:account.third_party_ledger:0
+#: rml:account.third_party_ledger_other:0
msgid "/"
msgstr "/"
@@ -4930,7 +5111,8 @@ msgid "Configuration"
msgstr "Configuração"
#. module: account
-#: view:account.analytic.line:0 view:account.invoice:0
+#: view:account.analytic.line:0
+#: view:account.invoice:0
msgid "Total amount"
msgstr "Quantia total"
@@ -4953,7 +5135,8 @@ msgstr "Conta de receita no modelo de produtos"
#: help:account.account,currency_id:0
#: help:account.account.template,currency_id:0
msgid "Force all moves for this account to have this secondary currency."
-msgstr "Força todos os movimentos dessa conta para usarem a moeda secundária."
+msgstr ""
+"Força todos os movimentos dessa conta para usarem a moeda secundária."
#. module: account
#: wizard_button:populate_statement_from_inv,go,end:0
@@ -4980,12 +5163,14 @@ msgid "Paid invoice"
msgstr "Fatura paga"
#. module: account
-#: view:account.tax:0 view:account.tax.template:0
+#: view:account.tax:0
+#: view:account.tax.template:0
msgid "Tax Definition"
msgstr "Definição da taxa"
#. module: account
-#: field:account.tax,tax_group:0 field:account.tax.template,tax_group:0
+#: field:account.tax,tax_group:0
+#: field:account.tax.template,tax_group:0
msgid "Tax Group"
msgstr "Grupo da taxa"
@@ -5028,7 +5213,8 @@ msgid "With movements"
msgstr "Com movimentos"
#. module: account
-#: field:account.tax,domain:0 field:account.tax.template,domain:0
+#: field:account.tax,domain:0
+#: field:account.tax.template,domain:0
msgid "Domain"
msgstr "Domínio"
@@ -5053,7 +5239,9 @@ msgid "Manually"
msgstr "Manualmente"
#. module: account
-#: view:account.invoice:0 view:account.tax:0 view:account.tax.template:0
+#: view:account.invoice:0
+#: view:account.tax:0
+#: view:account.tax.template:0
#: selection:account.vat.declaration,init,based_on:0
#: model:ir.actions.act_window,name:account.act_res_partner_2_account_invoice_opened
#: model:ir.actions.act_window,name:account.action_invoice_tree
@@ -5070,7 +5258,8 @@ msgid "Payable Accounts"
msgstr "Contas a pagar"
#. module: account
-#: view:account.invoice.line:0 field:account.invoice.tax,invoice_id:0
+#: view:account.invoice.line:0
+#: field:account.invoice.tax,invoice_id:0
msgid "Invoice Line"
msgstr "Linha da fatura"
@@ -5109,7 +5298,7 @@ msgstr ""
#. module: account
#: model:ir.ui.menu,name:account.next_id_43
msgid "This Month"
-msgstr "Este mes"
+msgstr "Este mês"
#. module: account
#: field:account.account.type,sign:0
@@ -5122,7 +5311,8 @@ msgid "The optional other currency if it is a multi-currency entry."
msgstr "A outra moeda opcional se este for um lançamento multi-moeda"
#. module: account
-#: view:account.invoice:0 field:account.invoice,payment_ids:0
+#: view:account.invoice:0
+#: field:account.invoice,payment_ids:0
#: selection:account.vat.declaration,init,based_on:0
msgid "Payments"
msgstr "Pagamentos"
@@ -5168,9 +5358,12 @@ msgstr "Escolha diário e data de pagamento"
#. module: account
#: selection:account.analytic.account,state:0
#: selection:account.bank.statement,state:0
-#: selection:account.fiscalyear,state:0 selection:account.invoice,state:0
-#: selection:account.journal.period,state:0 selection:account.move,state:0
-#: selection:account.move.line,state:0 selection:account.period,state:0
+#: selection:account.fiscalyear,state:0
+#: selection:account.invoice,state:0
+#: selection:account.journal.period,state:0
+#: selection:account.move,state:0
+#: selection:account.move.line,state:0
+#: selection:account.period,state:0
#: selection:account.subscription,state:0
msgid "Draft"
msgstr "Provisório"
@@ -5197,7 +5390,8 @@ msgid "Are you sure ?"
msgstr "Tem certeza?"
#. module: account
-#: rml:account.invoice:0 view:account.invoice:0
+#: rml:account.invoice:0
+#: view:account.invoice:0
msgid "PRO-FORMA"
msgstr "Pro-forma"
@@ -5233,16 +5427,20 @@ msgid "Supplier Invoice Process"
msgstr "Processo de fatura do fornecedor"
#. module: account
-#: rml:account.account.balance:0 rml:account.analytic.account.analytic.check:0
-#: rml:account.analytic.account.balance:0 rml:account.general.ledger:0
-#: rml:account.journal.period.print:0 rml:account.partner.balance:0
-#: rml:account.tax.code.entries:0 rml:account.third_party_ledger:0
-#: rml:account.third_party_ledger_other:0 rml:account.vat.declaration:0
+#: rml:account.account.balance:0
+#: rml:account.analytic.account.analytic.check:0
+#: rml:account.analytic.account.balance:0
+#: rml:account.general.ledger:0
+#: rml:account.journal.period.print:0
+#: rml:account.partner.balance:0
+#: rml:account.tax.code.entries:0
+#: rml:account.vat.declaration:0
msgid "Page"
msgstr "Página"
#. module: account
-#: view:account.move:0 view:account.move.line:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "Optional Information"
msgstr "Informação Opcional"
@@ -5258,7 +5456,8 @@ msgid "Receivable and Payable"
msgstr "A receber e a pagar"
#. module: account
-#: rml:account.account.balance:0 rml:account.general.journal:0
+#: rml:account.account.balance:0
+#: rml:account.general.journal:0
msgid ":"
msgstr ":"
@@ -5284,7 +5483,8 @@ msgstr ""
"campo conterá um valor básico (sem o imposto)"
#. module: account
-#: view:account.bank.statement:0 view:account.bank.statement.reconcile:0
+#: view:account.bank.statement:0
+#: view:account.bank.statement.reconcile:0
#: view:account.subscription:0
msgid "Compute"
msgstr "Calcular"
@@ -5318,7 +5518,6 @@ msgstr "Número de períodos"
#. module: account
#: wizard_field:account.analytic.account.analytic.check.report,init,date2:0
-#: wizard_field:account.analytic.account.balance.report,init,date2:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date2:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date2:0
#: wizard_field:account.analytic.account.journal.report,init,date2:0
@@ -5328,7 +5527,8 @@ msgid "End of period"
msgstr "Fim de período"
#. module: account
-#: view:account.move:0 model:ir.model,name:account.model_account_move
+#: view:account.move:0
+#: model:ir.model,name:account.model_account_move
msgid "Account Entry"
msgstr "Conta Lançamento"
@@ -5339,7 +5539,8 @@ msgid "General Journal"
msgstr "Diário geral"
#. module: account
-#: field:account.account,balance:0 rml:account.account.balance:0
+#: field:account.account,balance:0
+#: rml:account.account.balance:0
#: selection:account.account.type,close_method:0
#: field:account.analytic.account,balance:0
#: rml:account.analytic.account.balance:0
@@ -5347,9 +5548,12 @@ msgstr "Diário geral"
#: rml:account.analytic.account.inverted.balance:0
#: field:account.bank.statement,balance_end:0
#: field:account.bank.statement.reconcile,total_balance:0
-#: rml:account.general.ledger:0 field:account.move.line,balance:0
-#: rml:account.partner.balance:0 selection:account.payment.term.line,value:0
-#: selection:account.tax,type:0 rml:account.third_party_ledger:0
+#: rml:account.general.ledger:0
+#: field:account.move.line,balance:0
+#: rml:account.partner.balance:0
+#: selection:account.payment.term.line,value:0
+#: selection:account.tax,type:0
+#: rml:account.third_party_ledger:0
#: rml:account.third_party_ledger_other:0
msgid "Balance"
msgstr "Saldo"
@@ -5395,8 +5599,11 @@ msgid "The sequence used for invoice numbers in this journal."
msgstr "A sequência utilizada para numeração das faturas neste diário."
#. module: account
-#: view:account.account:0 view:account.account.template:0
-#: view:account.journal:0 view:account.move:0 view:account.move.line:0
+#: view:account.account:0
+#: view:account.account.template:0
+#: view:account.journal:0
+#: view:account.move:0
+#: view:account.move.line:0
msgid "General Information"
msgstr "Informações Gerais"
@@ -5438,7 +5645,8 @@ msgid "List of Accounts"
msgstr "Lista de contas"
#. module: account
-#: view:product.product:0 view:product.template:0
+#: view:product.product:0
+#: view:product.template:0
msgid "Sales Properties"
msgstr "Propriedades das vendas"
@@ -5503,7 +5711,6 @@ msgstr "Ano fiscal para fechar"
#. module: account
#: wizard_field:account.aged.trial.balance,init,date1:0
#: wizard_field:account.analytic.account.analytic.check.report,init,date1:0
-#: wizard_field:account.analytic.account.balance.report,init,date1:0
#: wizard_field:account.analytic.account.cost_ledger.report,init,date1:0
#: wizard_field:account.analytic.account.inverted.balance.report,init,date1:0
#: wizard_field:account.analytic.account.journal.report,init,date1:0
@@ -5531,11 +5738,15 @@ msgstr "intraCom"
#: view:account.analytic.account:0
#: field:account.analytic.account,description:0
#: field:account.analytic.line,name:0
-#: field:account.bank.statement.reconcile.line,name:0 rml:account.invoice:0
-#: field:account.invoice,name:0 field:account.invoice.line,name:0
+#: field:account.bank.statement.reconcile.line,name:0
+#: rml:account.invoice:0
+#: field:account.invoice,name:0
+#: field:account.invoice.line,name:0
#: wizard_field:account.invoice.refund,init,description:0
-#: rml:account.overdue:0 field:account.payment.term,note:0
-#: field:account.tax.code,info:0 field:account.tax.code.template,info:0
+#: rml:account.overdue:0
+#: field:account.payment.term,note:0
+#: field:account.tax.code,info:0
+#: field:account.tax.code.template,info:0
msgid "Description"
msgstr "Descrição"
@@ -5583,7 +5794,8 @@ msgstr ""
"parceiro atual"
#. module: account
-#: field:account.tax.code,code:0 field:account.tax.code.template,code:0
+#: field:account.tax.code,code:0
+#: field:account.tax.code.template,code:0
msgid "Case Code"
msgstr "Codigo do caso"
@@ -5665,7 +5877,8 @@ msgstr "Definições do modelo"
#. module: account
#: model:account.account.type,name:account.account_type_cash_moves
-#: selection:account.analytic.journal,type:0 selection:account.journal,type:0
+#: selection:account.analytic.journal,type:0
+#: selection:account.journal,type:0
msgid "Cash"
msgstr "Dinheiro"
@@ -5705,7 +5918,8 @@ msgid "Keep empty for all open fiscal year"
msgstr "Mantenha vazia para todos os anos fiscais abertos"
#. module: account
-#: rml:account.invoice:0 selection:account.invoice,type:0
+#: rml:account.invoice:0
+#: selection:account.invoice,type:0
msgid "Supplier Refund"
msgstr "Reembolso a fornecedor"
@@ -5754,8 +5968,10 @@ msgstr ""
"categoria de produto"
#. module: account
-#: help:account.tax,base_sign:0 help:account.tax,ref_base_sign:0
-#: help:account.tax,ref_tax_sign:0 help:account.tax,tax_sign:0
+#: help:account.tax,base_sign:0
+#: help:account.tax,ref_base_sign:0
+#: help:account.tax,ref_tax_sign:0
+#: help:account.tax,tax_sign:0
#: help:account.tax.template,base_sign:0
#: help:account.tax.template,ref_base_sign:0
#: help:account.tax.template,ref_tax_sign:0
@@ -5789,8 +6005,10 @@ msgid "Name of the fiscal year as displayed on screens."
msgstr "Nome do ano fiscal para as telas"
#. module: account
-#: field:account.invoice,payment_term:0 view:account.payment.term:0
-#: field:account.payment.term,name:0 view:account.payment.term.line:0
+#: field:account.invoice,payment_term:0
+#: view:account.payment.term:0
+#: field:account.payment.term,name:0
+#: view:account.payment.term.line:0
#: field:account.payment.term.line,payment_id:0
#: model:ir.model,name:account.model_account_payment_term
#: field:res.partner,property_payment_term:0
@@ -5849,7 +6067,8 @@ msgstr "Sim"
#. module: account
#: help:account.account,reconcile:0
-msgid "Check this if the user is allowed to reconcile entries in this account."
+msgid ""
+"Check this if the user is allowed to reconcile entries in this account."
msgstr ""
"Marque isto se ao usuário é permitido reconciliar lançamentos nesta conta."
@@ -5875,7 +6094,8 @@ msgid "Accounting Dashboard"
msgstr ""
#. module: account
-#: view:board.board:0 model:ir.actions.act_window,name:account.act_my_account
+#: view:board.board:0
+#: model:ir.actions.act_window,name:account.act_my_account
msgid "Accounts to invoice"
msgstr ""
@@ -5923,39 +6143,39 @@ msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,account_choice:0
msgid "All accounts"
-msgstr "Todas as Contas"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,period_manner:0
msgid "Entries Selection Based on"
-msgstr "Seleção de entradas baseada em"
+msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
#: wizard_view:account.balance.account.balance.report,zero_years:0
msgid "Notification"
-msgstr "Notificação"
+msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,period_manner:0
msgid "Financial Period"
-msgstr "Período Financeiro"
+msgstr ""
#. module: account
#: model:ir.actions.report.xml,name:account.account_account_balance
#: model:ir.actions.report.xml,name:account.account_account_balance_landscape
msgid "Account balance"
-msgstr "Saldo da Conta"
+msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,init:0
msgid "Select Period(s)"
-msgstr "Selecione o(s) Período(s)"
+msgstr ""
#. module: account
#: selection:account.balance.account.balance.report,init,compare_pattern:0
msgid "Percentage"
-msgstr "Porcentagem"
+msgstr ""
#. module: account
#: wizard_field:account.balance.account.balance.report,init,compare_pattern:0
@@ -5970,12 +6190,12 @@ msgstr "Selecione Ano(s) Fiscal(is) (máximo três anos)"
#. module: account
#: wizard_field:account.balance.account.balance.report,init,select_account:0
msgid "Select Reference Account(for % comparision)"
-msgstr "Selecione conta de referência (para comparação %)"
+msgstr "Selecione conta de referência (para comparação de %)"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_account_balance_report
msgid "Account balance-Compare Years"
-msgstr "Conta Saldo Comparar Anos"
+msgstr ""
#. module: account
#: model:ir.module.module,description:account.module_meta_information
@@ -6002,7 +6222,7 @@ msgstr ""
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
msgid "You have to select 'Landscape' option. Please Check it."
-msgstr ""
+msgstr "Você tem que selecionar a opção 'Paisagem'. Por favor marque-a."
#. module: account
#: wizard_field:account.balance.account.balance.report,init,landscape:0
@@ -6021,14 +6241,14 @@ msgid "Show Comparision in %"
msgstr "Mostrar comparação em %"
#. module: account
-#: wizard_view:account.balance.account.balance.report,init:0
+#: wizard_view:account.analytic.account.balance.report,init:0
msgid "Select Period"
-msgstr "Selecione o Período"
+msgstr "Selecione o período"
#. module: account
#: wizard_view:account.balance.account.balance.report,init:0
msgid "Report Options"
-msgstr "Opções de Relatório"
+msgstr "Opções de relatório"
#. module: account
#: selection:account.balance.account.balance.report,init,compare_pattern:0
@@ -6043,23 +6263,23 @@ msgstr "Mostrar Contas"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
msgid "1. You have selected more than 3 years in any case."
-msgstr ""
+msgstr "1. Você selecionou mais de 3 anos em qualquer caso."
#. module: account
#: model:ir.module.module,shortdesc:account.module_meta_information
msgid "Accounting and financial management-Compare Accounts"
-msgstr ""
+msgstr "Comparação de Contas de Contabilidade e gestão financeira,"
#. module: account
#: rml:account.account.balance.landscape:0
#: rml:account.balance.account.balance:0
msgid "Year :"
-msgstr ""
+msgstr "Ano :"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
msgid "You can select maximum 3 years. Please check again."
-msgstr ""
+msgstr "Você pode escolher no maximo 3 anos. Por favor tente novamente"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
@@ -6067,22 +6287,26 @@ msgid ""
"3. You have selected 'Percentage' option with more than 2 years, but you "
"have not selected landscape format."
msgstr ""
+"3. Você selecionou a opção 'Porcentagem' com mais de 2 anos, mas não "
+"escolheu o formato paisagem."
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
msgid ""
"You might have done following mistakes. Please correct them and try again."
msgstr ""
+"Você pode ter cometido os enganos a seguir. Por favor, corrija-os e tente "
+"novamente."
#. module: account
#: help:account.balance.account.balance.report,init,select_account:0
msgid "Keep empty for comparision to its parent"
-msgstr ""
+msgstr "Mantenha vazia para a comparação com sua matriz"
#. module: account
#: selection:account.balance.account.balance.report,init,period_manner:0
msgid "Creation Date"
-msgstr ""
+msgstr "Data de criação"
#. module: account
#: wizard_view:account.balance.account.balance.report,backtoinit:0
@@ -6090,93 +6314,98 @@ msgid ""
"2. You have not selected 'Percentage' option, but you have selected more "
"than 2 years."
msgstr ""
+"2. Você não selecionou a Opção 'Porcentagem', mas você selecionou mais de 2 "
+"anos."
#. module: account
#: wizard_view:account.balance.account.balance.report,zero_years:0
msgid ""
-"You may have selected the compare options with more than 1 year with credit/"
-"debit columns and % option.This can lead contents to be printed out of the "
-"paper.Please try again."
+"You may have selected the compare options with more than 1 year with "
+"credit/debit columns and % option.This can lead contents to be printed out "
+"of the paper.Please try again."
msgstr ""
+"Você pode ter selecionado a opção de comparar com mais de 1 ano de colunas "
+"crédito/débito e opção %. Isso pode gerar a impressão fora do papel. Por "
+"favor tente novamente."
#. module: account
#: wizard_view:account.balance.account.balance.report,zero_years:0
msgid "You have to select at least 1 Fiscal Year. Try again."
-msgstr ""
+msgstr "Você tem que escolher pelo menos 1 ano fiscal. Tente novamente."
#. module: account
#: wizard_view:account.balance.account.balance.report,init:0
msgid "Customize Report"
-msgstr ""
+msgstr "Personalizar relatório"
#. module: account
#: field:report.aged.receivable,name:0
msgid "Month Range"
-msgstr ""
+msgstr "Faixa de Mês(es)"
#. module: account
-#: model:ir.actions.act_window,name:account.action_view_created_invoice_dashboard
+#: model:ir.actions.act_window,name:report_account.action_view_created_invoice_dashboard
msgid "Invoices Created Within Past 15 Days"
-msgstr ""
+msgstr "Faturas criadas nos últimos 15 dias"
#. module: account
-#: model:ir.model,name:account.model_report_invoice_created
+#: model:ir.model,name:report_account.model_report_invoice_created
msgid "Report of Invoices Created within Last 15 days"
-msgstr ""
+msgstr "Relatório de faturas criadas nos últimos 15 dias"
#. module: account
#: view:report.invoice.created:0
msgid "Total Amount"
-msgstr ""
+msgstr "Quantia total"
#. module: account
#: view:report.account.receivable:0
msgid "Accounts by type"
-msgstr ""
+msgstr "Contas por tipo"
#. module: account
-#: model:ir.model,name:account.model_report_aged_receivable
+#: model:ir.model,name:report_account.model_report_aged_receivable
msgid "Aged Receivable Till Today"
msgstr ""
#. module: account
-#: model:ir.model,name:account.model_report_account_receivable
+#: model:ir.model,name:report_account.model_report_account_receivable
msgid "Receivable accounts"
-msgstr ""
+msgstr "Contas a receber"
#. module: account
#: field:temp.range,name:0
msgid "Range"
-msgstr ""
+msgstr "Intervalo"
#. module: account
-#: model:ir.module.module,description:account.module_meta_information
+#: model:ir.module.module,description:report_account.module_meta_information
msgid "A module that adds new reports based on the account module."
-msgstr ""
+msgstr "Um módulo que adiciona novos relatórios com base no módulo de conta."
#. module: account
-#: model:ir.module.module,shortdesc:account.module_meta_information
+#: model:ir.module.module,shortdesc:report_account.module_meta_information
msgid "Account Reporting - Reporting"
msgstr ""
#. module: account
-#: model:ir.actions.act_window,name:account.action_account_receivable_graph
-#: model:ir.ui.menu,name:account.menu_account_receivable_graph
+#: model:ir.actions.act_window,name:report_account.action_account_receivable_graph
+#: model:ir.ui.menu,name:report_account.menu_account_receivable_graph
msgid "Balance by Type of Account"
-msgstr ""
+msgstr "Saldo por tipo de conta"
#. module: account
#: field:report.account.receivable,name:0
msgid "Week of Year"
-msgstr ""
+msgstr "Semana do Ano"
#. module: account
#: field:report.invoice.created,create_date:0
msgid "Create Date"
-msgstr ""
+msgstr "Criar data"
#. module: account
-#: model:ir.actions.act_window,name:account.action_aged_receivable_graph
+#: model:ir.actions.act_window,name:report_account.action_aged_receivable_graph
#: view:report.aged.receivable:0
msgid "Aged Receivable"
msgstr ""
@@ -6184,7 +6413,331 @@ msgstr ""
#. module: account
#: view:report.invoice.created:0
msgid "Untaxed Amount"
-msgstr ""
+msgstr "Valor sem Impostos"
+
+#, python-format
+#~ msgid "Bank Journal "
+#~ msgstr "Diário Bancário "
+
+#, python-format
+#~ msgid "Integrity Error !"
+#~ msgstr "Erro de integridade !"
+
+#, python-format
+#~ msgid "Purchase Journal"
+#~ msgstr "Diário de compras"
+
+#, python-format
+#~ msgid "No sequence defined in the journal !"
+#~ msgstr "Nenhuma sequencia definida no diário !"
+
+#, python-format
+#~ msgid "The journal must have default credit and debit account"
+#~ msgstr "O diário precisa ter uma conta de débito e crédito padrão"
+
+#, python-format
+#~ msgid "No Analytic Journal !"
+#~ msgstr "Nenum diário analítico !"
+
+#, python-format
+#~ msgid "Please set an analytic journal on this financial journal !"
+#~ msgstr "Por favor fixe um diário analítico neste diário financeiro!"
+
+#, python-format
+#~ msgid "Sales Journal"
+#~ msgstr "Diário de vendas"
+
+#, python-format
+#~ msgid "Couldn't create move between different companies"
+#~ msgstr "Não foi possível criar movimentação entre empresas diferentes"
+
+#, python-format
+#~ msgid "The journal must have centralised counterpart"
+#~ msgstr "O diário deve ter uma contrapartida centralizada"
+
+#, python-format
+#~ msgid "BNK"
+#~ msgstr "BNK"
+
+#, python-format
+#~ msgid "SAJ"
+#~ msgstr "SAJ"
+
+#, python-format
+#~ msgid "EXJ"
+#~ msgstr "EXJ"
+
+#, python-format
+#~ msgid "Bad total !"
+#~ msgstr "Total inválido!"
+
+#, python-format
+#~ msgid "End of Fiscal Year Entry"
+#~ msgstr "Lançamento de Fim do Período Fiscal"
+
+#, python-format
+#~ msgid "Free Reference"
+#~ msgstr "Referencia livre"
+
+#, python-format
+#~ msgid "Please verify that an account is defined in the journal."
+#~ msgstr "Por favor verifique se uma conta está definida no diário."
+
+#, python-format
+#~ msgid "Standard Encoding"
+#~ msgstr "Codificação padrão"
+
+#, python-format
+#~ msgid "Bad account!"
+#~ msgstr "Conta inválida!"
+
+#, python-format
+#~ msgid "Taxes missing !"
+#~ msgstr "Impostos faltando!"
+
+#, python-format
+#~ msgid "Closing of fiscal year cancelled, please check the box !"
+#~ msgstr "Fechamento do ano fiscal cancelado, por favor marque a caixa."
+
+#, python-format
+#~ msgid "No piece number !"
+#~ msgstr "Nenhum número da parte!"
+
+#, python-format
+#~ msgid "Closing of states cancelled, please check the box !"
+#~ msgstr "Fechamento dos estados cancelado, por favor marque a caixa!"
+
+#, python-format
+#~ msgid "You have to define an analytic journal on the '%s' journal!"
+#~ msgstr "Você deve definir um diário analítico no '%s' de diário!"
+
+#, python-format
+#~ msgid ""
+#~ "Specified Journal does not have any account move entries in draft state for "
+#~ "this period"
+#~ msgstr ""
+#~ "O diário especificado não tem nenhuma entrada do movimento da conta no "
+#~ "estado do esboço para este período"
+
+#, python-format
+#~ msgid "Account move line \"%s\" is not valid"
+#~ msgstr "Linha \" %s\" do movimento da conta é inválido"
+
+#, python-format
+#~ msgid "You have to provide an account for the write off entry !"
+#~ msgstr "Você tem que fornecer uma conta para a amortizar lançamento!"
+
+#, python-format
+#~ msgid "Warning !"
+#~ msgstr "Mensagem !"
+
+#, python-format
+#~ msgid "You can not delete posted movement: \"%s\"!"
+#~ msgstr "Você não pode excluir o movimento: \"% s\"!"
+
+#, python-format
+#~ msgid "No analytic journal !"
+#~ msgstr "Nenhum diário analítico !"
+
+#, python-format
+#~ msgid "You can not use this general account in this journal !"
+#~ msgstr "You can not use this general account in this journal !"
+
+#, python-format
+#~ msgid "You can not add/modify entries in a closed journal."
+#~ msgstr "Você não pode incluir/modificar as lançamentos em um diário fechado."
+
+#, python-format
+#~ msgid ""
+#~ "You can not do this modification on a reconciled entry ! Please note that "
+#~ "you can just change some non important fields !"
+#~ msgstr ""
+#~ "Você não pode fazer uma modificação em lançamentos conciliados! Observe que "
+#~ "você pode simplesmente mudar alguns campos sem importância!"
+
+#, python-format
+#~ msgid "You must first select a partner !"
+#~ msgstr "Voce precisa selecionar um parceiro primeiro !"
#~ msgid "account.config.wizard"
#~ msgstr "account.config.wizard"
+
+#, python-format
+#~ msgid ""
+#~ "The expected balance (%.2f) is different than the computed one. (%.2f)"
+#~ msgstr "O balanço esperado (%.2f) é diferente do calculado. (%.2f)"
+
+#, python-format
+#~ msgid ""
+#~ "You can not do this modification on a confirmed entry ! Please note that you "
+#~ "can just change some non important fields !"
+#~ msgstr ""
+#~ "Voce não pode modificar um lançamento confirmado ! Voce pode apenas trocar "
+#~ "alguns campos sem importância !"
+
+#, python-format
+#~ msgid "No Partner Defined !"
+#~ msgstr "Número do parceiro definido !"
+
+#, python-format
+#~ msgid "Entries are not of the same account or already reconciled ! "
+#~ msgstr "Lançamentos não são das mesmas contas ou já estão conciliados ! "
+
+#, python-format
+#~ msgid "Invalid action !"
+#~ msgstr "Ação invalida !"
+
+#, python-format
+#~ msgid "Some entries are already reconciled !"
+#~ msgstr "Alguns lançamentos já estão conciliados !"
+
+#, python-format
+#~ msgid "Already Reconciled"
+#~ msgstr "Já conciliado"
+
+#, python-format
+#~ msgid "Entries: "
+#~ msgstr "Lancamentos: "
+
+#, python-format
+#~ msgid "Error !"
+#~ msgstr "Erro !"
+
+#, python-format
+#~ msgid "UserError"
+#~ msgstr "Erro de usuário"
+
+#, python-format
+#~ msgid "Warning"
+#~ msgstr "Mensagem"
+
+#, python-format
+#~ msgid "You can not use an inactive account!"
+#~ msgstr "Voce não pode usar uma conta inativa!"
+
+#, python-format
+#~ msgid "Entry is already reconciled"
+#~ msgstr "Lançamentos estão conciliados"
+
+#, python-format
+#~ msgid "This period is already closed !"
+#~ msgstr "Este período já está fechado"
+
+#, python-format
+#~ msgid ""
+#~ "Selected Move lines does not have any account move enties in draft state"
+#~ msgstr ""
+#~ "As linhas do movimento selecionado nao tem nenhuma conta a ser movida para o "
+#~ "estado de esboço"
+
+#, python-format
+#~ msgid "Bad account !"
+#~ msgstr "Conta errada!"
+
+#, python-format
+#~ msgid "Error"
+#~ msgstr "Erro"
+
+#, python-format
+#~ msgid "Your journal must have a default credit and debit account."
+#~ msgstr "Seu diário precisa ter uma conta de crédito e débito padrão."
+
+#, python-format
+#~ msgid "No Period found on Invoice!"
+#~ msgstr "Nenhum período encontrado na fatura!"
+
+#, python-format
+#~ msgid "No journal for ending writing has been defined for the fiscal year"
+#~ msgstr "Nenhum diário para escrituração foi definido para o ano fiscal"
+
+#, python-format
+#~ msgid "No period found !"
+#~ msgstr "Nenhum período encontrado !"
+
+#, python-format
+#~ msgid "No Data Available"
+#~ msgstr "Nenhum dado disponível"
+
+#, python-format
+#~ msgid "Cannot delete invoice(s) that are already opened or paid !"
+#~ msgstr "Impossível excluir fatura(s) que já foram abertas ou pagas!"
+
+#, python-format
+#~ msgid "Unable to find a valid period !"
+#~ msgstr "Não foi possível encontrar um período válido!"
+
+#, python-format
+#~ msgid "No records found for your selection!"
+#~ msgstr "Nenhum registro encontrado para sua seleção"
+
+#, python-format
+#~ msgid "You can not change the tax, you should remove and recreate lines !"
+#~ msgstr ""
+#~ "Você não pode alterar o imposto, ao invés disso remova e recrie as linhas!"
+
+#, python-format
+#~ msgid "Date to must be set between %s and %s"
+#~ msgstr "Data deve ser definida entre %s e %s"
+
+#, python-format
+#~ msgid "Global taxes defined, but are not in invoice lines !"
+#~ msgstr ""
+#~ "As taxas globais estão definidas, mas não estão nas linhas da fatura!"
+
+#, python-format
+#~ msgid "Data Insufficient !"
+#~ msgstr "Dados insuficientes!"
+
+#, python-format
+#~ msgid "Invoice is already reconciled"
+#~ msgstr "Fatura já está reconciliada"
+
+#, python-format
+#~ msgid "You must enter a period length that cannot be 0 or below !"
+#~ msgstr "Você deve digitar um período que não seja 0 ou menor !"
+
+#, python-format
+#~ msgid "The opening journal must not have any entry in the new fiscal year !"
+#~ msgstr ""
+#~ "O diário de abertura não deve ter nenhum lançamento no novo ano fiscal !"
+
+#, python-format
+#~ msgid "You must select accounts to reconcile"
+#~ msgstr "Você deve selecionar as contas para reconciliar"
+
+#, python-format
+#~ msgid "Cannot create invoice move on centralised journal"
+#~ msgstr "Não é possível criar um movimento de fatura no diário centralizado"
+
+#, python-format
+#~ msgid "Entry \"%s\" is not valid !"
+#~ msgstr "Lançamento \"%s\" não é válido"
+
+#, python-format
+#~ msgid "Unable to reconcile entry \"%s\": %.2f"
+#~ msgstr "Incapaz reconciliar lançamento \"% s \": %.2f"
+
+#, python-format
+#~ msgid "The account entries lines are not in valid state."
+#~ msgstr "As linhas de lançamentos de conta não estão em formato válido."
+
+#, python-format
+#~ msgid "You can not modify/delete a journal with entries for this period !"
+#~ msgstr ""
+#~ "Você não pode modificar/apagar um diário com lançamentos para esse período !"
+
+#, python-format
+#~ msgid "Can not %s draft/proforma/cancel invoice."
+#~ msgstr "Não pode %s provisório/proforma/cancelar fatura."
+
+#, python-format
+#~ msgid "Can not pay draft/proforma/cancel invoice."
+#~ msgstr "Não se pode pagar uma fatura provisória/proforma/cancelada"
+
+#, python-format
+#~ msgid "You must define an analytic journal of type '%s' !"
+#~ msgstr "Você tem que definir um diário analítico '%s' !"
+
+#, python-format
+#~ msgid "Unable to change tax !"
+#~ msgstr "Não foi possível alterar o imposto!"
diff --git a/addons/account/i18n/zh_CN.po b/addons/account/i18n/zh_CN.po
index bd0f62f6fa8..154f39fc421 100644
--- a/addons/account/i18n/zh_CN.po
+++ b/addons/account/i18n/zh_CN.po
@@ -13,7 +13,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-07-22 03:56+0000\n"
+"X-Launchpad-Export-Date: 2010-07-23 04:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -215,7 +215,7 @@ msgstr "明细"
#. module: account
#: wizard_view:account.aged.trial.balance,init:0
msgid "Aged Trial Balance"
-msgstr "账龄试算平衡表"
+msgstr "旧的试算表"
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_recurrent_entries
@@ -239,7 +239,7 @@ msgstr "金额"
#: model:ir.actions.wizard,name:account.wizard_third_party_ledger
#: model:ir.ui.menu,name:account.menu_third_party_ledger
msgid "Partner Ledger"
-msgstr "业务伙伴总帐"
+msgstr "业务伙伴分类账"
#. module: account
#: field:product.template,supplier_taxes_id:0
@@ -460,7 +460,7 @@ msgstr "从草稿确认, 与对/ 不对账"
#: model:ir.actions.wizard,name:account.action_account_bank_reconcile_tree
#: model:ir.ui.menu,name:account.menu_action_account_bank_reconcile_check_tree
msgid "Bank reconciliation"
-msgstr "银行对账"
+msgstr "银行对帐单"
#. module: account
#: rml:account.invoice:0
@@ -680,7 +680,7 @@ msgstr "月"
#. module: account
#: field:account.analytic.account,partner_id:0
msgid "Associated Partner"
-msgstr "相关业务伙伴"
+msgstr "相关的业务伙伴"
#. module: account
#: view:account.invoice:0
@@ -795,7 +795,7 @@ msgstr "之前生成的记录:"
#: model:ir.actions.report.xml,name:account.account_analytic_account_cost_ledger
#: model:ir.actions.wizard,name:account.account_analytic_account_cost_ledger_report
msgid "Cost Ledger"
-msgstr "成本分类帐"
+msgstr "成本分类账"
#. module: account
#: wizard_view:account.account.balance.report,checktype:0
@@ -888,7 +888,7 @@ msgstr "补差额集合"
#: field:account.model.line,amount_currency:0
#: field:account.move.line,amount_currency:0
msgid "Amount Currency"
-msgstr "货币金额"
+msgstr "另一货币金额"
#. module: account
#: field:account.chart.template,property_account_expense_categ:0
@@ -1897,7 +1897,7 @@ msgstr "支付发票"
#. module: account
#: constraint:account.invoice:0
msgid "Error: Invalid Bvr Number (wrong checksum)."
-msgstr "错误:无效的Bvr号(错误的检验和)"
+msgstr "错误:无效的Bvr号(校验错误)"
#. module: account
#: model:ir.actions.act_window,name:account.action_invoice_tree5
@@ -4212,7 +4212,7 @@ msgstr "这序列提供记录集合列表的显示顺序"
#. module: account
#: field:account.journal,type_control_ids:0
msgid "Type Controls"
-msgstr "类型控制"
+msgstr "控制类型"
#. module: account
#: field:account.analytic.account,name:0
@@ -5182,7 +5182,7 @@ msgstr "从手动转为草稿"
#. module: account
#: model:ir.ui.menu,name:account.next_id_43
msgid "This Month"
-msgstr "本月"
+msgstr "这月"
#. module: account
#: field:account.account.type,sign:0
@@ -5209,7 +5209,7 @@ msgstr "在确认对帐单产生的会计分录"
#. module: account
#: wizard_view:account_use_models,create:0
msgid "Use Model"
-msgstr "使用模型"
+msgstr "使用模式"
#. module: account
#: wizard_button:account.wizard_paid_open,init,end:0
diff --git a/addons/account/installer.py b/addons/account/installer.py
index 2865b591df1..4dd01f9ec8b 100644
--- a/addons/account/installer.py
+++ b/addons/account/installer.py
@@ -33,8 +33,9 @@ class account_installer(osv.osv_memory):
_inherit = 'res.config.installer'
def _get_default_accounts(self, cr, uid, context=None):
- accounts = [{'acc_name':'Current','account_type':'cash'},
- {'acc_name':'Deposit','account_type':'cash'}]
+ accounts = [{'acc_name':'Current','account_type':'bank'},
+ {'acc_name':'Deposit','account_type':'bank'},
+ {'acc_name':'Cash','account_type':'cash'}]
return accounts
def _get_charts(self, cr, uid, context=None):
@@ -295,9 +296,12 @@ class account_installer(osv.osv_memory):
'account_paid_id': acc_template_ref[value['account_paid_id']],
})
- # Creating Journals
+ # Creating Journals Sales and Purchase
vals_journal={}
- view_id = self.pool.get('account.journal.view').search(cr,uid,[('name','=','Journal View')])[0]
+ data_id = data_pool.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_sp_journal_view')])
+ data = data_pool.browse(cr, uid, data_id[0])
+ view_id = data.res_id
+
seq_id = obj_sequence.search(cr,uid,[('name','=','Account Journal')])[0]
if seq_journal:
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index f5ebc5b3d3d..ef056e454a9 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -219,7 +219,7 @@ class account_invoice(osv.osv):
_name = "account.invoice"
_description = 'Invoice'
- _order = "number"
+ _order = "id"
_columns = {
'name': fields.char('Description', size=64, select=True, readonly=True, states={'draft':[('readonly',False)]}),
@@ -231,11 +231,12 @@ class account_invoice(osv.osv):
('in_refund','Supplier Refund'),
],'Type', readonly=True, select=True, change_default=True),
- 'number': fields.char('Invoice Number', size=32, readonly=True, help="Unique number of the invoice, computed automatically when the invoice is created."),
+ 'number': fields.related('move_id','name', type='char', readonly=True, size=64, relation='account.move', store=True, string='Number'),
+ #'number': fields.char('Invoice Number', size=32, readonly=True, help="Unique number of the invoice, computed automatically when the invoice is created."),
'reference': fields.char('Invoice Reference', size=64, help="The partner reference of this invoice."),
'reference_type': fields.selection(_get_reference_type, 'Reference Type',
required=True, readonly=True, states={'draft':[('readonly',False)]}),
- 'comment': fields.text('Additional Information', translate=True),
+ 'comment': fields.text('Additional Information'),
'state': fields.selection([
('draft','Draft'),
@@ -768,8 +769,8 @@ class account_invoice(osv.osv):
cur_obj = self.pool.get('res.currency')
context = {}
for inv in self.browse(cr, uid, ids):
- if not inv.journal_id.invoice_sequence_id:
- raise osv.except_osv(_('Error !'), _('Please define invoice sequence on invoice journal'))
+ if not inv.journal_id.sequence_id:
+ raise osv.except_osv(_('Error !'), _('Please define sequence on invoice journal'))
if not inv.invoice_line:
raise osv.except_osv(_('No Invoice Lines !'), _('Please create some invoice lines.'))
if inv.move_id:
@@ -875,7 +876,14 @@ class account_invoice(osv.osv):
line = self.finalize_invoice_move_lines(cr, uid, inv, line)
- move = {'ref': inv.number, 'line_id': line, 'journal_id': journal_id, 'date': date, 'type': entry_type}
+ move = {
+ 'ref': inv.number,
+ 'line_id': line,
+ 'journal_id': journal_id,
+ 'date': date,
+ 'type': entry_type,
+ 'narration':inv.comment
+ }
period_id=inv.period_id and inv.period_id.id or False
if not period_id:
period_ids= self.pool.get('account.period').search(cr, uid, [('date_start','<=',inv.date_invoice or time.strftime('%Y-%m-%d')),('date_stop','>=',inv.date_invoice or time.strftime('%Y-%m-%d'))])
@@ -919,44 +927,32 @@ class account_invoice(osv.osv):
}
def action_number(self, cr, uid, ids, *args):
+ #TODO: not correct fix but required a frech values before reading it.
+ self.write(cr, uid, ids, {})
+
for obj_inv in self.browse(cr, uid, ids):
id = obj_inv.id
invtype = obj_inv.type
number = obj_inv.number
move_id = obj_inv.move_id and obj_inv.move_id.id or False
reference = obj_inv.reference or ''
- if not number:
- tmp_context = {
- 'fiscalyear_id': obj_inv.period_id.fiscalyear_id.id
- }
- if obj_inv.journal_id.invoice_sequence_id:
- sequence_id = obj_inv.journal_id.invoice_sequence_id.id
- number = self.pool.get('ir.sequence').get_id(cr, uid,
- sequence_id,
- 'id',
- context=tmp_context)
- else:
- number = self.pool.get('ir.sequence').get_id(cr, uid,
- 'account.invoice.%s' % invtype,
- 'code',
- context=tmp_context)
- if invtype in ('in_invoice', 'in_refund'):
- ref = reference
- else:
- ref = self._convert_ref(cr, uid, number)
- cr.execute('UPDATE account_invoice SET number=%s ' \
- 'WHERE id=%s', (number, id))
- cr.execute('UPDATE account_move SET ref=%s ' \
- 'WHERE id=%s AND (ref is null OR ref = \'\')',
+
+ if invtype in ('in_invoice', 'in_refund'):
+ ref = reference
+ else:
+ ref = self._convert_ref(cr, uid, number)
+
+ cr.execute('UPDATE account_move SET ref=%s ' \
+ 'WHERE id=%s AND (ref is null OR ref = \'\')',
+ (ref, move_id))
+ cr.execute('UPDATE account_move_line SET ref=%s ' \
+ 'WHERE move_id=%s AND (ref is null OR ref = \'\')',
+ (ref, move_id))
+ cr.execute('UPDATE account_analytic_line SET ref=%s ' \
+ 'FROM account_move_line ' \
+ 'WHERE account_move_line.move_id = %s ' \
+ 'AND account_analytic_line.move_id = account_move_line.id',
(ref, move_id))
- cr.execute('UPDATE account_move_line SET ref=%s ' \
- 'WHERE move_id=%s AND (ref is null OR ref = \'\')',
- (ref, move_id))
- cr.execute('UPDATE account_analytic_line SET ref=%s ' \
- 'FROM account_move_line ' \
- 'WHERE account_move_line.move_id = %s ' \
- 'AND account_analytic_line.move_id = account_move_line.id',
- (ref, move_id))
for inv_id, name in self.name_get(cr, uid, [id]):
message = _('Invoice ') + " '" + name + "' "+ _("is validated.")
self.log(cr, uid, inv_id, message)
diff --git a/addons/account/project/analytic_account_demo.xml b/addons/account/project/analytic_account_demo.xml
index 98fcb8fa370..da1cb8f8fa7 100644
--- a/addons/account/project/analytic_account_demo.xml
+++ b/addons/account/project/analytic_account_demo.xml
@@ -2,7 +2,7 @@
- Analytic Chart
+
0
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index f49e90b99a6..d4d5050e5bb 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -23,25 +23,25 @@
account.analytic.account
search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
@@ -54,17 +54,17 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -109,13 +109,13 @@
form
tree,graph,form
- {"search_default_user_id":uid}
+ {"search_default_user_id":uid}
-
+
Accounts to Renew
ir.actions.act_window
account.analytic.account
@@ -141,7 +141,7 @@
-
@@ -200,22 +200,26 @@
account.analytic.line
search
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -298,16 +302,16 @@
-
+
account.analytic.journal.search
account.analytic.journal
search
-
-
+
+
-
+
@@ -446,14 +450,14 @@
search
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/addons/account/report/report_balance_sheet.rml b/addons/account/report/report_balance_sheet.rml
index c540e16f58e..20f52cdd2f2 100644
--- a/addons/account/report/report_balance_sheet.rml
+++ b/addons/account/report/report_balance_sheet.rml
@@ -186,7 +186,7 @@
[[ '. '*(a['level']-1) ]] [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]][[ a['name'] ]]
- [[ a['balance'] and formatLang(abs(a['balance'])) or 0.0 ]]
+ [[ a['balance'] and formatLang(get_abs(a['balance'])) or 0.0 ]]
@@ -196,7 +196,7 @@
Balance:([[ get_currency(data['form']) ]])
- [[ sum_dr() and formatLang(sum_dr()) or 0.0 ]]
+ [[ sum_dr() and formatLang(get_abs(sum_dr())) or 0.0 ]]
@@ -221,10 +221,10 @@
[[ repeatIn(get_lines_another('asset'), 'a') ]] [[ a['code'] ]][[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]]
- [[ a['code'] ]][[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]][[ a['name'] ]]
+ [[ '. '*(a['level']-1) ]] [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]][[ a['name'] ]]
- [[ a['balance'] and formatLang(abs(a['balance'])) or 0.0 ]]
+ [[ a['balance'] and formatLang(get_abs(a['balance'])) or 0.0 ]]
@@ -234,7 +234,7 @@
Balance:([[ get_currency(data['form']) ]])
- [[ sum_cr() and formatLang(sum_cr()) or 0.0 ]]
+ [[ sum_cr() and formatLang(get_abs(sum_cr())) or 0.0 ]]
diff --git a/addons/account/report/report_balance_sheet_horizontal.rml b/addons/account/report/report_balance_sheet_horizontal.rml
index d9b92da3856..3e60f7bfd2c 100644
--- a/addons/account/report/report_balance_sheet_horizontal.rml
+++ b/addons/account/report/report_balance_sheet_horizontal.rml
@@ -197,7 +197,7 @@
[[ '. '*(a['level']-1) ]] [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]][[ a['name'] ]]
- [[ a['balance'] and formatLang(abs(a['balance'])) or 0.0 ]]
+ [[ a['balance'] and formatLang(get_abs(a['balance'])) or 0.0 ]]
[[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]] [[ a['code1'] ]]
@@ -206,7 +206,7 @@
[[ '. '*(a['level1']-1) ]] [[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) ]][[ a['name1'] ]]
- [[ a['balance1'] and formatLang(abs(a['balance1'])) or 0.0 ]]
+ [[ a['balance1'] and formatLang(get_abs(a['balance1'])) or 0.0 ]]
@@ -216,13 +216,13 @@
Balance:([[ get_currency(data['form']) ]])
- [[ sum_dr() and formatLang(abs(sum_dr())) or 0.0 ]]
+ [[ sum_dr() and formatLang(get_abs(sum_dr())) or 0.0 ]]
Balance:([[ get_currency(data['form']) ]])
- [[ sum_cr() and formatLang(abs(sum_cr())) or 0.0 ]]
+ [[ sum_cr() and formatLang(get_abs(sum_cr())) or 0.0 ]]
diff --git a/addons/account/report/report_bs.py b/addons/account/report/report_bs.py
index 5a7294338c5..04fafd7ed30 100644
--- a/addons/account/report/report_bs.py
+++ b/addons/account/report/report_bs.py
@@ -37,6 +37,7 @@ class report_balancesheet_horizontal(rml_parse.rml_parse):
self.result_temp=[]
self.localcontext.update({
'time': time,
+ 'get_abs' : self.get_abs,
'get_lines' : self.get_lines,
'get_lines_another' : self.get_lines_another,
'get_company': self.get_company,
@@ -48,6 +49,9 @@ class report_balancesheet_horizontal(rml_parse.rml_parse):
})
self.context = context
+
+ def get_abs(self,amount):
+ return abs(amount)
def sum_dr(self):
if self.res_pl['type'] == 'Net Profit':
diff --git a/addons/account/report/report_pl.py b/addons/account/report/report_pl.py
index c693b9940c9..e78639cff83 100644
--- a/addons/account/report/report_pl.py
+++ b/addons/account/report/report_pl.py
@@ -35,6 +35,7 @@ class report_pl_account_horizontal(rml_parse.rml_parse):
self.result_temp=[]
self.localcontext.update( {
'time': time,
+ 'get_abs' : self.get_abs,
'get_lines' : self.get_lines,
'get_lines_another' : self.get_lines_another,
'get_company': self.get_company,
@@ -45,7 +46,10 @@ class report_pl_account_horizontal(rml_parse.rml_parse):
'final_result' : self.final_result,
})
self.context = context
-
+
+ def get_abs(self,amount):
+ return abs(amount)
+
def final_result(self):
return self.res_pl
diff --git a/addons/account/report/report_pl_account.rml b/addons/account/report/report_pl_account.rml
index 6e72a198115..80aa4b97701 100644
--- a/addons/account/report/report_pl_account.rml
+++ b/addons/account/report/report_pl_account.rml
@@ -201,7 +201,7 @@
- [[ a.balance and formatLang(abs(a.balance)) or 0.0 ]]
+ [[ a.balance and formatLang(get_abs(a.balance)) or 0.0 ]]
@@ -214,7 +214,7 @@
[[ final_result()['type'] == 'Net Profit C.F.B.L.' and final_result()['type'] or removeParentNode('blockTable') ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Profit C.F.B.L.' and formatLang(abs(final_result()['balance'])) or 0.0 ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Profit C.F.B.L.' and formatLang(get_abs(final_result()['balance'])) or 0.0 ]]
@@ -224,7 +224,7 @@
Total:([[ get_currency(data['form']) ]])
- [[ sum_dr() and formatLang(abs(sum_dr())) or 0.0 ]]
+ [[ sum_dr() and formatLang(get_abs(sum_dr())) or 0.0 ]]
@@ -256,7 +256,7 @@
- [[ a.balance and formatLang(abs(a.balance)) or 0.0 ]]
+ [[ a.balance and formatLang(get_abs(a.balance)) or 0.0 ]]
@@ -269,7 +269,7 @@
[[ final_result()['type'] == 'Net Loss C.F.B.L.' and final_result()['type'] or removeParentNode('blockTable') ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Loss C.F.B.L.' and formatLang(abs(final_result()['balance'])) or 0.0 ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Loss C.F.B.L.' and formatLang(get_abs(final_result()['balance'])) or 0.0 ]]
@@ -279,7 +279,7 @@
Total:([[ get_currency(data['form']) ]])
- [[ sum_cr() and formatLang(abs(sum_cr())) or 0.0 ]]
+ [[ sum_cr() and formatLang(get_abs(sum_cr())) or 0.0 ]]
diff --git a/addons/account/report/report_pl_account_horizontal.rml b/addons/account/report/report_pl_account_horizontal.rml
index b68d375d3be..35e4ff47268 100644
--- a/addons/account/report/report_pl_account_horizontal.rml
+++ b/addons/account/report/report_pl_account_horizontal.rml
@@ -214,7 +214,7 @@
- [[ a['balance'] and formatLang(abs(a['balance'])) or 0.0 ]]
+ [[ a['balance'] and formatLang(get_abs(a['balance'])) or 0.0 ]]
@@ -227,7 +227,7 @@
- [[ a['balance1'] and formatLang(abs(a['balance1'])) or 0.0 ]]
+ [[ a['balance1'] and formatLang(get_abs(a['balance1'])) or 0.0 ]]
@@ -240,7 +240,7 @@
[[ final_result()['type'] == 'Net Profit C.F.B.L.' and final_result()['type'] or '' ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Profit C.F.B.L.' and formatLang(abs(final_result()['balance'])) or 0.0 ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Profit C.F.B.L.' and formatLang(get_abs(final_result()['balance'])) or 0.0 ]]
@@ -249,7 +249,7 @@
[[ final_result()['type'] == 'Net Loss C.F.B.L.' and final_result()['type'] or '' ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Loss C.F.B.L.' and formatLang(abs(final_result()['balance'])) or 0.0 ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Loss C.F.B.L.' and formatLang(get_abs(final_result()['balance'])) or 0.0 ]]
@@ -260,13 +260,13 @@
Total:([[ get_currency(data['form']) ]])
- [[ sum_dr() and formatLang(abs(sum_dr())) or 0.0 ]]
+ [[ sum_dr() and formatLang(get_abs(sum_dr())) or 0.0 ]]
Total:([[ get_currency(data['form']) ]])
- [[ sum_cr() and formatLang(abs(sum_cr())) or 0.0 ]]
+ [[ sum_cr() and formatLang(get_abs(sum_cr())) or 0.0 ]]
diff --git a/addons/account/security/ir.model.access.csv b/addons/account/security/ir.model.access.csv
index 4337bdc61af..5f4bd2e9fa1 100644
--- a/addons/account/security/ir.model.access.csv
+++ b/addons/account/security/ir.model.access.csv
@@ -62,6 +62,7 @@
"access_account_fiscalyear","account.fiscalyear","model_account_fiscalyear","account.group_account_manager",1,1,1,1
"access_account_fiscalyear_user","account.fiscalyear.user","model_account_fiscalyear","account.group_account_user",1,0,0,0
"access_account_fiscalyear_invoice","account.fiscalyear.invoice","model_account_fiscalyear","account.group_account_invoice",1,0,0,0
+"access_account_fiscalyear_partner_manager","account.fiscalyear.partnermanager","model_account_fiscalyear","base.group_partner_manager",1,0,0,0
"access_res_currency_account_manager","res.currency account manager","base.model_res_currency","group_account_manager",1,1,1,1
"access_res_currency_rate_account_manager","res.currency.rate account manager","base.model_res_currency_rate","group_account_manager",1,1,1,1
"access_account_invoice_user","account.invoice user","model_account_invoice","base.group_user",1,0,0,0
diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py
index 1dea8e8d4f3..3f6bd126251 100644
--- a/addons/account/wizard/__init__.py
+++ b/addons/account/wizard/__init__.py
@@ -45,7 +45,9 @@ import account_open_closed_fiscalyear
import account_compare_account_balance_report
import account_invoice_state
import account_chart
-import account_move_line_select
+#TODO: remove this file no moe used
+# also remove related view fiel
+#import account_move_line_select
import account_validate_account_move
import account_use_model
diff --git a/addons/account/wizard/account_automatic_reconcile.py b/addons/account/wizard/account_automatic_reconcile.py
index 0ee58eeb01a..ef177516718 100644
--- a/addons/account/wizard/account_automatic_reconcile.py
+++ b/addons/account/wizard/account_automatic_reconcile.py
@@ -29,15 +29,15 @@ class account_automatic_reconcile(osv.osv_memory):
_description = 'Automatic Reconcile'
_columns = {
- 'account_ids': fields.many2many('account.account', 'reconcile_account_rel', 'reconcile_id', 'account_id', 'Account to reconcile', domain = [('reconcile','=',1)], \
+ 'account_ids': fields.many2many('account.account', 'reconcile_account_rel', 'reconcile_id', 'account_id', 'Accounts to Reconcile', domain = [('reconcile','=',1)], \
help = 'If no account is specified, the reconciliation will be made using every accounts that can be reconcilied'),
'writeoff_acc_id': fields.many2one('account.account', 'Account'),
'journal_id': fields.many2one('account.journal', 'Journal'),
'period_id': fields.many2one('account.period', 'Period'),
'max_amount': fields.float('Maximum write-off amount'),
'power': fields.selection([(p, str(p)) for p in range(2, 10)], 'Power', required=True, help='Number of partial amounts that can be combined to find a balance point can be chosen as the power of the automatic reconciliation'),
- 'date1': fields.date('Start of period', required=True),
- 'date2': fields.date('End of period', required=True),
+ 'date1': fields.date('Starting Date', required=True),
+ 'date2': fields.date('Ending Date', required=True),
'reconciled': fields.integer('Reconciled transactions', readonly=True),
'unreconciled': fields.integer('Not reconciled transactions', readonly=True),
'allow_write_off': fields.boolean('Allow write off')
@@ -54,6 +54,7 @@ class account_automatic_reconcile(osv.osv_memory):
'date2': time.strftime('%Y-%m-%d'),
'reconciled': _get_reconciled,
'unreconciled': _get_unreconciled,
+ 'power':2
}
#TODO: cleanup and comment this code... For now, it is awfulllll
@@ -245,4 +246,4 @@ class account_automatic_reconcile(osv.osv_memory):
account_automatic_reconcile()
-# 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/wizard/account_automatic_reconcile_view.xml b/addons/account/wizard/account_automatic_reconcile_view.xml
index 838d9fd9489..bda89971a3d 100644
--- a/addons/account/wizard/account_automatic_reconcile_view.xml
+++ b/addons/account/wizard/account_automatic_reconcile_view.xml
@@ -7,33 +7,33 @@
account.automatic.reconcile
form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
Account Automatic Reconcile
@@ -47,29 +47,29 @@
For an invoice to be considered as paid, the invoice entries must be reconciled with counterparts, usually payments. With the automatic reconciliation functionality, OpenERP make its own search for entries to reconcile in a series of accounts. It tries to find entries for each partner where the amounts correspond.
-
+
Automatic reconcile unreconcile
account.automatic.reconcile
form
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
diff --git a/addons/account/wizard/account_balance_report_view.xml b/addons/account/wizard/account_balance_report_view.xml
index 77c615611d3..7011dadef7d 100644
--- a/addons/account/wizard/account_balance_report_view.xml
+++ b/addons/account/wizard/account_balance_report_view.xml
@@ -7,41 +7,41 @@
account.balance.report
form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
Account Balance
account.balance.report
ir.actions.act_window
@@ -51,7 +51,7 @@
new
-
+
Account Balance
@@ -59,19 +59,19 @@
action
account.account
-
+
-
+
Account Balance
account.balance.report
form
-
-
-
-
-
-
+
+
+
+
+
+
@@ -86,11 +86,11 @@
new
-
+
-
+
diff --git a/addons/account/wizard/account_bs_report.py b/addons/account/wizard/account_bs_report.py
index 27c50b4b880..dfd035680f2 100644
--- a/addons/account/wizard/account_bs_report.py
+++ b/addons/account/wizard/account_bs_report.py
@@ -114,14 +114,12 @@ class account_bs_report(osv.osv_memory):
'type': 'ir.actions.report.xml',
'report_name': 'account.balancesheet.horizontal',
'datas': data,
- 'nodestroy':True,
}
else:
return {
'type': 'ir.actions.report.xml',
'report_name': 'account.balancesheet',
'datas': data,
- 'nodestroy':True,
}
def _check_date(self, cr, uid, data, context=None):
diff --git a/addons/account/wizard/account_central_journal_view.xml b/addons/account/wizard/account_central_journal_view.xml
index 6a9526c415e..9c9d687785c 100644
--- a/addons/account/wizard/account_central_journal_view.xml
+++ b/addons/account/wizard/account_central_journal_view.xml
@@ -2,27 +2,27 @@
-
+
Account central Journal
account.central.journal
form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -35,12 +35,12 @@
new
-
+
-
-
\ No newline at end of file
+
+
diff --git a/addons/account/wizard/account_fiscalyear_close_state.py b/addons/account/wizard/account_fiscalyear_close_state.py
index 403abbcbe12..4d0479f8014 100644
--- a/addons/account/wizard/account_fiscalyear_close_state.py
+++ b/addons/account/wizard/account_fiscalyear_close_state.py
@@ -58,6 +58,11 @@ cancelled, please check the box !'))
'WHERE fiscalyear_id = %s', ('done', fy_id))
cr.execute('UPDATE account_fiscalyear ' \
'SET state = %s WHERE id = %s', ('done', fy_id))
+
+ # Log message for Fiscalyear
+ fy_pool = self.pool.get('account.fiscalyear')
+ fy_code = fy_pool.browse(cr, uid, fy_id, context=context).code
+ fy_pool.log(cr, uid, fy_id, "Fiscal year '%s' is closed, no more modification allowed." % (fy_code))
return {}
account_fiscalyear_close_state()
diff --git a/addons/account/wizard/account_general_journal_view.xml b/addons/account/wizard/account_general_journal_view.xml
index a3a54843396..711e3a85329 100644
--- a/addons/account/wizard/account_general_journal_view.xml
+++ b/addons/account/wizard/account_general_journal_view.xml
@@ -2,27 +2,27 @@
-
+
Account Genral Journal
account.general.journal
form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -35,12 +35,12 @@
new
-
+
-
-
\ No newline at end of file
+
+
diff --git a/addons/account/wizard/account_general_ledger_report_view.xml b/addons/account/wizard/account_general_ledger_report_view.xml
index b06c24d501d..67526d51788 100644
--- a/addons/account/wizard/account_general_ledger_report_view.xml
+++ b/addons/account/wizard/account_general_ledger_report_view.xml
@@ -96,7 +96,7 @@
diff --git a/addons/account/wizard/account_invoice_state_view.xml b/addons/account/wizard/account_invoice_state_view.xml
index 8bdfb4ba8e2..1fd466a9dce 100644
--- a/addons/account/wizard/account_invoice_state_view.xml
+++ b/addons/account/wizard/account_invoice_state_view.xml
@@ -25,15 +25,15 @@
new
-
-
-
- Confirm Draft Invoices
- client_action_multi
-
- action
- account.invoice
-
+
+
+
+
+
+
+
+
+
account.invoice.cancel.form
@@ -59,15 +59,15 @@
new
-
-
-
- Cancel Selected Invoices
- client_action_multi
-
- action
- account.invoice
-
+
+
+
+
+
+
+
+
+
diff --git a/addons/account/wizard/account_move_line_select_view.xml b/addons/account/wizard/account_move_line_select_view.xml
index bf3831baea0..8c462318271 100644
--- a/addons/account/wizard/account_move_line_select_view.xml
+++ b/addons/account/wizard/account_move_line_select_view.xml
@@ -7,12 +7,12 @@
account.move.line.select
form
-
-
-
+
+
+
-
-
+
+
@@ -27,13 +27,13 @@
new
-
- tree_but_open
- account.account
- Open Account
-
-
-
+
+
+
+
+
+
+
diff --git a/addons/account/wizard/account_period_close.py b/addons/account/wizard/account_period_close.py
index f0f050e953c..56a4f2c5e35 100644
--- a/addons/account/wizard/account_period_close.py
+++ b/addons/account/wizard/account_period_close.py
@@ -46,6 +46,11 @@ class account_period_close(osv.osv_memory):
for id in context['active_ids']:
cr.execute('update account_journal_period set state=%s where period_id=%s', (mode, id))
cr.execute('update account_period set state=%s where id=%s', (mode, id))
+
+ # Log message for Period
+ period_pool = self.pool.get('account.period')
+ for period_id, name in period_pool.name_get(cr, uid, [id]):
+ period_pool.log(cr, uid, period_id, "Period '%s' is closed, no more modification allowed for this period." % (name))
return {}
account_period_close()
diff --git a/addons/account/wizard/account_pl_report.py b/addons/account/wizard/account_pl_report.py
index 79b701b6fb9..9ae7a4dbedf 100644
--- a/addons/account/wizard/account_pl_report.py
+++ b/addons/account/wizard/account_pl_report.py
@@ -111,14 +111,12 @@ class account_pl_report(osv.osv_memory):
'type': 'ir.actions.report.xml',
'report_name': 'pl.account.horizontal',
'datas': data,
- 'nodestroy':True,
}
else:
return {
'type': 'ir.actions.report.xml',
'report_name': 'pl.account',
'datas': data,
- 'nodestroy':True,
}
def _check_date(self, cr, uid, data, context=None):
diff --git a/addons/account/wizard/account_pl_report_view.xml b/addons/account/wizard/account_pl_report_view.xml
index 47ad83a235e..219d41d312f 100644
--- a/addons/account/wizard/account_pl_report_view.xml
+++ b/addons/account/wizard/account_pl_report_view.xml
@@ -76,11 +76,6 @@
new
-
-
diff --git a/addons/account/wizard/account_use_model_view.xml b/addons/account/wizard/account_use_model_view.xml
index 71f026237ac..560030be2f5 100644
--- a/addons/account/wizard/account_use_model_view.xml
+++ b/addons/account/wizard/account_use_model_view.xml
@@ -10,7 +10,8 @@
-
+
+
diff --git a/addons/account_analytic_plans/i18n/pt_BR.po b/addons/account_analytic_plans/i18n/pt_BR.po
index fecf2b8cc78..d5e41bbabb0 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 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-12 23:52+0000\n"
-"Last-Translator: Emerson \n"
+"PO-Revision-Date: 2010-07-27 20:25+0000\n"
+"Last-Translator: Leandro Chaves \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-06-22 04:10+0000\n"
+"X-Launchpad-Export-Date: 2010-07-28 03:47+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
@@ -136,7 +136,7 @@ msgstr "Selecione Informação"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account3_ids:0
msgid "Account3 Id"
-msgstr ""
+msgstr "ID Conta3"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,journal_id:0
@@ -157,27 +157,27 @@ msgstr "Ref. Conta Analítica"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Analytic Account :"
-msgstr ""
+msgstr "Conta Analítica:"
#. module: account_analytic_plans
#: view:account.analytic.plan.line:0
msgid "Analytic Plan Line"
-msgstr ""
+msgstr "Linha do Plano Analítico"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Analytic Account Reference:"
-msgstr ""
+msgstr "Conta Analítica Referencia"
#. module: account_analytic_plans
#: model:ir.actions.wizard,name:account_analytic_plans.create_model
msgid "Create Model"
-msgstr ""
+msgstr "Criar Modelo"
#. module: account_analytic_plans
#: field:account.analytic.plan,default_instance_id:0
msgid "Default Entries"
-msgstr ""
+msgstr "Lançamentos padrões"
#. module: account_analytic_plans
#: view:account.analytic.plan:0
@@ -185,32 +185,32 @@ msgstr ""
#: field:account.journal,plan_id:0
#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan
msgid "Analytic Plans"
-msgstr ""
+msgstr "Planos Analíticos"
#. module: account_analytic_plans
#: field:account.analytic.plan.line,min_required:0
msgid "Minimum Allowed (%)"
-msgstr ""
+msgstr "Mínimo Permitido (%)"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account1_ids:0
msgid "Account1 Id"
-msgstr ""
+msgstr "Id Conta1"
#. module: account_analytic_plans
#: field:account.analytic.plan.line,max_required:0
msgid "Maximum Allowed (%)"
-msgstr ""
+msgstr "Máximo Permitido (%)"
#. module: account_analytic_plans
#: wizard_view:create.model,info:0
msgid "Distribution Model Saved"
-msgstr ""
+msgstr "Modelo de Distribuição Arquivado (Salvo)"
#. module: account_analytic_plans
#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_instance
msgid "Analytic Plan Instance"
-msgstr ""
+msgstr "Instância do Plano Analítico"
#. module: account_analytic_plans
#: constraint:ir.ui.view:0
@@ -220,7 +220,7 @@ msgstr "Invalido XML para Arquitetura da View"
#. module: account_analytic_plans
#: model:ir.actions.act_window,name:account_analytic_plans.account_analytic_instance_model_open
msgid "Distribution Models"
-msgstr ""
+msgstr "Modelos de Distribuição"
#. module: account_analytic_plans
#: model:ir.module.module,description:account_analytic_plans.module_meta_information
@@ -256,17 +256,47 @@ msgid ""
"for one account entry.\n"
" "
msgstr ""
+"Este modelo permite o uso de vários planos analíticos, de acordo com o "
+"diário geral,\n"
+"de forma que várias linhas analíticas são criadas quando a fatura ou "
+"lançamento\n"
+"são confirmadas.\n"
+"\n"
+"Por exemplo, você pode definir a seguinte estrutura analítica:\n"
+" Projetos\n"
+" Projeto 1\n"
+" SubProj 1.1\n"
+" SubProj 1.2\n"
+" Projeto 2\n"
+" Vendedor\n"
+" Erico\n"
+" Fabiano\n"
+"\n"
+"No exemplo temos dois planos: Projetos e Vendedores. Uma fatura deve\n"
+"ser capaz de escrever lançamentos analíticos nos 2 planos: SubProj 1.1 e\n"
+"Fabiano. A conta também pode ser separada. O exemplo a seguir é para\n"
+"uma fatura que envolve os 2 subprojetos e está associada a um vendedor:\n"
+"\n"
+"Plano1:\n"
+" SubProjeto 1.1: 50%\n"
+" SubProjeto 1.2: 50%\n"
+"Plano2:\n"
+" Eric: 100%\n"
+"\n"
+"Quando esta linha da fatura for confirmada, ela vai gerar 3 linhas\n"
+"analíticas, para um lançamento na conta,\n"
+" "
#. module: account_analytic_plans
#: model:ir.module.module,shortdesc:account_analytic_plans.module_meta_information
msgid "Multiple-plans management in Analytic Accounting"
-msgstr ""
+msgstr "Múltiplos-planos gerenciados na Contabilidade Analítica"
#. module: account_analytic_plans
#: view:account.analytic.plan.line:0
#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_line
msgid "Analytic Plan Lines"
-msgstr ""
+msgstr "Linhas do Plano Analítico"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
@@ -276,68 +306,69 @@ msgstr ""
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,plan_id:0
msgid "Model's Plan"
-msgstr ""
+msgstr "Plano do Modelo"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account2_ids:0
msgid "Account2 Id"
-msgstr ""
+msgstr "Id Conta2"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Amount"
-msgstr ""
+msgstr "Valor"
#. module: account_analytic_plans
#: help:account.analytic.plan.line,root_analytic_id:0
msgid "Root account of this plan."
-msgstr ""
+msgstr "Conta raiz para este plano."
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account6_ids:0
msgid "Account6 Id"
-msgstr ""
+msgstr "Id Conta6"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Quantity"
-msgstr ""
+msgstr "Quantidade"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account_ids:0
msgid "Account Id"
-msgstr ""
+msgstr "Id Conta"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "Code"
-msgstr ""
+msgstr "Código"
#. module: account_analytic_plans
#: wizard_button:create.model,info,end:0
msgid "OK"
-msgstr ""
+msgstr "OK"
#. module: account_analytic_plans
#: field:account.analytic.plan.line,root_analytic_id:0
msgid "Root Account"
-msgstr ""
+msgstr "Conta Raiz"
#. module: account_analytic_plans
#: wizard_view:create.model,info:0
msgid ""
"This distribution model has been saved. You will be able to reuse it later."
msgstr ""
+"Este modelo de distribuição foi salvo. Você poderá reutilizá-lo mais tarde."
#. module: account_analytic_plans
#: field:account.analytic.plan.line,sequence:0
msgid "Sequence"
-msgstr ""
+msgstr "Sequência"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance.line,analytic_account_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Conta analítica"
#. module: account_analytic_plans
#: field:account.analytic.default,analytics_id:0
@@ -346,29 +377,29 @@ msgstr ""
#: field:account.invoice.line,analytics_id:0
#: field:account.move.line,analytics_id:0
msgid "Analytic Distribution"
-msgstr ""
+msgstr "Distribuição Analítica"
#. module: account_analytic_plans
#: model:ir.ui.menu,name:account_analytic_plans.menu_account_analytic_plan_instance_action
msgid "Analytic Distribution's models"
-msgstr ""
+msgstr "Modelos de Distribuição Analítica"
#. module: account_analytic_plans
#: wizard_button:wizard.crossovered.analytic,init,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Cancelar"
#. module: account_analytic_plans
#: wizard_field:wizard.crossovered.analytic,init,date1:0
msgid "Start Date"
-msgstr ""
+msgstr "Data de Início"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "at"
-msgstr ""
+msgstr "em"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "From Date"
-msgstr ""
+msgstr "Data Inicial"
diff --git a/addons/account_budget/i18n/pt_BR.po b/addons/account_budget/i18n/pt_BR.po
index ab01ebba85b..73ac01931a7 100644
--- a/addons/account_budget/i18n/pt_BR.po
+++ b/addons/account_budget/i18n/pt_BR.po
@@ -7,19 +7,19 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-09-08 16:30+0000\n"
-"Last-Translator: Pedro_Maschio \n"
+"PO-Revision-Date: 2010-07-27 20:39+0000\n"
+"Last-Translator: Leandro Chaves \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-06-22 04:18+0000\n"
+"X-Launchpad-Export-Date: 2010-07-28 03:47+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_budget
#: field:crossovered.budget,creating_user_id:0
msgid "Responsible User"
-msgstr ""
+msgstr "Usuário responsável"
#. module: account_budget
#: rml:account.budget:0
@@ -30,28 +30,28 @@ msgstr "% desempenho"
#: model:ir.actions.act_window,name:account_budget.open_budget_post_form
#: model:ir.ui.menu,name:account_budget.menu_budget_post_form
msgid "Budgetary Positions"
-msgstr ""
+msgstr "Posições Orçamentárias"
#. module: account_budget
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nome de modelo inválido na definição da ação"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:crossovered.budget.report:0
msgid "Printed at:"
-msgstr ""
+msgstr "Impresso em:"
#. module: account_budget
#: view:crossovered.budget:0
msgid "Confirm"
-msgstr ""
+msgstr "confirmar"
#. module: account_budget
#: field:crossovered.budget,validating_user_id:0
msgid "Validate User"
-msgstr ""
+msgstr "Validar usuário"
#. module: account_budget
#: constraint:ir.model:0
@@ -64,12 +64,12 @@ msgstr ""
#. module: account_budget
#: selection:crossovered.budget,state:0
msgid "Confirmed"
-msgstr ""
+msgstr "Confirmado"
#. module: account_budget
#: field:account.budget.post.dotation,period_id:0
msgid "Period"
-msgstr ""
+msgstr "Período"
#. module: account_budget
#: wizard_field:account.budget.report,init,date2:0
@@ -77,61 +77,61 @@ msgstr ""
#: wizard_field:wizard.crossovered.budget,init,date_to:0
#: wizard_field:wizard.crossovered.budget.summary,init,date_to:0
msgid "End of period"
-msgstr ""
+msgstr "Fim do período"
#. module: account_budget
#: rml:account.budget:0
msgid "Printing date:"
-msgstr ""
+msgstr "Data de impressão:"
#. module: account_budget
#: selection:crossovered.budget,state:0
msgid "Draft"
-msgstr ""
+msgstr "Provisório"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:account.budget:0
#: rml:crossovered.budget.report:0
msgid "at"
-msgstr ""
+msgstr "em"
#. module: account_budget
#: view:account.budget.post:0
msgid "Dotations"
-msgstr ""
+msgstr "Dotações"
#. module: account_budget
#: rml:account.budget:0
msgid "Performance"
-msgstr ""
+msgstr "Desempenho"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:account.budget:0
#: rml:crossovered.budget.report:0
msgid "Currency:"
-msgstr ""
+msgstr "Moeda:"
#. module: account_budget
#: rml:account.budget:0
msgid "From"
-msgstr ""
+msgstr "De"
#. module: account_budget
#: field:crossovered.budget.lines,percentage:0
msgid "Percentage"
-msgstr ""
+msgstr "Porcentagem"
#. module: account_budget
#: rml:account.budget:0
msgid "Results"
-msgstr ""
+msgstr "Resultados"
#. module: account_budget
#: field:crossovered.budget,state:0
msgid "Status"
-msgstr ""
+msgstr "Estado"
#. module: account_budget
#: model:ir.module.module,description:account_budget.module_meta_information
@@ -162,23 +162,46 @@ msgid ""
"Budgets per Budgets.\n"
"\n"
msgstr ""
+"Este módulo permite um gerenciamento de orçamentos analíticos e cruzamento "
+"com outros módulos.\n"
+"\n"
+"Uma vez definido o Orçamento Principal e Orçamentos acessórios (em "
+"Finanças/Gerenciamento/Orçamento/), os Gerentes de Projeto podem marcar o "
+"montante planejado em cada Conta Analítica.\n"
+"\n"
+"O contador tem a possibilidade de ver o montante total planejado por cada "
+"Orçamento (Principal e Acessório) para poder se assegurar de que o total "
+"planejado não é maior ou menor do que o planejado para esse Orçamento. Cada "
+"lista de registros poderá ser alternada para o modo gráfico. \n"
+"\n"
+"Três relatórios estão disponíveis:\n"
+"\n"
+"1. O primeiro está disponível na Lista de Orçamentos. Este demonstra a "
+"alocação, para os Orçamentos, das Contas Analíticas por Orçamento "
+"Principal.\n"
+"2. O segundo é um resumo do primeiro. Somente demonstra a alocação, para os "
+"Orçamentos selecionados, das Contas Analíticas.\n"
+"3. O último está disponível no Plano de Contas Analítico. Demonstra a "
+"alocação, para as Contas selecionadas, do Orçamento Principal, por "
+"Orçamento.\n"
+"\n"
#. module: account_budget
#: rml:account.budget:0
#: rml:crossovered.budget.report:0
msgid "%"
-msgstr ""
+msgstr "%"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:crossovered.budget.report:0
msgid "Description"
-msgstr ""
+msgstr "Descrição"
#. module: account_budget
#: rml:account.analytic.account.budget:0
msgid "Analytic Account :"
-msgstr ""
+msgstr "Conta Analítica:"
#. module: account_budget
#: wizard_button:account.budget.report,init,report:0
@@ -186,12 +209,12 @@ msgstr ""
#: wizard_button:wizard.crossovered.budget,init,report:0
#: wizard_button:wizard.crossovered.budget.summary,init,report:0
msgid "Print"
-msgstr ""
+msgstr "Imprimir"
#. module: account_budget
#: rml:account.budget:0
msgid "A/c No."
-msgstr ""
+msgstr "No.Cta."
#. module: account_budget
#: rml:account.analytic.account.budget:0
@@ -205,60 +228,60 @@ msgstr "para"
#: rml:account.budget:0
#: rml:crossovered.budget.report:0
msgid "Total :"
-msgstr ""
+msgstr "Total :"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: field:crossovered.budget.lines,planned_amount:0
#: rml:crossovered.budget.report:0
msgid "Planned Amount"
-msgstr ""
+msgstr "Valor Planejado"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:crossovered.budget.report:0
msgid "Perc(%)"
-msgstr ""
+msgstr "Perc(%)"
#. module: account_budget
#: rml:account.budget:0
msgid "Period Budget"
-msgstr ""
+msgstr "Orçamento do Período"
#. module: account_budget
#: rml:account.budget:0
msgid "Budget Analysis"
-msgstr ""
+msgstr "Análise do Orçamento"
#. module: account_budget
#: view:crossovered.budget:0
#: selection:crossovered.budget,state:0
msgid "Done"
-msgstr ""
+msgstr "Completo"
#. module: account_budget
#: view:crossovered.budget:0
msgid "Validate"
-msgstr ""
+msgstr "Validar"
#. module: account_budget
#: wizard_view:wizard.crossovered.budget,init:0
#: wizard_view:wizard.crossovered.budget.summary,init:0
msgid "Select Options"
-msgstr ""
+msgstr "Selecione Opções"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: field:crossovered.budget.lines,practical_amount:0
#: rml:crossovered.budget.report:0
msgid "Practical Amount"
-msgstr ""
+msgstr "Valor Real"
#. module: account_budget
#: field:crossovered.budget,date_to:0
#: field:crossovered.budget.lines,date_to:0
msgid "End Date"
-msgstr ""
+msgstr "Data Final"
#. module: account_budget
#: constraint:ir.ui.view:0
@@ -268,7 +291,7 @@ msgstr "Invalido XML para Arquitetura da View"
#. module: account_budget
#: field:crossovered.budget.lines,theoritical_amount:0
msgid "Theoritical Amount"
-msgstr ""
+msgstr "Valor Estimado"
#. module: account_budget
#: field:account.budget.post,name:0
@@ -280,18 +303,18 @@ msgstr "Nome"
#. module: account_budget
#: model:ir.actions.wizard,name:account_budget.wizard_crossovered_budget_menu_1
msgid "Print Summary of Budgets"
-msgstr ""
+msgstr "Imprimir Resumo dos Orçamentos"
#. module: account_budget
#: model:ir.actions.wizard,name:account_budget.wizard_budget_spread
msgid "Spread amount"
-msgstr ""
+msgstr "Valor Alocado"
#. module: account_budget
#: view:account.analytic.account:0
#: view:account.budget.post:0
msgid "Lines"
-msgstr ""
+msgstr "Linhas"
#. module: account_budget
#: rml:account.budget:0
@@ -302,58 +325,58 @@ msgstr ""
#: model:ir.model,name:account_budget.model_crossovered_budget
#: model:ir.ui.menu,name:account_budget.menu_act_crossovered_budget_view
msgid "Budget"
-msgstr ""
+msgstr "Orçamento"
#. module: account_budget
#: field:account.budget.post.dotation,post_id:0
msgid "Item"
-msgstr ""
+msgstr "Item"
#. module: account_budget
#: field:account.budget.post.dotation,amount:0
#: wizard_field:account.budget.spread,init,amount:0
msgid "Amount"
-msgstr ""
+msgstr "Valor"
#. module: account_budget
#: field:crossovered.budget.lines,paid_date:0
msgid "Paid Date"
-msgstr ""
+msgstr "Data do Pagamento"
#. module: account_budget
#: model:ir.actions.act_window,name:account_budget.action_account_budget_post_tree
#: model:ir.ui.menu,name:account_budget.menu_action_account_budget_post_tree
#: model:ir.ui.menu,name:account_budget.next_id_31
msgid "Budgets"
-msgstr ""
+msgstr "Orçamentos"
#. module: account_budget
#: selection:crossovered.budget,state:0
msgid "Cancelled"
-msgstr ""
+msgstr "Cancelado"
#. module: account_budget
#: view:account.budget.post.dotation:0
#: model:ir.model,name:account_budget.model_account_budget_post_dotation
msgid "Budget Dotation"
-msgstr ""
+msgstr "Dotação Orçamentária"
#. module: account_budget
#: view:account.budget.post.dotation:0
msgid "Budget Dotations"
-msgstr ""
+msgstr "Dotações Orçamentárias"
#. module: account_budget
#: rml:account.budget:0
msgid "Budget Item Detail"
-msgstr ""
+msgstr "Detalhe do Item do Orçamento"
#. module: account_budget
#: view:account.budget.post:0
#: field:crossovered.budget.lines,general_budget_id:0
#: model:ir.model,name:account_budget.model_account_budget_post
msgid "Budgetary Position"
-msgstr ""
+msgstr "Posição Orçamentária"
#. module: account_budget
#: wizard_field:account.budget.report,init,date1:0
@@ -361,7 +384,7 @@ msgstr ""
#: wizard_field:wizard.crossovered.budget,init,date_from:0
#: wizard_field:wizard.crossovered.budget.summary,init,date_from:0
msgid "Start of period"
-msgstr ""
+msgstr "Início do período"
#. module: account_budget
#: model:ir.actions.report.xml,name:account_budget.account_analytic_account_budget
@@ -369,49 +392,49 @@ msgstr ""
#: model:ir.actions.wizard,name:account_budget.account_analytic_account_budget_report
#: model:ir.actions.wizard,name:account_budget.wizard_crossovered_budget_menu
msgid "Print Budgets"
-msgstr ""
+msgstr "Imprimir Orçamentos"
#. module: account_budget
#: field:account.budget.post,code:0
#: field:crossovered.budget,code:0
msgid "Code"
-msgstr ""
+msgstr "Código"
#. module: account_budget
#: field:account.budget.post.dotation,tot_planned:0
msgid "Total Planned Amount"
-msgstr ""
+msgstr "Valor Total Planejado"
#. module: account_budget
#: wizard_view:wizard.analytic.account.budget.report,init:0
msgid "Select Dates Period"
-msgstr ""
+msgstr "Selecione as Datas do Período"
#. module: account_budget
#: field:account.budget.post,dotation_ids:0
msgid "Spreading"
-msgstr ""
+msgstr "Alocação"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:crossovered.budget.report:0
msgid "Theoretical Amount"
-msgstr ""
+msgstr "Valor Planejado"
#. module: account_budget
#: wizard_field:account.budget.spread,init,fiscalyear:0
msgid "Fiscal Year"
-msgstr ""
+msgstr "Ano Fiscal"
#. module: account_budget
#: field:crossovered.budget.lines,analytic_account_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Conta Analítica"
#. module: account_budget
#: rml:crossovered.budget.report:0
msgid "Budget :"
-msgstr ""
+msgstr "Orçamento:"
#. module: account_budget
#: rml:account.budget:0
@@ -419,18 +442,18 @@ msgstr ""
#: wizard_view:account.budget.spread,init:0
#: wizard_button:account.budget.spread,init,spread:0
msgid "Spread"
-msgstr ""
+msgstr "Alocação"
#. module: account_budget
#: view:account.budget.post:0
#: field:account.budget.post,account_ids:0
msgid "Accounts"
-msgstr ""
+msgstr "Contas"
#. module: account_budget
#: model:ir.actions.report.xml,name:account_budget.account_budget
msgid "Print Budget"
-msgstr ""
+msgstr "Imprimir Orçamento"
#. module: account_budget
#: view:account.analytic.account:0
@@ -445,7 +468,7 @@ msgstr ""
#: model:ir.model,name:account_budget.model_crossovered_budget_lines
#: model:ir.ui.menu,name:account_budget.menu_act_crossovered_budget_lines_view
msgid "Budget Lines"
-msgstr ""
+msgstr "Linhas do Orçamento"
#. module: account_budget
#: wizard_button:account.budget.report,init,end:0
@@ -455,31 +478,31 @@ msgstr ""
#: wizard_button:wizard.crossovered.budget,init,end:0
#: wizard_button:wizard.crossovered.budget.summary,init,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Cancelar"
#. module: account_budget
#: model:ir.module.module,shortdesc:account_budget.module_meta_information
msgid "Budget Management"
-msgstr ""
+msgstr "Administração do Orçamento"
#. module: account_budget
#: field:crossovered.budget,date_from:0
#: field:crossovered.budget.lines,date_from:0
msgid "Start Date"
-msgstr ""
+msgstr "Data de Início"
#. module: account_budget
#: rml:account.analytic.account.budget:0
#: rml:crossovered.budget.report:0
msgid "Analysis from"
-msgstr ""
+msgstr "Análise de"
#. module: account_budget
#: selection:crossovered.budget,state:0
msgid "Validated"
-msgstr ""
+msgstr "Validado"
#. module: account_budget
#: wizard_view:account.budget.report,init:0
msgid "Select period"
-msgstr ""
+msgstr "Selecione período"
diff --git a/addons/account_coda/wizard/__init__.py b/addons/account_coda/wizard/__init__.py
index e9214ee1e44..950c9fc8d77 100644
--- a/addons/account_coda/wizard/__init__.py
+++ b/addons/account_coda/wizard/__init__.py
@@ -20,6 +20,7 @@
##############################################################################
import account_coda_import
+import coda_import
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account_coda/wizard/coda_import.py b/addons/account_coda/wizard/coda_import.py
new file mode 100644
index 00000000000..39aa7b645cb
--- /dev/null
+++ b/addons/account_coda/wizard/coda_import.py
@@ -0,0 +1,347 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2009 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 pooler
+import time
+import datetime
+import wizard
+import netsvc
+import base64
+from osv import osv
+from tools.translate import _
+
+codawiz_form = """
+
+
+
+
+
+
+
+
+
+
+"""
+
+codawiz_fields = {
+ 'journal_id' : {
+ 'string':'Bank Journal',
+ 'type':'many2one',
+ 'relation':'account.journal',
+ 'required':True,
+
+ },
+ 'coda' : {
+ 'string':'Coda File',
+ 'type':'binary',
+ 'required':True,
+ },
+ 'def_payable' : {
+ 'string' : 'Default Payable Account',
+ 'type' : 'many2one',
+ 'relation': 'account.account',
+ 'required':True,
+ 'domain':[('type','=','payable')],
+ 'help': 'Set here the payable account that will be used, by default, if the partner is not found',
+ },
+ 'def_receivable' : {
+ 'string' : 'Default receivable Account',
+ 'type' : 'many2one',
+ 'relation': 'account.account',
+ 'required':True,
+ 'domain':[('type','=','receivable')],
+ 'help': 'Set here the receivable account that will be used, by default, if the partner is not found',
+ },
+ 'awaiting_account' : {
+ 'string' : 'Default Account for Unrecognized Movement',
+ 'type' : 'many2one',
+ 'relation': 'account.account',
+ 'required':True,
+ 'help': 'Set here the default account that will be used, if the partner is found but does not have the bank account , or if he is domiciled',
+
+ }
+
+}
+
+result_form = """
+
+
+
+
+"""
+
+result_fields = {
+
+ 'note' : {'string':'Log','type':'text'}
+
+}
+
+
+def _coda_parsing(self, cr, uid, data, context):
+ pool = pooler.get_pool(cr.dbname)
+ codafile = data['form']['coda']
+ journal_code = pool.get('account.journal').browse(cr, uid, data['form']['journal_id'], context).code
+ def_pay_acc = data['form']['def_payable']
+ def_rec_acc = data['form']['def_receivable']
+
+ str_log = ""
+ err_log = "Errors:\n------\n"
+ nb_err=0
+ std_log=''
+ str_log1 = "Coda File is Imported : "
+ str_not=''
+ str_not1=''
+
+ bank_statements=[]
+ recordlist = base64.decodestring(codafile).split('\n')
+ recordlist.pop()
+ for line in recordlist:
+ if line[0] == '0':
+ # header data
+ bank_statement = {}
+ bank_statement["bank_statement_line"]={}
+ bank_statement_lines = {}
+ bank_statement['date'] = str2date(line[5:11])
+ bank_statement['journal_id']=data['form']['journal_id']
+ period_id = pool.get('account.period').search(cr,uid,[('date_start','<=',time.strftime('%Y-%m-%d',time.strptime(bank_statement['date'],"%y/%m/%d"))),('date_stop','>=',time.strftime('%Y-%m-%d',time.strptime(bank_statement['date'],"%y/%m/%d")))])
+ bank_statement['period_id'] = period_id[0]
+ bank_statement['state']='draft'
+ elif line[0] == '1':
+ # old balance data
+ bal_start = list2float(line[43:58])
+ if line[42] == '1':
+ bal_start = - bal_start
+ bank_statement["balance_start"]= bal_start
+ bank_statement["acc_number"]=line[5:17]
+ bank_statement["acc_holder"]=line[64:90]
+ bank_statement['name'] = journal_code + ' ' + str(line[2:5])
+
+ elif line[0]=='2':
+ # movement data record 2
+ if line[1]=='1':
+ # movement data record 2.1
+ if bank_statement_lines.has_key(line[2:6]):
+ continue
+ st_line = {}
+ st_line['extra_note'] = ''
+ st_line['statement_id']=0
+ st_line['ref'] = line[2:10]
+ st_line['date'] = time.strftime('%Y-%m-%d',time.strptime(str2date(line[115:121]),"%y/%m/%d")),
+ st_line_amt = list2float(line[32:47])
+ if line[61]=='1':
+ st_line['toreconcile'] = True
+ st_line['name']=line[65:77]
+ else:
+ st_line['toreconcile'] = False
+ st_line['name']=line[62:115]
+
+ st_line['free_comm'] = st_line['name']
+ st_line['val_date']=time.strftime('%Y-%m-%d',time.strptime(str2date(line[47:53]),"%y/%m/%d")),
+ st_line['entry_date']=time.strftime('%Y-%m-%d',time.strptime(str2date(line[115:121]),"%y/%m/%d")),
+ st_line['partner_id']=0
+ if line[31] == '1':
+ st_line_amt = - st_line_amt
+ st_line['account_id'] = def_pay_acc
+ else:
+ st_line['account_id'] = def_rec_acc
+ st_line['amount'] = st_line_amt
+ bank_statement_lines[line[2:6]]=st_line
+ bank_statement["bank_statement_line"]=bank_statement_lines
+ elif line[1] == '2':
+ st_line_name = line[2:6]
+ bank_statement_lines[st_line_name].update({'account_id': data['form']['awaiting_account']})
+
+ elif line[1] == '3':
+ # movement data record 3.1
+ st_line_name = line[2:6]
+ st_line_partner_acc = str(line[10:47]).strip()
+ cntry_number=line[10:47].strip()
+ contry_name=line[47:125].strip()
+ bank_ids = pool.get('res.partner.bank').search(cr,uid,[('acc_number','=',st_line_partner_acc)])
+ bank_statement_lines[st_line_name].update({'cntry_number': cntry_number, 'contry_name': contry_name})
+ if bank_ids:
+ bank = pool.get('res.partner.bank').browse(cr,uid,bank_ids[0],context)
+ if line and bank.partner_id:
+ bank_statement_lines[st_line_name].update({'partner_id': bank.partner_id.id})
+ if bank_statement_lines[st_line_name]['amount'] < 0 :
+ bank_statement_lines[st_line_name].update({'account_id': bank.partner_id.property_account_payable.id})
+ else :
+ bank_statement_lines[st_line_name].update({'account_id': bank.partner_id.property_account_receivable.id})
+ else:
+ nb_err += 1
+ err_log += _('The bank account %s is not defined for the partner %s.\n')%(cntry_number,contry_name)
+ bank_statement_lines[st_line_name].update({'account_id': data['form']['awaiting_account']})
+
+ bank_statement["bank_statement_line"]=bank_statement_lines
+ elif line[0]=='3':
+ if line[1] == '1':
+ st_line_name = line[2:6]
+ bank_statement_lines[st_line_name]['extra_note'] += '\n' + line[40:113]
+ elif line[1] == '2':
+ st_line_name = line[2:6]
+ bank_statement_lines[st_line_name]['extra_note'] += '\n' + line[10:115]
+ elif line[1] == '3':
+ st_line_name = line[2:6]
+ bank_statement_lines[st_line_name]['extra_note'] += '\n' + line[10:100]
+ elif line[0]=='8':
+ # new balance record
+ bal_end = list2float(line[42:57])
+ if line[41] == '1':
+ bal_end = - bal_end
+ bank_statement["balance_end_real"]= bal_end
+
+ elif line[0]=='9':
+ # footer record
+ bank_statements.append(bank_statement)
+ #end for
+ bkst_list=[]
+ for statement in bank_statements:
+ try:
+ bk_st_id = pool.get('account.bank.statement').create(cr,uid,{
+ 'journal_id': statement['journal_id'],
+ 'date':time.strftime('%Y-%m-%d',time.strptime(statement['date'],"%y/%m/%d")),
+ 'period_id':statement['period_id'],
+ 'balance_start': statement["balance_start"],
+ 'balance_end_real': statement["balance_end_real"],
+ 'state': 'draft',
+ 'name': statement['name'],
+ })
+ lines=statement["bank_statement_line"]
+ for value in lines:
+ line=lines[value]
+ reconcile_id = False
+ if line['toreconcile']:
+ name = line['name'][:3] + '/' + line['name'][3:7] + '/' + line['name'][7:]
+ rec_id = pool.get('account.move.line').search(cr, uid, [('name','=', name),('reconcile_id','=',False),('account_id.reconcile','=',True)])
+ if rec_id:
+ reconcile_id = pool.get('account.bank.statement.reconcile').create(cr, uid, {
+ 'line_ids': [(6, 0, rec_id)]
+ }, context=context)
+ mv = pool.get('account.move.line').browse(cr, uid, rec_id[0], context=context)
+ if mv.partner_id:
+ line['partner_id'] = mv.partner_id.id
+ if line['amount'] < 0 :
+ line['account_id'] = mv.partner_id.property_account_payable.id
+ else :
+ line['account_id'] = mv.partner_id.property_account_receivable.id
+ str_not1 = ''
+ if line.has_key('contry_name') and line.has_key('cntry_number'):
+ str_not1="Partner name:%s \n Partner Account Number:%s \n Communication:%s \n Value Date:%s \n Entry Date:%s \n"%(line["contry_name"],line["cntry_number"],line["free_comm"]+line['extra_note'],line["val_date"][0],line["entry_date"][0])
+ id=pool.get('account.bank.statement.line').create(cr,uid,{
+ 'name':line['name'],
+ 'date': line['date'],
+ 'type':line['amount']>0 and 'customer' or 'supplier',
+ 'amount': line['amount'],
+ 'partner_id':line['partner_id'] or 0,
+ 'account_id':line['account_id'],
+ 'statement_id': bk_st_id,
+ 'reconcile_id': reconcile_id,
+ 'note':str_not1,
+ 'ref':line['ref'],
+ })
+
+ str_not= "\n \n Account Number: %s \n Account Holder Name: %s " %(statement["acc_number"],statement["acc_holder"])
+ std_log += "\nStatement : %s , Date : %s, Starting Balance : %.2f , Ending Balance : %.2f \n"\
+ %(statement['name'], statement['date'], float(statement["balance_start"]), float(statement["balance_end_real"]))
+ bkst_list.append(bk_st_id)
+
+ except osv.except_osv, e:
+ cr.rollback()
+ nb_err+=1
+ err_log += '\n Application Error : ' + str(e)
+ raise # REMOVEME
+
+ except Exception, e:
+ cr.rollback()
+ nb_err+=1
+ err_log += '\n System Error : '+str(e)
+ raise # REMOVEME
+ except :
+ cr.rollback()
+ nb_err+=1
+ err_log += '\n Unknown Error'
+ raise
+ err_log += '\n\nNumber of statements : '+ str(len(bkst_list))
+ err_log += '\nNumber of error :'+ str(nb_err) +'\n'
+
+ pool.get('account.coda').create(cr, uid,{
+ 'name':codafile,
+ 'statement_ids': [(6, 0, bkst_list,)],
+ 'note':str_log1+str_not+std_log+err_log,
+ 'journal_id':data['form']['journal_id'],
+ 'date':time.strftime("%Y-%m-%d"),
+ 'user_id':uid,
+ })
+
+ return {'note':str_log1 + std_log + err_log ,'journal_id': data['form']['journal_id'], 'coda': data['form']['coda'],'statment_ids':bkst_list}
+
+
+def str2date(date_str):
+ return time.strftime("%y/%m/%d",time.strptime(date_str,"%d%m%y"))
+
+def str2float(str):
+ try:
+ return float(str)
+ except:
+ return 0.0
+
+def list2float(lst):
+ try:
+ return str2float((lambda s : s[:-3] + '.' + s[-3:])(lst))
+ except:
+ return 0.0
+
+class coda_import(wizard.interface):
+ def _action_open_window(self, cr, uid, data, context):
+ form=data['form']
+ return {
+ 'domain':"[('id','in',%s)]"%(form['statment_ids']),
+ 'name': 'Statement',
+ 'view_type': 'form',
+ 'view_mode': 'tree,form',
+ 'res_model': 'account.bank.statement',
+ 'view_id': False,
+ 'type': 'ir.actions.act_window',
+ }
+ states = {
+ 'init' : {
+ 'actions' : [],
+ 'result' : {'type' : 'form',
+ 'arch' : codawiz_form,
+ 'fields' : codawiz_fields,
+ 'state' : [('end', '_Close'),('extraction', '_Ok') ]}
+ },
+ 'extraction' : {
+ 'actions' : [_coda_parsing],
+ 'result' : {'type' : 'form',
+ 'arch' : result_form,
+ 'fields' : result_fields,
+ 'state' : [('end', '_Close'),('open', '_Open Statement')]}
+ },
+ 'open': {
+ 'actions': [],
+ 'result': {'type': 'action', 'action': _action_open_window, 'state': 'end'}
+
+ },
+
+ }
+coda_import("account.coda_import")
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py
index 81f5e4a570f..74409cab3fa 100644
--- a/addons/account_payment/wizard/account_payment_order.py
+++ b/addons/account_payment/wizard/account_payment_order.py
@@ -88,7 +88,7 @@ class payment_order_create(osv.osv_memory):
'date': date_to_pay,
'currency': line.invoice and line.invoice.currency_id.id or False,
}, context=context)
- return {'nodestroy':True,}
+ return {}
def search_entries(self, cr, uid, ids, context=None):
order_obj = self.pool.get('payment.order')
diff --git a/addons/account_report/board_account_report_view.xml b/addons/account_report/board_account_report_view.xml
index 6f9206ab6f8..0467db65cf1 100644
--- a/addons/account_report/board_account_report_view.xml
+++ b/addons/account_report/board_account_report_view.xml
@@ -7,7 +7,7 @@
form
-
+
diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py
index 7f74553f6bf..0f1885689c2 100644
--- a/addons/account_voucher/voucher.py
+++ b/addons/account_voucher/voucher.py
@@ -22,6 +22,7 @@
import time
from osv import fields
from osv import osv
+from tools.translate import _
journal2type = {
'cash':'rec_voucher',
@@ -367,7 +368,7 @@ class account_voucher(osv.osv):
'move_ids':[(6, 0,line_ids)]
}
- message = _('Voucher ') + " '" + inv.name + "' "+ _("is confirm")
+ message = _('Voucher ') + " '" + inv.name + "' "+ _("is confirmed")
self.log(cr, uid, inv.id, message)
self.write(cr, uid, [inv.id], rec)
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml
index 29582fcf192..2677f7be5d6 100644
--- a/addons/account_voucher/voucher_view.xml
+++ b/addons/account_voucher/voucher_view.xml
@@ -139,12 +139,24 @@
+
+ account.voucher.graph
+ account.voucher
+ graph
+
+
+
+
+
+
+
+
Receivable Vouchers
account.voucher
form
- tree,form
+ tree,form,graph
[('journal_id.type','=','sale')]
{'type':'sale'}
@@ -158,7 +170,7 @@
Payable Vouchers
account.voucher
form
- tree,form
+ tree,form,graph
[('journal_id.type','=','purchase')]
{'type':'purchase'}
@@ -172,7 +184,7 @@
Journal Vouchers
account.voucher
form
- tree,form
+ tree,form,graph
{'type':'general'}
diff --git a/addons/analytic/i18n/et.po b/addons/analytic/i18n/et.po
new file mode 100644
index 00000000000..9b745ea87e3
--- /dev/null
+++ b/addons/analytic/i18n/et.po
@@ -0,0 +1,266 @@
+# Estonian 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: 2010-06-18 10:59+0000\n"
+"PO-Revision-Date: 2010-07-22 20:10+0000\n"
+"Last-Translator: lyyser \n"
+"Language-Team: Estonian \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-23 04:08+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: analytic
+#: field:account.analytic.account,child_ids:0
+msgid "Child Accounts"
+msgstr "Alamkontod"
+
+#. module: analytic
+#: help:account.analytic.line,amount_currency:0
+msgid ""
+"The amount expressed in the related account currency if not equal to the "
+"company one."
+msgstr ""
+
+#. module: analytic
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Objekti nimi peab algama x_'ga ja ei tohi sisaldada ühtegi erisümbolit !"
+
+#. module: analytic
+#: field:account.analytic.account,name:0
+msgid "Account Name"
+msgstr "Konto nimi"
+
+#. module: analytic
+#: help:account.analytic.line,unit_amount:0
+msgid "Specifies the amount of quantity to count."
+msgstr ""
+
+#. module: analytic
+#: help:account.analytic.line,currency_id:0
+msgid "The related account currency if not equal to the company one."
+msgstr ""
+
+#. module: analytic
+#: model:ir.module.module,description:analytic.module_meta_information
+msgid ""
+"Module for defining analytic accounting object.\n"
+" "
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,state:0
+msgid "State"
+msgstr "Riik/Osariik"
+
+#. module: analytic
+#: field:account.analytic.account,user_id:0
+msgid "Account Manager"
+msgstr "Konto haldur"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Draft"
+msgstr "Mustand"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Closed"
+msgstr "Suletud"
+
+#. module: analytic
+#: field:account.analytic.account,debit:0
+msgid "Debit"
+msgstr "Deebet"
+
+#. module: analytic
+#: help:account.analytic.account,state:0
+msgid ""
+"* When an account is created its in 'Draft' state. "
+" \n"
+"* If any associated partner is there, it can be in 'Open' state. "
+" \n"
+"* If any pending balance is there it can be in 'Pending'. "
+" \n"
+"* And finally when all the transactions are over, it can be in 'Close' "
+"state. \n"
+"* The project can be in either if the states 'Template' and 'Running'.\n"
+" If it is template then we can make projects based on the template projects. "
+"If its in 'Running' state it is a normal project. "
+" \n"
+" If it is to be reviewed then the state is 'Pending'.\n"
+" When the project is completed the state is set to 'Done'."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,type:0
+msgid "Account Type"
+msgstr "Konto tüüp"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Template"
+msgstr "Mall"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Pending"
+msgstr "Ootel"
+
+#. module: analytic
+#: model:ir.model,name:analytic.model_account_analytic_line
+msgid "Analytic Line"
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,description:0
+#: field:account.analytic.line,name:0
+msgid "Description"
+msgstr "Kirjeldus"
+
+#. module: analytic
+#: help:account.analytic.line,amount:0
+msgid ""
+"Calculated by multiplying the quantity and the price given in the Product's "
+"cost price."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,company_id:0
+#: field:account.analytic.line,company_id:0
+msgid "Company"
+msgstr "Ettevõte"
+
+#. module: analytic
+#: field:account.analytic.account,quantity_max:0
+msgid "Maximum Quantity"
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.line,user_id:0
+msgid "User"
+msgstr "Kasutaja"
+
+#. module: analytic
+#: field:account.analytic.account,parent_id:0
+msgid "Parent Analytic Account"
+msgstr "Ülem analüütiline konto"
+
+#. module: analytic
+#: field:account.analytic.line,date:0
+msgid "Date"
+msgstr "Kuupäev"
+
+#. module: analytic
+#: field:account.analytic.account,currency_id:0
+#: field:account.analytic.line,currency_id:0
+msgid "Account currency"
+msgstr ""
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "View"
+msgstr "Vaade"
+
+#. module: analytic
+#: help:account.analytic.account,quantity_max:0
+msgid "Sets the higher limit of quantity of hours."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,credit:0
+msgid "Credit"
+msgstr "Krediit"
+
+#. module: analytic
+#: field:account.analytic.line,amount:0
+msgid "Amount"
+msgstr "Kogus"
+
+#. module: analytic
+#: field:account.analytic.account,contact_id:0
+msgid "Contact"
+msgstr "Kontakt"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Cancelled"
+msgstr "Katkestatud"
+
+#. module: analytic
+#: field:account.analytic.account,balance:0
+msgid "Balance"
+msgstr "Balanss"
+
+#. module: analytic
+#: field:account.analytic.account,date_start:0
+msgid "Date Start"
+msgstr "Alguskuupäev"
+
+#. module: analytic
+#: field:account.analytic.account,quantity:0
+#: field:account.analytic.line,unit_amount:0
+msgid "Quantity"
+msgstr "Kvantiteet"
+
+#. module: analytic
+#: field:account.analytic.account,date:0
+msgid "Date End"
+msgstr "Lõppkuupäev"
+
+#. module: analytic
+#: field:account.analytic.account,code:0
+msgid "Account Code"
+msgstr "Konto kood"
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "Normal"
+msgstr "Normaalne"
+
+#. module: analytic
+#: field:account.analytic.account,complete_name:0
+msgid "Full Account Name"
+msgstr "Täielik konto nimi"
+
+#. module: analytic
+#: field:account.analytic.line,account_id:0
+#: model:ir.model,name:analytic.model_account_analytic_account
+#: model:ir.module.module,shortdesc:analytic.module_meta_information
+msgid "Analytic Account"
+msgstr "Analüütiline konto"
+
+#. module: analytic
+#: field:account.analytic.account,company_currency_id:0
+msgid "Currency"
+msgstr "Rahaühik"
+
+#. module: analytic
+#: field:account.analytic.line,amount_currency:0
+msgid "Amount currency"
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,partner_id:0
+msgid "Associated Partner"
+msgstr "Seotud partner"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Open"
+msgstr "Ava"
+
+#. module: analytic
+#: field:account.analytic.account,line_ids:0
+msgid "Analytic Entries"
+msgstr "Analüütilised kirjed"
diff --git a/addons/analytic/i18n/pl.po b/addons/analytic/i18n/pl.po
new file mode 100644
index 00000000000..cd030c52ce4
--- /dev/null
+++ b/addons/analytic/i18n/pl.po
@@ -0,0 +1,270 @@
+# Polish 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: 2010-06-18 10:59+0000\n"
+"PO-Revision-Date: 2010-07-26 10:16+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"Language-Team: Polish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: analytic
+#: field:account.analytic.account,child_ids:0
+msgid "Child Accounts"
+msgstr "Konta podrzędne"
+
+#. module: analytic
+#: help:account.analytic.line,amount_currency:0
+msgid ""
+"The amount expressed in the related account currency if not equal to the "
+"company one."
+msgstr ""
+"Kwota wyrażona w walucie konta, jeśli waluta jest inna niż waluta firmy."
+
+#. module: analytic
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Nazwa obiektu musi zaczynać się od x_ oraz nie może zawierać znaków "
+"specjalnych !"
+
+#. module: analytic
+#: field:account.analytic.account,name:0
+msgid "Account Name"
+msgstr "Nazwa konta"
+
+#. module: analytic
+#: help:account.analytic.line,unit_amount:0
+msgid "Specifies the amount of quantity to count."
+msgstr "Określa ilość do obliczeń."
+
+#. module: analytic
+#: help:account.analytic.line,currency_id:0
+msgid "The related account currency if not equal to the company one."
+msgstr "Waluta konta, jeśli waluta jest inna niż firmy."
+
+#. module: analytic
+#: model:ir.module.module,description:analytic.module_meta_information
+msgid ""
+"Module for defining analytic accounting object.\n"
+" "
+msgstr ""
+"Moduł do definiowania obiektów księgowości analitycznej.\n"
+" "
+
+#. module: analytic
+#: field:account.analytic.account,state:0
+msgid "State"
+msgstr "Stan"
+
+#. module: analytic
+#: field:account.analytic.account,user_id:0
+msgid "Account Manager"
+msgstr "Główna(y) księgowa(y)"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Draft"
+msgstr "Projekt"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Closed"
+msgstr "Zamknięte"
+
+#. module: analytic
+#: field:account.analytic.account,debit:0
+msgid "Debit"
+msgstr "Winien"
+
+#. module: analytic
+#: help:account.analytic.account,state:0
+msgid ""
+"* When an account is created its in 'Draft' state. "
+" \n"
+"* If any associated partner is there, it can be in 'Open' state. "
+" \n"
+"* If any pending balance is there it can be in 'Pending'. "
+" \n"
+"* And finally when all the transactions are over, it can be in 'Close' "
+"state. \n"
+"* The project can be in either if the states 'Template' and 'Running'.\n"
+" If it is template then we can make projects based on the template projects. "
+"If its in 'Running' state it is a normal project. "
+" \n"
+" If it is to be reviewed then the state is 'Pending'.\n"
+" When the project is completed the state is set to 'Done'."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,type:0
+msgid "Account Type"
+msgstr "Typ Konta"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Template"
+msgstr "Szablon"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Pending"
+msgstr "Oczekujące"
+
+#. module: analytic
+#: model:ir.model,name:analytic.model_account_analytic_line
+msgid "Analytic Line"
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,description:0
+#: field:account.analytic.line,name:0
+msgid "Description"
+msgstr "Opis"
+
+#. module: analytic
+#: help:account.analytic.line,amount:0
+msgid ""
+"Calculated by multiplying the quantity and the price given in the Product's "
+"cost price."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,company_id:0
+#: field:account.analytic.line,company_id:0
+msgid "Company"
+msgstr "Firma"
+
+#. module: analytic
+#: field:account.analytic.account,quantity_max:0
+msgid "Maximum Quantity"
+msgstr "Ilość maksymalna"
+
+#. module: analytic
+#: field:account.analytic.line,user_id:0
+msgid "User"
+msgstr "Użytkownik"
+
+#. module: analytic
+#: field:account.analytic.account,parent_id:0
+msgid "Parent Analytic Account"
+msgstr "Nadrzędne konto analityczne"
+
+#. module: analytic
+#: field:account.analytic.line,date:0
+msgid "Date"
+msgstr "Data"
+
+#. module: analytic
+#: field:account.analytic.account,currency_id:0
+#: field:account.analytic.line,currency_id:0
+msgid "Account currency"
+msgstr "Waluta konta"
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "View"
+msgstr "Widok"
+
+#. module: analytic
+#: help:account.analytic.account,quantity_max:0
+msgid "Sets the higher limit of quantity of hours."
+msgstr ""
+
+#. module: analytic
+#: field:account.analytic.account,credit:0
+msgid "Credit"
+msgstr "Ma"
+
+#. module: analytic
+#: field:account.analytic.line,amount:0
+msgid "Amount"
+msgstr "Kwota"
+
+#. module: analytic
+#: field:account.analytic.account,contact_id:0
+msgid "Contact"
+msgstr "Kontakt"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Cancelled"
+msgstr "Anulowano"
+
+#. module: analytic
+#: field:account.analytic.account,balance:0
+msgid "Balance"
+msgstr "Saldo"
+
+#. module: analytic
+#: field:account.analytic.account,date_start:0
+msgid "Date Start"
+msgstr "Data rozpoczęcia"
+
+#. module: analytic
+#: field:account.analytic.account,quantity:0
+#: field:account.analytic.line,unit_amount:0
+msgid "Quantity"
+msgstr "Ilość"
+
+#. module: analytic
+#: field:account.analytic.account,date:0
+msgid "Date End"
+msgstr "Data końcowa"
+
+#. module: analytic
+#: field:account.analytic.account,code:0
+msgid "Account Code"
+msgstr "Kod konta"
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "Normal"
+msgstr "Normalne"
+
+#. module: analytic
+#: field:account.analytic.account,complete_name:0
+msgid "Full Account Name"
+msgstr "Pełna nazwa konta"
+
+#. module: analytic
+#: field:account.analytic.line,account_id:0
+#: model:ir.model,name:analytic.model_account_analytic_account
+#: model:ir.module.module,shortdesc:analytic.module_meta_information
+msgid "Analytic Account"
+msgstr "Konto analityczne"
+
+#. module: analytic
+#: field:account.analytic.account,company_currency_id:0
+msgid "Currency"
+msgstr "Waluta"
+
+#. module: analytic
+#: field:account.analytic.line,amount_currency:0
+msgid "Amount currency"
+msgstr "Waluta kwoty"
+
+#. module: analytic
+#: field:account.analytic.account,partner_id:0
+msgid "Associated Partner"
+msgstr "Przypisany partner"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Open"
+msgstr "Otwarte"
+
+#. module: analytic
+#: field:account.analytic.account,line_ids:0
+msgid "Analytic Entries"
+msgstr "Zapisy analityczne"
diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml
index 41c6cea2f77..dad4d39b776 100644
--- a/addons/auction/auction_view.xml
+++ b/addons/auction/auction_view.xml
@@ -1540,7 +1540,7 @@ Object encoded
report.unclassified.objects
tree
-
+
diff --git a/addons/auction/board_auction_view.xml b/addons/auction/board_auction_view.xml
index ca4b30bd688..6693622d55c 100644
--- a/addons/auction/board_auction_view.xml
+++ b/addons/auction/board_auction_view.xml
@@ -58,7 +58,7 @@
menu
-
+
-
+
+
Check Action Rules
4
hours
@@ -10,10 +11,7 @@
-
-
-
-
-
+
+
diff --git a/addons/base_action_rule/base_action_rule_view.xml b/addons/base_action_rule/base_action_rule_view.xml
index 1a9c1946b3c..66f857c4e94 100644
--- a/addons/base_action_rule/base_action_rule_view.xml
+++ b/addons/base_action_rule/base_action_rule_view.xml
@@ -14,10 +14,11 @@
form
-
-
+
+
+
-
+
diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py
index a8cdba58975..674dc143334 100644
--- a/addons/base_calendar/base_calendar.py
+++ b/addons/base_calendar/base_calendar.py
@@ -1147,7 +1147,6 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
'active': fields.boolean('Active', help="If the active field is set to \
true, it will allow you to hide the event alarm information without removing it.")
}
-
_defaults = {
'state': 'tentative',
'class': 'public',
diff --git a/addons/base_contact/base_contact_installer.py b/addons/base_contact/base_contact_installer.py
index 3cb32017111..e1ed709dd11 100644
--- a/addons/base_contact/base_contact_installer.py
+++ b/addons/base_contact/base_contact_installer.py
@@ -25,41 +25,44 @@ from osv import fields, osv
class base_contact_installer(osv.osv_memory):
_name = 'base.contact.installer'
_inherit = 'res.config.installer'
-
+
_columns = {
- 'name': fields.char('Name', size=64),
- 'migrate': fields.boolean('Migrate', help="If you select this, all addresses will be migrated."),
+ 'name': fields.char('Name', size=64),
+ 'migrate': fields.boolean('Migrate', help="If you select this, all addresses will be migrated."),
+ 'nomigrate': fields.boolean('NoMigrate', help="If you select this, all addresses will be not migrated."),
}
def execute(self, cr, uid, ids, context=None):
"""
- This function is used to create contact and address from existing partner address
+ This function is used to create contact and address from existing partner address
"""
- cr.execute("""DROP TRIGGER IF EXISTS contactjob on res_partner_contact;
- DROP LANGUAGE IF EXISTS plpgsql CASCADE;
- CREATE LANGUAGE plpgsql ;
- CREATE OR REPLACE FUNCTION add_to_job() RETURNS TRIGGER AS $contactjob$
- DECLARE
- new_name varchar;
- new_phonenum varchar;
- BEGIN
- IF(TG_OP='INSERT') THEN
- INSERT INTO res_partner_job(contact_id, address_id, function, state) VALUES(NEW.id, NEW.website::integer,NEW.first_name, 'current');
- UPDATE res_partner_contact set first_name=Null, website=Null, active=True where id=NEW.id;
- END IF;
- RETURN NEW;
- END;
- $contactjob$ LANGUAGE plpgsql;
- CREATE TRIGGER contactjob AFTER INSERT ON res_partner_contact FOR EACH ROW EXECUTE PROCEDURE add_to_job();""")
- cr.commit()
+ obj = self.pool.get("base.contact.installer").browse(cr, uid, uid)
+ if obj.migrate:
+ cr.execute("""DROP TRIGGER IF EXISTS contactjob on res_partner_contact;
+ DROP LANGUAGE IF EXISTS plpgsql CASCADE;
+ CREATE LANGUAGE plpgsql ;
+ CREATE OR REPLACE FUNCTION add_to_job() RETURNS TRIGGER AS $contactjob$
+ DECLARE
+ new_name varchar;
+ new_phonenum varchar;
+ BEGIN
+ IF(TG_OP='INSERT') THEN
+ INSERT INTO res_partner_job(contact_id, address_id, function, state) VALUES(NEW.id, NEW.website::integer,NEW.first_name, 'current');
+ UPDATE res_partner_contact set first_name=Null, website=Null, active=True where id=NEW.id;
+ END IF;
+ RETURN NEW;
+ END;
+ $contactjob$ LANGUAGE plpgsql;
+ CREATE TRIGGER contactjob AFTER INSERT ON res_partner_contact FOR EACH ROW EXECUTE PROCEDURE add_to_job();""")
+ cr.commit()
- cr.execute("INSERT into res_partner_contact (name, title, email, first_name, website) (SELECT coalesce(name, 'Noname'), title, email, function , to_char(id, '99999999') from res_partner_address)")
- cr.commit()
+ cr.execute("INSERT into res_partner_contact (name, title, email, first_name, website) (SELECT coalesce(name, 'Noname'), title, email, function , to_char(id, '99999999') from res_partner_address)")
+ cr.commit()
- cr.execute("DROP TRIGGER IF EXISTS contactjob on res_partner_contact")
- cr.execute("DROP LANGUAGE IF EXISTS plpgsql CASCADE;")
- cr.execute("DROP FUNCTION IF EXISTS add_to_job()")
- cr.commit()
+ cr.execute("DROP TRIGGER IF EXISTS contactjob on res_partner_contact")
+ cr.execute("DROP LANGUAGE IF EXISTS plpgsql CASCADE;")
+ cr.execute("DROP FUNCTION IF EXISTS add_to_job()")
+ cr.commit()
base_contact_installer()
diff --git a/addons/base_contact/base_contact_installer_view.xml b/addons/base_contact/base_contact_installer_view.xml
index 3d93faa5728..646d3918e9f 100644
--- a/addons/base_contact/base_contact_installer_view.xml
+++ b/addons/base_contact/base_contact_installer_view.xml
@@ -23,14 +23,18 @@
- Migrate
+ Configure
-
+
+
+
+
+
diff --git a/addons/base_setup/__openerp__.py b/addons/base_setup/__openerp__.py
index ee0cc6a8f56..6b4df476b4b 100644
--- a/addons/base_setup/__openerp__.py
+++ b/addons/base_setup/__openerp__.py
@@ -43,7 +43,9 @@
'init_xml': ['base_setup_data.xml'],
'update_xml': ['security/ir.model.access.csv',
'base_setup_installer.xml',
- 'base_setup_todo.xml','gtk_contact_form.xml'],
+ 'base_setup_todo.xml',
+# 'gtk_contact_form.xml'
+ ],
'demo_xml': ['base_setup_demo.xml'],
'installable': True,
'active': True,
diff --git a/addons/base_setup/base_setup_data.xml b/addons/base_setup/base_setup_data.xml
index b468762ed13..f8f38bc644f 100644
--- a/addons/base_setup/base_setup_data.xml
+++ b/addons/base_setup/base_setup_data.xml
@@ -7,25 +7,25 @@
form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/base_setup/base_setup_todo.xml b/addons/base_setup/base_setup_todo.xml
index cfe815fb94e..ceb915e1212 100644
--- a/addons/base_setup/base_setup_todo.xml
+++ b/addons/base_setup/base_setup_todo.xml
@@ -11,7 +11,7 @@
Main Company Setup
- Information of your company will be used to custiomise your documents like Invoices, Sale Orders and many more.
+ Information of your company will be used to customize your documents like Invoices, Sale Orders and many more.
Configure Your Company
diff --git a/addons/base_setup/todo.py b/addons/base_setup/todo.py
index 8050d220dae..04a20a6f32b 100644
--- a/addons/base_setup/todo.py
+++ b/addons/base_setup/todo.py
@@ -88,7 +88,7 @@ class base_setup_company(osv.osv_memory):
'city':fields.char('City', size=128),
'state_id':fields.selection(_get_all_states, 'State'),
'country_id':fields.selection(_get_all_countries, 'Country'),
- 'email':fields.char('E-mail', size=64, required=True),
+ 'email':fields.char('E-mail', size=64),
'phone':fields.char('Phone', size=64),
'currency':fields.many2one('res.currency', 'Currency', required=True),
'rml_header1':fields.char('Report Header', size=200,
diff --git a/addons/board/board_view.xml b/addons/board/board_view.xml
index f34c0ce5917..62204969468 100644
--- a/addons/board/board_view.xml
+++ b/addons/board/board_view.xml
@@ -3,7 +3,7 @@
-
diff --git a/addons/crm/board_crm_statistical_view.xml b/addons/crm/board_crm_statistical_view.xml
index 01d0472c21e..01aa479479f 100644
--- a/addons/crm/board_crm_statistical_view.xml
+++ b/addons/crm/board_crm_statistical_view.xml
@@ -112,7 +112,7 @@
-
+
menu
-
+
- CRM Modules Installation
+ CRM Modules Configuration
@@ -41,7 +41,7 @@
-
+
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 2a469d88baa..9cb5f31d67e 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -198,8 +198,8 @@ class crm_lead(osv.osv, crm_case):
self.write(cr, uid, ids, value)
for (id, name) in self.name_get(cr, uid, ids):
- type = self.browse(cr, uid, id).type
- message = (_('The ') + type.title() or 'Lead') + " '" + name + "' "+ _("has been written as Open.")
+ type = self.browse(cr, uid, id).type or 'Lead'
+ message = (_('The ') + type.title()) + " '" + name + "' "+ _("has been Opened.")
self.log(cr, uid, id, message)
return res
@@ -216,7 +216,7 @@ class crm_lead(osv.osv, crm_case):
for (id, name) in self.name_get(cr, uid, ids):
lead = self.browse(cr, uid, id)
if lead.type == 'lead':
- message = _('The Lead') + " '" + name + "' "+ _("has been written as Closed.")
+ message = _('The Lead') + " '" + name + "' "+ _("has been Closed.")
self.log(cr, uid, id, message)
return res
diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py
index 79a2c992cdf..798f746f9e3 100644
--- a/addons/crm/crm_meeting.py
+++ b/addons/crm/crm_meeting.py
@@ -122,7 +122,21 @@ class crm_meeting(osv.osv, crm_case):
}
return value
-
+
+ def case_open(self, cr, uid, ids, *args):
+ """Confirms meeting
+ @param self: The object pointer
+ @param cr: the current row, from the database cursor,
+ @param uid: the current user’s ID for security checks,
+ @param ids: List of Meeting Ids
+ @param *args: Tuple Value for additional Params
+ """
+ res = super(crm_meeting, self).case_open(cr, uid, ids, args)
+ for (id, name) in self.name_get(cr, uid, ids):
+ message = _('The Meeting') + " '" + name + "' "+ _("has been Confirmed.")
+ self.log(cr, uid, id, message)
+ return res
+
crm_meeting()
class calendar_attendee(osv.osv):
diff --git a/addons/crm/crm_opportunity.py b/addons/crm/crm_opportunity.py
index a1ca912e20f..c058732a3dd 100644
--- a/addons/crm/crm_opportunity.py
+++ b/addons/crm/crm_opportunity.py
@@ -36,8 +36,6 @@ AVAILABLE_STATES = [
class crm_opportunity(osv.osv):
""" Opportunity Cases """
- _name = "crm.lead"
- _description = "Opportunity"
_order = "priority,date_action,id desc"
_inherit = 'crm.lead'
_columns = {
@@ -72,8 +70,10 @@ class crm_opportunity(osv.osv):
self.write(cr, uid, ids, value)
for (id, name) in self.name_get(cr, uid, ids):
- message = _('The Opportunity') + " '" + name + "' "+ _("has been written as Won.")
- self.log(cr, uid, id, message)
+ opp = self.browse(cr, uid, id)
+ if opp.type == 'opportunity':
+ message = _('The Opportunity') + " '" + name + "' "+ _("has been Won.")
+ self.log(cr, uid, id, message)
return res
def case_mark_lost(self, cr, uid, ids, *args):
@@ -95,7 +95,7 @@ class crm_opportunity(osv.osv):
for (id, name) in self.name_get(cr, uid, ids):
opp = self.browse(cr, uid, id)
if opp.type == 'opportunity':
- message = _('The Opportunity') + " '" + name + "' "+ _("has been written as Lost.")
+ message = _('The Opportunity') + " '" + name + "' "+ _("has been Lost.")
self.log(cr, uid, id, message)
return res
diff --git a/addons/crm/wizard/crm_forward_to_partner.py b/addons/crm/wizard/crm_forward_to_partner.py
index 2bd8aebe9c3..50cfc922104 100644
--- a/addons/crm/wizard/crm_forward_to_partner.py
+++ b/addons/crm/wizard/crm_forward_to_partner.py
@@ -233,7 +233,7 @@ class crm_lead_forward_to_partner(osv.osv_memory):
"Partner: %s" % (lead.partner_id and lead.partner_id.name_get()[0][1]),
"Contact: %s" % (pa.name or ''),
"Title: %s" % (pa.title or ''),
- "Function: %s" % (pa.function and pa.function.name_get()[0][1] or ''),
+ "Function: %s" % (pa.function or ''),
"Street: %s" % (pa.street or ''),
"Street2: %s" % (pa.street2 or ''),
"Zip: %s" % (pa.zip or ''),
@@ -244,6 +244,8 @@ class crm_lead_forward_to_partner(osv.osv_memory):
"Phone: %s" % (pa.phone or ''),
"Fax: %s" % (pa.fax or ''),
"Mobile: %s" % (pa.mobile or ''),
+ "Lead Category: %s" % (lead.categ_id and lead.categ_id.name or ''),
+ "Details: %s" % (lead.description or ''),
]
return "\n".join(body + ['---'])
diff --git a/addons/crm/wizard/crm_send_email.py b/addons/crm/wizard/crm_send_email.py
index 923c32fb4e0..aed957cb305 100644
--- a/addons/crm/wizard/crm_send_email.py
+++ b/addons/crm/wizard/crm_send_email.py
@@ -177,7 +177,7 @@ class crm_send_new_email(osv.osv_memory):
if 'email_from' in fields:
res.update({'email_from': user_mail_from and tools.ustr(user_mail_from) or ''})
if 'reply_to' in fields:
- res.update({'reply_to': case.section_id.reply_to})
+ res.update({'reply_to': case.section_id and case.section_id.reply_to or False})
if 'subject' in fields:
res.update({'subject': tools.ustr(context.get('subject', case.name) or '')})
if 'email_cc' in fields:
diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py
index b453ebfc4aa..76a6073b58c 100644
--- a/addons/crm_claim/crm_claim.py
+++ b/addons/crm_claim/crm_claim.py
@@ -28,7 +28,7 @@ class crm_claim(osv.osv, crm.crm_case):
Crm claim
"""
_name = "crm.claim"
- _description = "Claim Cases"
+ _description = "Claim"
_order = "id desc"
_inherit = ['mailgate.thread']
_columns = {
diff --git a/addons/crm_fundraising/crm_fundraising.py b/addons/crm_fundraising/crm_fundraising.py
index 99b8fc06dae..81e16a47ac3 100644
--- a/addons/crm_fundraising/crm_fundraising.py
+++ b/addons/crm_fundraising/crm_fundraising.py
@@ -26,7 +26,7 @@ class crm_fundraising(osv.osv, crm.crm_case):
""" Fund Raising Cases """
_name = "crm.fundraising"
- _description = "Fund Raising Cases"
+ _description = "Fund Raising"
_order = "id desc"
_inherit = ['mailgate.thread']
_columns = {
diff --git a/addons/crm_helpdesk/crm_helpdesk.py b/addons/crm_helpdesk/crm_helpdesk.py
index 2894a429865..d4a1e9d59fc 100644
--- a/addons/crm_helpdesk/crm_helpdesk.py
+++ b/addons/crm_helpdesk/crm_helpdesk.py
@@ -27,7 +27,7 @@ class crm_helpdesk(osv.osv, crm.crm_case):
""" Helpdesk Cases """
_name = "crm.helpdesk"
- _description = "Helpdesk Cases"
+ _description = "Helpdesk"
_order = "id desc"
_inherit = ['mailgate.thread']
_columns = {
diff --git a/addons/document/board_document_view.xml b/addons/document/board_document_view.xml
index 8b8ef2557e6..4899178de2f 100644
--- a/addons/document/board_document_view.xml
+++ b/addons/document/board_document_view.xml
@@ -56,7 +56,6 @@
id="menu_reports_document"
parent="menu_reporting"
sequence="0"
- icon="terp-graph"
groups="document.group_document_manager"/>
diff --git a/addons/email_template/wizard/email_template_send_wizard.py b/addons/email_template/wizard/email_template_send_wizard.py
index 5e0f0619c1b..4b1aba3a2aa 100755
--- a/addons/email_template/wizard/email_template_send_wizard.py
+++ b/addons/email_template/wizard/email_template_send_wizard.py
@@ -68,6 +68,8 @@ class email_template_send_wizard(osv.osv_memory):
return template
def _get_template_value(self, cr, uid, field, context=None):
+ if context is None:
+ context = {}
template = self._get_template(cr, uid, context)
if not template:
return False
@@ -119,6 +121,8 @@ class email_template_send_wizard(osv.osv_memory):
}
def fields_get(self, cr, uid, fields=None, context=None, write_access=True):
+ if context is None:
+ context = {}
result = super(email_template_send_wizard, self).fields_get(cr, uid, fields, context, write_access)
if 'attachment_ids' in result and 'src_model' in context:
result['attachment_ids']['domain'] = [('res_model','=',context['src_model']),('res_id','=',context['active_id'])]
@@ -165,6 +169,8 @@ class email_template_send_wizard(osv.osv_memory):
else:
return value
+ if context is None:
+ context = {}
mail_ids = []
template = self._get_template(cr, uid, context)
for id in context['src_rec_ids']:
diff --git a/addons/event/board_association_view.xml b/addons/event/board_association_view.xml
index 6a9d56abab2..a6613284850 100644
--- a/addons/event/board_association_view.xml
+++ b/addons/event/board_association_view.xml
@@ -84,7 +84,7 @@
form
-
+
\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-06-22 03:53+0000\n"
+"X-Launchpad-Export-Date: 2010-07-28 03:46+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: google_map
@@ -24,7 +24,7 @@ msgstr "Executar o Google Map"
#. module: google_map
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr "Invalido XML para Arquitetura da View"
+msgstr "XML inválido para a arquitetura de exibição"
#. module: google_map
#: view:res.partner:0
@@ -40,7 +40,8 @@ msgid ""
"url widget."
msgstr ""
"O módulo adiciona um campo Google Map no endereço do parceiro\n"
-"de modo que possamos abrir o Google Maps diretamente da URL do widget."
+"de modo que possamos abrir o Google Maps diretamente da\n"
+"URL do widget."
#. module: google_map
#: view:res.partner:0
diff --git a/addons/hr/board_hr_view.xml b/addons/hr/board_hr_view.xml
index 3b64c362340..fd4ddca0955 100644
--- a/addons/hr/board_hr_view.xml
+++ b/addons/hr/board_hr_view.xml
@@ -1,7 +1,7 @@
-
+
-
+
-
+
diff --git a/addons/hr/hr_installer.xml b/addons/hr/hr_installer.xml
index dc985f97d8a..a81954bc51b 100644
--- a/addons/hr/hr_installer.xml
+++ b/addons/hr/hr_installer.xml
@@ -10,7 +10,7 @@
- Select Human Resources Modules To Install
+ Human Resources Modules Configuration
Select Human Resources Modules To Install
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 55415ed8088..6d826db1a6b 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -4,10 +4,9 @@
-
-
-
+
+
+
diff --git a/addons/hr_attendance/wizard/hr_attendance_byweek.py b/addons/hr_attendance/wizard/hr_attendance_byweek.py
index 9ef48f29fff..175ebf8a228 100644
--- a/addons/hr_attendance/wizard/hr_attendance_byweek.py
+++ b/addons/hr_attendance/wizard/hr_attendance_byweek.py
@@ -35,6 +35,8 @@ class hr_attendance_byweek(osv.osv_memory):
}
def print_report(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
datas = {
'ids': [],
'model': 'hr.employee',
diff --git a/addons/hr_attendance/wizard/hr_attendance_error.py b/addons/hr_attendance/wizard/hr_attendance_error.py
index 62689705c17..449fc4ca5c2 100644
--- a/addons/hr_attendance/wizard/hr_attendance_error.py
+++ b/addons/hr_attendance/wizard/hr_attendance_error.py
@@ -42,14 +42,14 @@ class hr_attendance_error(osv.osv_memory):
if context is None:
context = {}
emp_ids = []
- data_error = self.read(cr, uid, ids)[0]
+ data_error = self.read(cr, uid, ids, context=context)[0]
date_from = data_error['init_date']
date_to = data_error['end_date']
cr.execute("select id from hr_attendance where employee_id IN %s and to_char(name,'YYYY-mm-dd')<=%s and to_char(name,'YYYY-mm-dd')>=%s and action IN %s order by name" ,(tuple(context['active_ids']), date_to, date_from, tuple(['sign_in','sign_out'])))
attendance_ids = [x[0] for x in cr.fetchall()]
if not attendance_ids:
raise osv.except_osv(_('No Data Available'), _('No records found for your selection!'))
- attendance_records = self.pool.get('hr.attendance').browse(cr, uid, attendance_ids)
+ attendance_records = self.pool.get('hr.attendance').browse(cr, uid, attendance_ids, context=context)
for rec in attendance_records:
if rec.employee_id.id not in emp_ids:
diff --git a/addons/hr_attendance/wizard/hr_attendance_sign_in_out.py b/addons/hr_attendance/wizard/hr_attendance_sign_in_out.py
index 7ffd94dbca5..5ac041d7a42 100644
--- a/addons/hr_attendance/wizard/hr_attendance_sign_in_out.py
+++ b/addons/hr_attendance/wizard/hr_attendance_sign_in_out.py
@@ -53,11 +53,15 @@ class hr_si_so_ask(osv.osv_memory):
}
def sign_in(self, cr, uid, ids, context=None):
- data = self.read(cr, uid, ids, [])[0]
+ if context is None:
+ context = {}
+ data = self.read(cr, uid, ids, [], context=context)[0]
return self.pool.get('hr.sign.in.out').sign_in(cr, uid, data, context)
def sign_out(self, cr, uid, ids, context=None):
- data = self.read(cr, uid, ids, [])[0]
+ if context is None:
+ context = {}
+ data = self.read(cr, uid, ids, [], context=context)[0]
return self.pool.get('hr.sign.in.out').sign_out(cr, uid, data, context)
hr_si_so_ask()
@@ -74,6 +78,8 @@ class hr_sign_in_out(osv.osv_memory):
}
def _get_empid(self, cr, uid, context=None):
+ if context is None:
+ context = {}
emp_id = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
if emp_id:
employee = self.pool.get('hr.employee').browse(cr, uid, emp_id, context=context)[0]
@@ -81,6 +87,8 @@ class hr_sign_in_out(osv.osv_memory):
return {}
def default_get(self, cr, uid, fields_list, context=None):
+ if context is None:
+ context = {}
res = super(hr_sign_in_out, self).default_get(cr, uid, fields_list, context=context)
res_emp = self._get_empid(cr, uid, context=context)
res.update(res_emp)
@@ -89,10 +97,12 @@ class hr_sign_in_out(osv.osv_memory):
def si_check(self, cr, uid, ids, context=None):
obj_model = self.pool.get('ir.model.data')
att_obj = self.pool.get('hr.attendance')
- data = self.read(cr, uid, ids, [])[0]
+ if context is None:
+ context = {}
+ data = self.read(cr, uid, ids, [], context=context)[0]
emp_id = data['emp_id']
att_id = att_obj.search(cr, uid, [('employee_id', '=', emp_id)], limit=1, order='name desc')
- last_att = att_obj.browse(cr, uid, att_id)
+ last_att = att_obj.browse(cr, uid, att_id, context=context)
if last_att:
last_att = last_att[0]
cond = not last_att or last_att.action == 'sign_out'
@@ -113,8 +123,10 @@ class hr_sign_in_out(osv.osv_memory):
def so_check(self, cr, uid, ids, context=None):
obj_model = self.pool.get('ir.model.data')
- data = self.read(cr, uid, ids, [])[0]
att_obj = self.pool.get('hr.attendance')
+ if context is None:
+ context = {}
+ data = self.read(cr, uid, ids, [], context=context)[0]
emp_id = data['emp_id']
att_id = att_obj.search(cr, uid, [('employee_id', '=', emp_id),('action', '!=', 'action')], limit=1, order='name desc')
last_att = att_obj.browse(cr, uid, att_id, context=context)
@@ -137,8 +149,8 @@ class hr_sign_in_out(osv.osv_memory):
if cond:
return self.sign_out(cr, uid, data, context)
else:
- model_data_ids = self.pool.get('ir.model.data').search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_hr_attendance_si_ask')], context=context)
- resource_id = self.pool.get('ir.model.data').read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
+ model_data_ids = att_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_hr_attendance_si_ask')], context=context)
+ resource_id = att_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
return {
'name': _('Sign in / Sign out'),
'view_type': 'form',
@@ -150,12 +162,14 @@ class hr_sign_in_out(osv.osv_memory):
}
def sign_in(self, cr, uid, data, context=None):
+ if context is None:
+ context = {}
emp_id = data['emp_id']
if 'last_time' in data:
if data['last_time'] > time.strftime('%Y-%m-%d %H:%M:%S'):
raise osv.except_osv(_('UserError'), _('The sign-out date must be in the past'))
self.pool.get('hr.attendance').create(cr, uid, {'name': data['last_time'], 'action': 'sign_out',
- 'employee_id': emp_id})
+ 'employee_id': emp_id}, context=context)
try:
success = self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_in')
except:
@@ -163,11 +177,13 @@ class hr_sign_in_out(osv.osv_memory):
return {} # To do: Return Success message
def sign_out(self, cr, uid, data, context=None):
+ if context is None:
+ context = {}
emp_id = data['emp_id']
if 'last_time' in data:
if data['last_time'] > time.strftime('%Y-%m-%d %H:%M:%S'):
raise osv.except_osv(_('UserError'), _('The Sign-in date must be in the past'))
- self.pool.get('hr.attendance').create(cr, uid, {'name':data['last_time'], 'action':'sign_in', 'employee_id':emp_id})
+ self.pool.get('hr.attendance').create(cr, uid, {'name':data['last_time'], 'action':'sign_in', 'employee_id':emp_id}, context=context)
try:
success = self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_out')
except:
diff --git a/addons/hr_evaluation/hr_evaluation.py b/addons/hr_evaluation/hr_evaluation.py
index 429b492131d..21ca0423c9a 100644
--- a/addons/hr_evaluation/hr_evaluation.py
+++ b/addons/hr_evaluation/hr_evaluation.py
@@ -104,18 +104,22 @@ class hr_employee(osv.osv):
}
def run_employee_evaluation(self, cr, uid, automatic=False, use_new_cursor=False, context=None):
+ obj_evaluation = self.pool.get('hr_evaluation.evaluation')
if context is None:
context = {}
for id in self.browse(cr, uid, self.search(cr, uid, [], context=context), context=context):
if id.evaluation_plan_id and id.evaluation_date:
if (dt.ISO.ParseAny(id.evaluation_date) + dt.RelativeDateTime(months = int(id.evaluation_plan_id.month_next))).strftime('%Y-%m-%d') <= time.strftime("%Y-%m-%d"):
self.write(cr, uid, id.id, {'evaluation_date' : (dt.ISO.ParseAny(id.evaluation_date) + dt.RelativeDateTime(months =+ int(id.evaluation_plan_id.month_next))).strftime('%Y-%m-%d')}, context=context)
- self.pool.get("hr_evaluation.evaluation").create(cr, uid, {'employee_id' : id.id, 'plan_id': id.evaluation_plan_id}, context)
+ obj_evaluation.create(cr, uid, {'employee_id' : id.id, 'plan_id': id.evaluation_plan_id}, context=context)
return True
def onchange_evaluation_plan_id(self, cr, uid, ids, evaluation_plan_id, evaluation_date, context=None):
evaluation_date = evaluation_date or False
evaluation_plan_obj=self.pool.get('hr_evaluation.plan')
+ obj_evaluation = self.pool.get('hr_evaluation.evaluation')
+ if context is None:
+ context = {}
if evaluation_plan_id:
flag = False
evaluation_plan = evaluation_plan_obj.browse(cr, uid, [evaluation_plan_id], context=context)[0]
@@ -131,9 +135,11 @@ class hr_employee(osv.osv):
return {'value': {'evaluation_date': evaluation_date}}
def create(self, cr, uid, vals, context=None):
+ if context is None:
+ context = {}
id = super(hr_employee, self).create(cr, uid, vals, context=context)
if vals.get('evaluation_plan_id', False):
- self.pool.get("hr_evaluation.evaluation").create(cr, uid, {'employee_id' : id, 'plan_id': vals['evaluation_plan_id']}, context=context)
+ obj_evaluation.create(cr, uid, {'employee_id' : id, 'plan_id': vals['evaluation_plan_id']}, context=context)
return id
hr_employee()
@@ -173,10 +179,12 @@ class hr_evaluation(osv.osv):
'state' : lambda *a: 'draft',
}
- def name_get(self, cr, uid, ids, context={}):
+ def name_get(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
if not len(ids):
return []
- reads = self.browse(cr, uid, ids, context)
+ reads = self.browse(cr, uid, ids, context=context)
res = []
for record in reads:
name = record.plan_id.name
@@ -185,6 +193,8 @@ class hr_evaluation(osv.osv):
def onchange_employee_id(self, cr, uid, ids, employee_id, context=None):
employee_obj=self.pool.get('hr.employee')
+ if context is None:
+ context = {}
evaluation_plan_id=''
if employee_id:
for employee in employee_obj.browse(cr, uid, [employee_id], context=context):
@@ -194,8 +204,11 @@ class hr_evaluation(osv.osv):
return {'value': {'plan_id':evaluation_plan_id}}
def button_plan_in_progress(self, cr, uid, ids, context=None):
+ hr_eval_inter_obj = self.pool.get('hr.evaluation.interview')
+ if context is None:
+ context = {}
apprai_id = []
- for evaluation in self.browse(cr, uid, ids, context):
+ for evaluation in self.browse(cr, uid, ids, context=context):
wait = False
for phase in evaluation.plan_id.phase_ids:
childs = []
@@ -210,7 +223,6 @@ class hr_evaluation(osv.osv):
if not child.user_id:
continue
- hr_eval_inter_obj = self.pool.get('hr.evaluation.interview')
int_id = hr_eval_inter_obj.create(cr, uid, {
'evaluation_id': evaluation.id,
'survey_id': phase.survey_id.id,
@@ -235,18 +247,24 @@ class hr_evaluation(osv.osv):
return True
def button_final_validation(self, cr, uid, ids, context=None):
- self.write(cr, uid, ids, {'state':'progress'})
request_obj = self.pool.get('hr.evaluation.interview')
- for id in self.browse(cr, uid ,ids,context=context):
- if len(id.survey_request_ids) != len(request_obj.search(cr, uid, [('evaluation_id', '=', id.id),('state', '=', 'done')],context=context)):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'progress'}, context=context)
+ for id in self.browse(cr, uid ,ids, context=context):
+ if len(id.survey_request_ids) != len(request_obj.search(cr, uid, [('evaluation_id', '=', id.id),('state', '=', 'done')], context=context)):
raise osv.except_osv(_('Warning !'),_("You cannot change state, because some appraisal in waiting answer or draft state"))
return True
def button_done(self,cr, uid, ids, context=None):
- self.write(cr,uid,ids,{'state':'done', 'date_close': time.strftime('%Y-%m-%d')}, context=context)
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids,{'state':'done', 'date_close': time.strftime('%Y-%m-%d')}, context=context)
return True
def button_cancel(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
self.write(cr, uid, ids,{'state':'cancel'}, context=context)
return True
@@ -277,20 +295,22 @@ class hr_evaluation_interview(osv.osv):
}
def survey_req_waiting_answer(self, cr, uid, ids, context=None):
- self.write(cr, uid, ids, { 'state' : 'waiting_answer'})
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, { 'state' : 'waiting_answer'}, context=context)
return True
def survey_req_done(self, cr, uid, ids, context=None):
+ hr_eval_obj = self.pool.get('hr_evaluation.evaluation')
if context is None:
context = {}
- hr_eval_obj = self.pool.get('hr_evaluation.evaluation')
for id in self.browse(cr, uid, ids, context=context):
flag = False
wating_id = 0
tot_done_req = 0
if not id.evaluation_id.id:
raise osv.except_osv(_('Warning !'),_("You cannot start evaluation without Evaluation."))
- records = hr_eval_obj.browse(cr, uid, [id.evaluation_id.id],context=context)[0].survey_request_ids
+ records = hr_eval_obj.browse(cr, uid, [id.evaluation_id.id], context=context)[0].survey_request_ids
for child in records:
if child.state == "draft" :
wating_id = child.id
@@ -300,16 +320,20 @@ class hr_evaluation_interview(osv.osv):
else :
tot_done_req += 1
if not flag and wating_id:
- self.survey_req_waiting_answer(cr, uid, [wating_id], context)
+ self.survey_req_waiting_answer(cr, uid, [wating_id], context=context)
hr_eval_obj.write(cr, uid, [id.evaluation_id.id], {'progress': tot_done_req * 100 / len(records)}, context=context)
- self.write(cr, uid, ids, { 'state': 'done'})
+ self.write(cr, uid, ids, { 'state': 'done'}, context=context)
return True
def survey_req_draft(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
self.write(cr, uid, ids, { 'state': 'draft'}, context=context)
return True
def survey_req_cancel(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
self.write(cr, uid, ids, { 'state': 'cancel'}, context=context)
return True
@@ -326,7 +350,7 @@ class hr_evaluation_interview(osv.osv):
"""
if not context:
context = {}
- record = self.browse(cr, uid, ids, context)
+ record = self.browse(cr, uid, ids, context=context)
record = record and record[0]
context.update({'survey_id': record.survey_id.id, 'response_id': [record.response.id], 'response_no':0,})
value = self.pool.get("survey").action_print_survey(cr, uid, ids, context)
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index 225295c3a56..a2ddebc5f20 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -238,7 +238,7 @@
+ help="Evaluations that overpassed the deadline" domain="[('date','>=',str(datetime.date.today()))]" />
diff --git a/addons/hr_evaluation/i18n/es.po b/addons/hr_evaluation/i18n/es.po
index 87a362033f9..94e7c6dc701 100644
--- a/addons/hr_evaluation/i18n/es.po
+++ b/addons/hr_evaluation/i18n/es.po
@@ -8,13 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-25 12:18+0000\n"
-"PO-Revision-Date: 2010-06-29 22:34+0000\n"
-"Last-Translator: Borja López Soilán (Pexego) \n"
+"PO-Revision-Date: 2010-07-23 19:03+0000\n"
+"Last-Translator: Jordi Esteve (www.zikzakmedia.com) "
+"\n"
"Language-Team: Spanish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-07-01 03:45+0000\n"
+"X-Launchpad-Export-Date: 2010-07-24 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_evaluation
@@ -84,7 +85,7 @@ msgstr "Datos informales"
#. module: hr_evaluation
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr "Nombre de modelo inválido en la definición de acción."
+msgstr "Nombre de modelo no válido en la definición de la acción."
#. module: hr_evaluation
#: field:hr_evaluation.evaluation,employee_id:0
diff --git a/addons/hr_evaluation/wizard/hr_evaluation_mail.py b/addons/hr_evaluation/wizard/hr_evaluation_mail.py
index 97dd1ca01c7..75aecf6a9f1 100644
--- a/addons/hr_evaluation/wizard/hr_evaluation_mail.py
+++ b/addons/hr_evaluation/wizard/hr_evaluation_mail.py
@@ -30,6 +30,8 @@ class hr_evaluation_reminder(osv.osv_memory):
def send_mail(self, cr, uid, ids, context=None):
hr_evaluation_obj = self.pool.get('hr_evaluation.evaluation')
+ if context is None:
+ context = {}
evaluation_data = self.read(cr, uid, ids, context=context)[0]
for waiting_id in hr_evaluation_obj.browse(cr, uid, evaluation_data['evaluation_id'], context=context).survey_request_ids:
if waiting_id.state == "waiting_answer" and waiting_id.user_to_review_id.work_email :
diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py
index d1d151c08f3..98eb7b9dc52 100644
--- a/addons/hr_expense/hr_expense.py
+++ b/addons/hr_expense/hr_expense.py
@@ -25,7 +25,9 @@ from osv import fields, osv
from tools.translate import _
def _employee_get(obj, cr, uid, context=None):
- ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)])
+ if context is None:
+ context = {}
+ ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
if ids:
return ids[0]
return False
@@ -33,21 +35,27 @@ def _employee_get(obj, cr, uid, context=None):
class hr_expense_expense(osv.osv):
def copy(self, cr, uid, id, default=None, context=None):
+ if context is None:
+ context = {}
if not default: default = {}
default.update({'invoice_id': False, 'date_confirm': False, 'date_valid': False, 'user_valid': False})
- return super(hr_expense_expense, self).copy(cr, uid, id, default, context)
+ return super(hr_expense_expense, self).copy(cr, uid, id, default, context=context)
def _amount(self, cr, uid, ids, field_name, arg, context=None):
+ if context is None:
+ context = {}
cr.execute("SELECT s.id,COALESCE(SUM(l.unit_amount*l.unit_quantity),0) AS amount FROM hr_expense_expense s LEFT OUTER JOIN hr_expense_line l ON (s.id=l.expense_id) WHERE s.id IN %s GROUP BY s.id ", (tuple(ids),))
res = dict(cr.fetchall())
return res
def _get_currency(self, cr, uid, context=None):
- user = self.pool.get('res.users').browse(cr, uid, [uid])[0]
+ if context is None:
+ context = {}
+ user = self.pool.get('res.users').browse(cr, uid, [uid], context=context)[0]
if user.company_id:
return user.company_id.currency_id.id
else:
- return self.pool.get('res.currency').search(cr, uid, [('rate','=',1.0)])[0]
+ return self.pool.get('res.currency').search(cr, uid, [('rate','=',1.0)], context=context)[0]
_name = "hr.expense.expense"
_description = "Expense"
@@ -115,6 +123,8 @@ class hr_expense_expense(osv.osv):
def action_invoice_create(self, cr, uid, ids):
res = False
invoice_obj = self.pool.get('account.invoice')
+ property_obj = self.pool.get('ir.property')
+ sequence_obj = self.pool.get('ir.sequence')
for exp in self.browse(cr, uid, ids):
lines = []
for l in exp.line_ids:
@@ -125,7 +135,7 @@ class hr_expense_expense(osv.osv):
acc = l.product_id.categ_id.property_account_expense_categ
tax_id = [x.id for x in l.product_id.supplier_taxes_id]
else:
- acc = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category')
+ acc = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category')
if not acc:
raise osv.except_osv(_('Error !'), _('Please configure Default Expanse account for Product purchase, `property_account_expense_categ`'))
@@ -145,7 +155,7 @@ class hr_expense_expense(osv.osv):
payment_term_id = exp.employee_id.address_id.partner_id.property_payment_term.id
inv = {
'name': exp.name,
- 'reference': self.pool.get('ir.sequence').get(cr, uid, 'hr.expense.invoice'),
+ 'reference': sequence_obj.get(cr, uid, 'hr.expense.invoice'),
'account_id': acc,
'type': 'in_invoice',
'partner_id': exp.employee_id.address_id.partner_id.id,
@@ -184,6 +194,8 @@ class hr_expense_line(osv.osv):
_description = "Expense Line"
def _amount(self, cr, uid, ids, field_name, arg, context=None):
+ if context is None:
+ context = {}
if not len(ids):
return {}
cr.execute("SELECT l.id,COALESCE(SUM(l.unit_amount*l.unit_quantity),0) AS amount FROM hr_expense_line l WHERE id IN %s GROUP BY l.id ",(tuple(ids),))
@@ -215,16 +227,16 @@ class hr_expense_line(osv.osv):
context = {}
v = {}
if product_id:
- product=self.pool.get('product.product').browse(cr, uid, product_id, context=context)
- v['name']=product.name
+ product = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
+ v['name'] = product.name
# Compute based on pricetype of employee company
- pricetype_id = self.pool.get('hr.employee').browse(cr, uid, employee_id).user_id.company_id.property_valuation_price_type.id
- context['currency_id']=self.pool.get('hr.employee').browse(cr, uid, employee_id).user_id.company_id.currency_id.id
- pricetype=self.pool.get('product.price.type').browse(cr, uid, pricetype_id)
- amount_unit=product.price_get(pricetype.field, context)[product.id]
- v['unit_amount']=amount_unit
+ pricetype_id = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.property_valuation_price_type.id
+ context['currency_id'] = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.currency_id.id
+ pricetype = self.pool.get('product.price.type').browse(cr, uid, pricetype_id, context=context)
+ amount_unit = product.price_get(pricetype.field, context)[product.id]
+ v['unit_amount'] = amount_unit
if not uom_id:
- v['uom_id']=product.uom_id.id
+ v['uom_id'] = product.uom_id.id
return {'value': v}
hr_expense_line()
diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py
index a5ffdbdfc49..59264aec693 100644
--- a/addons/hr_holidays/hr_holidays.py
+++ b/addons/hr_holidays/hr_holidays.py
@@ -33,8 +33,10 @@ class hr_holidays_status(osv.osv):
_description = "Leave Type"
def get_days_cat(self, cr, uid, ids, category_id, return_false, context=None):
+ if context is None:
+ context = {}
res = {}
- for record in self.browse(cr, uid, ids, context):
+ for record in self.browse(cr, uid, ids, context=context):
res[record.id] = {}
max_leaves = leaves_taken = 0
if not return_false:
@@ -50,6 +52,8 @@ class hr_holidays_status(osv.osv):
return res
def get_days(self, cr, uid, ids, employee_id, return_false, context=None):
+ if context is None:
+ context = {}
res = {}
for record in self.browse(cr, uid, ids, context=context):
res[record.id] = {}
@@ -67,16 +71,18 @@ class hr_holidays_status(osv.osv):
return res
def _user_left_days(self, cr, uid, ids, name, args, context=None):
+ if context is None:
+ context = {}
return_false = False
employee_id = False
res = {}
-
+
if context and context.has_key('employee_id'):
if not context['employee_id']:
return_false = True
employee_id = context['employee_id']
else:
- employee_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)])
+ employee_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)], context=context)
if employee_ids:
employee_id = employee_ids[0]
else:
@@ -112,7 +118,9 @@ class hr_holidays(osv.osv):
_order = "type desc, date_from asc"
def _employee_get(obj, cr, uid, context=None):
- ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)])
+ if context is None:
+ context = {}
+ ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
if ids:
return ids[0]
return False
@@ -152,13 +160,17 @@ class hr_holidays(osv.osv):
def _create_resource_leave(self, cr, uid, vals, context=None):
'''This method will create entry in resource calendar leave object at the time of holidays validated '''
+ if context is None:
+ context = {}
obj_res_leave = self.pool.get('resource.calendar.leaves')
- return obj_res_leave.create(cr, uid, vals)
+ return obj_res_leave.create(cr, uid, vals, context=context)
def _remove_resouce_leave(self, cr, uid, ids, context=None):
'''This method will create entry in resource calendar leave object at the time of holidays cancel/removed'''
obj_res_leave = self.pool.get('resource.calendar.leaves')
- leave_ids = obj_res_leave.search(cr, uid, [('holiday_id', 'in', ids)])
+ if context is None:
+ context = {}
+ leave_ids = obj_res_leave.search(cr, uid, [('holiday_id', 'in', ids)], context=context)
return obj_res_leave.unlink(cr, uid, leave_ids)
def create(self, cr, uid, vals, context=None):
@@ -231,6 +243,8 @@ class hr_holidays(osv.osv):
_constraints = [(_check_date, 'Start date should not be larger than end date!\nNumber of Days should be greater than 1!', ['number_of_days_temp'])]
def unlink(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
self._update_user_holidays(cr, uid, ids)
self._remove_resouce_leave(cr, uid, ids, context=context)
return super(hr_holidays, self).unlink(cr, uid, ids, context)
@@ -252,9 +266,11 @@ class hr_holidays(osv.osv):
return self.onchange_date_from(cr, uid, ids, date_to, date_from)
def onchange_sec_id(self, cr, uid, ids, status, context=None):
+ if context is None:
+ context = {}
warning = {}
if status:
- brows_obj = self.pool.get('hr.holidays.status').browse(cr, uid, [status])[0]
+ brows_obj = self.pool.get('hr.holidays.status').browse(cr, uid, [status], context=context)[0]
if brows_obj.categ_id and brows_obj.categ_id.section_id and not brows_obj.categ_id.section_id.allow_unlink:
warning = {
'title': "Warning for ",
@@ -369,6 +385,9 @@ class hr_holidays(osv.osv):
return True
def check_holidays(self, cr, uid, ids):
+ holi_status_obj = self.pool.get('hr.holidays.status')
+ emp_obj = self.pool.get('hr.employee')
+ meeting_obj = self.pool.get('crm.meeting')
for record in self.browse(cr, uid, ids):
if not record.number_of_days:
raise osv.except_osv(_('Warning!'), _('Wrong leave definition.'))
@@ -376,14 +395,14 @@ class hr_holidays(osv.osv):
leave_asked = record.number_of_days
if leave_asked < 0.00:
if not record.holiday_status_id.limit:
- leaves_rest = self.pool.get('hr.holidays.status').get_days(cr, uid, [record.holiday_status_id.id], record.employee_id.id, False)[record.holiday_status_id.id]['remaining_leaves']
+ leaves_rest = holi_status_obj.get_days(cr, uid, [record.holiday_status_id.id], record.employee_id.id, False)[record.holiday_status_id.id]['remaining_leaves']
if leaves_rest < -(leave_asked):
raise osv.except_osv(_('Warning!'),_('You Cannot Validate leaves while available leaves are less than asked leaves.'))
elif record.holiday_type == 'category' and record.category_id:
leave_asked = record.number_of_days
if leave_asked < 0.00:
if not record.holiday_status_id.limit:
- leaves_rest = self.pool.get('hr.holidays.status').get_days_cat(cr, uid, [record.holiday_status_id.id], record.category_id.id, False)[record.holiday_status_id.id]['remaining_leaves']
+ leaves_rest = holi_status_obj.get_days_cat(cr, uid, [record.holiday_status_id.id], record.category_id.id, False)[record.holiday_status_id.id]['remaining_leaves']
if leaves_rest < -(leave_asked):
raise osv.except_osv(_('Warning!'),_('You Cannot Validate leaves while available leaves are less than asked leaves.'))
else:# This condition will never meet!!
@@ -401,10 +420,10 @@ class hr_holidays(osv.osv):
'allocation_type': record.allocation_type,
'parent_id': record.id,
}
- employee_ids = self.pool.get('hr.employee').search(cr, uid, [])
+ employee_ids = emp_obj.search(cr, uid, [])
for employee in employee_ids:
vals['employee_id'] = employee
- user_id = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)])
+ user_id = emp_obj.search(cr, uid, [('user_id','=',uid)])
if user_id:
vals['user_id'] = user_id[0]
holiday_ids.append(self.create(cr, uid, vals, context=None))
@@ -435,7 +454,7 @@ class hr_holidays(osv.osv):
'user_id' : record.user_id.id,
'date' : record.date_from,
}
- case_id = self.pool.get('crm.meeting').create(cr, uid, vals)
+ case_id = meeting_obj.create(cr, uid, vals)
self.write(cr, uid, ids, {'case_id': case_id})
return True
diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_department.py b/addons/hr_holidays/wizard/hr_holidays_summary_department.py
index b95b85c7d5b..a08354fd40d 100644
--- a/addons/hr_holidays/wizard/hr_holidays_summary_department.py
+++ b/addons/hr_holidays/wizard/hr_holidays_summary_department.py
@@ -41,7 +41,7 @@ class hr_holidays_summary_dept(osv.osv_memory):
def print_report(self, cr, uid, ids, context=None):
if context is None:
context = {}
- data = self.read(cr, uid, ids, [])[0]
+ data = self.read(cr, uid, ids, [], context=context)[0]
if not data['depts']:
raise osv.except_osv(_('Error'), _('You have to select at least 1 Department. And try again'))
datas = {
diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_employees.py b/addons/hr_holidays/wizard/hr_holidays_summary_employees.py
index 7e8d66108d4..ca9ccc83db7 100644
--- a/addons/hr_holidays/wizard/hr_holidays_summary_employees.py
+++ b/addons/hr_holidays/wizard/hr_holidays_summary_employees.py
@@ -40,7 +40,7 @@ class hr_holidays_summary_employee(osv.osv_memory):
def print_report(self, cr, uid, ids, context=None):
if context is None:
context = {}
- data = self.read(cr, uid, ids, [])[0]
+ data = self.read(cr, uid, ids, [], context=context)[0]
data['emp'] = context['active_ids']
datas = {
'ids': [],
diff --git a/addons/hr_payroll/__init__.py b/addons/hr_payroll/__init__.py
index ee49b4e7794..c66b5ab7948 100644
--- a/addons/hr_payroll/__init__.py
+++ b/addons/hr_payroll/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
#
@@ -25,4 +24,4 @@ import hr_payroll
import report
import wizard
-# 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/hr_payroll/__openerp__.py b/addons/hr_payroll/__openerp__.py
index 3efa777885c..7575dcf9ad6 100644
--- a/addons/hr_payroll/__openerp__.py
+++ b/addons/hr_payroll/__openerp__.py
@@ -53,13 +53,11 @@
'wizard/hr_payroll_create_analytic.xml',
'wizard/hr_payroll_employees_detail.xml',
'wizard/hr_payroll_year_salary.xml',
-
],
'test': [
- 'test/payslip.yml',
- 'test/payment_advice.yml',
- 'test/payroll_register.yml',
-
+ 'test/payslip.yml',
+ 'test/payment_advice.yml',
+ 'test/payroll_register.yml',
],
'demo_xml': [
'hr_payroll_demo.xml'
diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py
index 753d3d6d017..a7984d7c7fa 100644
--- a/addons/hr_payroll/hr_payroll.py
+++ b/addons/hr_payroll/hr_payroll.py
@@ -21,15 +21,14 @@
##############################################################################
import time
+from datetime import date, datetime, timedelta
import netsvc
-from osv import osv
-from osv import fields
+
+from osv import fields, osv
from tools import config
from tools.translate import _
-from datetime import date
-from datetime import datetime
-from datetime import timedelta
+
def prev_bounds(cdate=False):
when = date.fromtimestamp(time.mktime(time.strptime(cdate,"%Y-%m-%d")))
@@ -114,12 +113,14 @@ class hr_payroll_structure(osv.osv):
@return: returns a id of newly created record
"""
- code = self.browse(cr, uid, id).code
+ if context is None:
+ context = {}
+ code = self.browse(cr, uid, id, context=context).code
default = {
'code':code+"(copy)",
'company_id':self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
}
- res_id = super(hr_payroll_structure, self).copy(cr, uid, id, default, context)
+ res_id = super(hr_payroll_structure, self).copy(cr, uid, id, default, context=context)
return res_id
hr_payroll_structure()
@@ -153,13 +154,13 @@ class payroll_register(osv.osv):
_name = 'hr.payroll.register'
_description = 'Payroll Register'
- def _calculate(self, cr, uid, ids, field_names, arg, context):
+ def _calculate(self, cr, uid, ids, field_names, arg, context=None):
res = {}
allounce = 0.0
deduction = 0.0
net = 0.0
grows = 0.0
- for register in self.browse(cr, uid, ids, context):
+ for register in self.browse(cr, uid, ids, context=context):
for slip in register.line_ids:
allounce += slip.allounce
deduction += slip.deduction
@@ -210,21 +211,23 @@ class payroll_register(osv.osv):
context=context).company_id.id,
}
- def compute_sheet(self, cr, uid, ids, context={}):
+ def compute_sheet(self, cr, uid, ids, context=None):
emp_pool = self.pool.get('hr.employee')
slip_pool = self.pool.get('hr.payslip')
func_pool = self.pool.get('hr.payroll.structure')
slip_line_pool = self.pool.get('hr.payslip.line')
wf_service = netsvc.LocalService("workflow")
+ if context is None:
+ context = {}
- vals = self.browse(cr, uid, ids)[0]
+ vals = self.browse(cr, uid, ids, context=context)[0]
- emp_ids = emp_pool.search(cr, uid, [])
+ emp_ids = emp_pool.search(cr, uid, [], context=context)
- for emp in emp_pool.browse(cr, uid, emp_ids):
- old_slips = slip_pool.search(cr, uid, [('employee_id','=', emp.id), ('date','=',vals.date)])
+ for emp in emp_pool.browse(cr, uid, emp_ids, context=context):
+ old_slips = slip_pool.search(cr, uid, [('employee_id','=', emp.id), ('date','=',vals.date)], context=context)
if old_slips:
- slip_pool.write(cr, uid, old_slips, {'register_id':ids[0]})
+ slip_pool.write(cr, uid, old_slips, {'register_id':ids[0]}, context=context)
for sid in old_slips:
wf_service.trg_validate(uid, 'hr.payslip', sid, 'compute_sheet', cr)
else:
@@ -237,48 +240,54 @@ class payroll_register(osv.osv):
'journal_id':vals.journal_id.id,
'bank_journal_id':vals.bank_journal_id.id
}
- slip_id = slip_pool.create(cr, uid, res)
+ slip_id = slip_pool.create(cr, uid, res, context=context)
wf_service.trg_validate(uid, 'hr.payslip', slip_id, 'compute_sheet', cr)
number = self.pool.get('ir.sequence').get(cr, uid, 'salary.register')
- self.write(cr, uid, ids, {'state':'draft', 'number':number})
+ self.write(cr, uid, ids, {'state':'draft', 'number':number}, context=context)
return True
- def verify_sheet(self, cr, uid, ids, context={}):
+ def verify_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
slip_pool = self.pool.get('hr.payslip')
for id in ids:
- sids = slip_pool.search(cr, uid, [('register_id','=',id)])
+ sids = slip_pool.search(cr, uid, [('register_id','=',id)], context=context)
wf_service = netsvc.LocalService("workflow")
for sid in sids:
wf_service.trg_validate(uid, 'hr.payslip', sid, 'verify_sheet', cr)
- self.write(cr, uid, ids, {'state':'hr_check'})
+ self.write(cr, uid, ids, {'state':'hr_check'}, context=context)
return True
- def final_verify_sheet(self, cr, uid, ids, context={}):
+ def final_verify_sheet(self, cr, uid, ids, context=None):
slip_pool = self.pool.get('hr.payslip')
advice_pool = self.pool.get('hr.payroll.advice')
advice_line_pool = self.pool.get('hr.payroll.advice.line')
+ sequence_pool = self.pool.get('ir.sequence')
+ users_pool = self.pool.get('res.users')
+ if context is None:
+ context = {}
for id in ids:
- sids = slip_pool.search(cr, uid, [('register_id','=',id), ('state','=','hr_check')])
+ sids = slip_pool.search(cr, uid, [('register_id','=',id), ('state','=','hr_check')], context=context)
wf_service = netsvc.LocalService("workflow")
for sid in sids:
wf_service.trg_validate(uid, 'hr.payslip', sid, 'final_verify_sheet', cr)
- for reg in self.browse(cr, uid, ids):
+ for reg in self.browse(cr, uid, ids, context=context):
accs = {}
for slip in reg.line_ids:
pid = False
if accs.get(slip.employee_id.property_bank_account.code, False) == False:
advice = {
- 'name': 'Payment Advice from %s / Bank Account %s' % (self.pool.get('res.users').browse(cr, uid, uid).company_id.name, slip.employee_id.property_bank_account.name),
- 'number': self.pool.get('ir.sequence').get(cr, uid, 'payment.advice'),
+ 'name': 'Payment Advice from %s / Bank Account %s' % (users_pool.browse(cr, uid, uid, context=context).company_id.name, slip.employee_id.property_bank_account.name),
+ 'number': sequence_pool.get(cr, uid, 'payment.advice'),
'register_id':reg.id,
'account_id':slip.employee_id.property_bank_account.id
}
- pid = advice_pool.create(cr, uid, advice)
+ pid = advice_pool.create(cr, uid, advice, context=context)
accs[slip.employee_id.property_bank_account.code] = pid
else:
pid = accs[slip.employee_id.property_bank_account.code]
@@ -290,21 +299,21 @@ class payroll_register(osv.osv):
'amount':slip.other_pay + slip.net,
'bysal':slip.net
}
- id = advice_line_pool.create(cr, uid, pline)
+ id = advice_line_pool.create(cr, uid, pline, context=context)
#, 'advice_ids':[(6, 0, [pid])]
- self.write(cr, uid, ids, {'state':'confirm'})
+ self.write(cr, uid, ids, {'state':'confirm'}, context=context)
return True
- def process_sheet(self, cr, uid, ids, context={}):
+ def process_sheet(self, cr, uid, ids, context=None):
slip_pool = self.pool.get('hr.payslip')
for id in ids:
- sids = slip_pool.search(cr, uid, [('register_id','=',id), ('state','=','confirm')])
+ sids = slip_pool.search(cr, uid, [('register_id','=',id), ('state','=','confirm')], context=context)
wf_service = netsvc.LocalService("workflow")
for sid in sids:
wf_service.trg_validate(uid, 'hr.payslip', sid, 'process_sheet', cr)
- self.write(cr, uid, ids, {'state':'done'})
+ self.write(cr, uid, ids, {'state':'done'}, context=context)
return True
payroll_register()
@@ -341,16 +350,22 @@ class payroll_advice(osv.osv):
context=context).company_id.id,
}
- def confirm_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'confirm'})
+ def confirm_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'confirm'}, context=context)
return True
- def set_to_draft(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'draft'})
+ def set_to_draft(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'draft'}, context=context)
return True
- def cancel_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'cancel'})
+ def cancel_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'cancel'}, context=context)
return True
payroll_advice()
@@ -374,15 +389,17 @@ class payroll_advice_line(osv.osv):
'flag': lambda *a: 'C',
}
- def onchange_employee_id(self, cr, uid, ids, ddate, employee_id, context={}):
+ def onchange_employee_id(self, cr, uid, ids, ddate, employee_id, context=None):
vals = {}
slip_pool = self.pool.get('hr.payslip')
+ if context is None:
+ context = {}
if employee_id:
dates = prev_bounds(ddate)
sids = False
- sids = slip_pool.search(cr, uid, [('paid','=',False),('state','=','confirm'),('date','>=',dates[0]), ('employee_id','=',employee_id), ('date','<=',dates[1])])
+ sids = slip_pool.search(cr, uid, [('paid','=',False),('state','=','confirm'),('date','>=',dates[0]), ('employee_id','=',employee_id), ('date','<=',dates[1])], context=context)
if sids:
- slip = slip_pool.browse(cr, uid, sids[0])
+ slip = slip_pool.browse(cr, uid, sids[0], context=context)
vals['name'] = slip.employee_id.otherid
vals['amount'] = slip.net + slip.other_pay
vals['bysal'] = slip.net
@@ -398,24 +415,26 @@ class contrib_register(osv.osv):
_name = 'hr.contibution.register'
_description = 'Contribution Register'
- def _total_contrib(self, cr, uid, ids, field_names, arg, context={}):
+ def _total_contrib(self, cr, uid, ids, field_names, arg, context=None):
line_pool = self.pool.get('hr.contibution.register.line')
- period_id = self.pool.get('account.period').search(cr,uid,[('date_start','<=',time.strftime('%Y-%m-%d')),('date_stop','>=',time.strftime('%Y-%m-%d'))])[0]
- fiscalyear_id = self.pool.get('account.period').browse(cr, uid, period_id).fiscalyear_id
+ if context is None:
+ context = {}
+ period_id = self.pool.get('account.period').search(cr,uid,[('date_start','<=',time.strftime('%Y-%m-%d')),('date_stop','>=',time.strftime('%Y-%m-%d'))], context=context)[0]
+ fiscalyear_id = self.pool.get('account.period').browse(cr, uid, period_id, context=context).fiscalyear_id
res = {}
- for cur in self.browse(cr, uid, ids):
- current = line_pool.search(cr, uid, [('period_id','=',period_id),('register_id','=',cur.id)])
- years = line_pool.search(cr, uid, [('period_id.fiscalyear_id','=',fiscalyear_id.id), ('register_id','=',cur.id)])
+ for cur in self.browse(cr, uid, ids, context=context):
+ current = line_pool.search(cr, uid, [('period_id','=',period_id),('register_id','=',cur.id)], context=context)
+ years = line_pool.search(cr, uid, [('period_id.fiscalyear_id','=',fiscalyear_id.id), ('register_id','=',cur.id)], context=context)
e_month = 0.0
c_month = 0.0
- for i in line_pool.browse(cr, uid, current):
+ for i in line_pool.browse(cr, uid, current, context=context):
e_month += i.emp_deduction
c_month += i.comp_deduction
e_year = 0.0
c_year = 0.0
- for j in line_pool.browse(cr, uid, years):
+ for j in line_pool.browse(cr, uid, years, context=context):
e_year += i.emp_deduction
c_year += i.comp_deduction
@@ -454,9 +473,11 @@ class contrib_register_line(osv.osv):
_name = 'hr.contibution.register.line'
_description = 'Contribution Register Line'
- def _total(self, cr, uid, ids, field_names, arg, context):
+ def _total(self, cr, uid, ids, field_names, arg, context=None):
+ if context is None:
+ context = {}
res={}
- for line in self.browse(cr, uid, ids, context):
+ for line in self.browse(cr, uid, ids, context=context):
res[line.id] = line.emp_deduction + line.comp_deduction
return res
@@ -564,22 +585,23 @@ class company_contribution(osv.osv):
context=context).company_id.id,
}
- def execute_function(self, cr, uid, id, value, context):
+ def execute_function(self, cr, uid, id, value, context=None):
"""
self: pointer to self object
cr: cursor to database
uid: user id of current executer
"""
-
line_pool = self.pool.get('company.contribution.line')
+ if context is None:
+ context = {}
res = 0
- ids = line_pool.search(cr, uid, [('category_id','=',id), ('to_val','>=',value),('from_val','<=',value)])
+ ids = line_pool.search(cr, uid, [('category_id','=',id), ('to_val','>=',value),('from_val','<=',value)], context=context)
if not ids:
- ids = line_pool.search(cr, uid, [('category_id','=',id), ('from','<=',value)])
+ ids = line_pool.search(cr, uid, [('category_id','=',id), ('from','<=',value)], context=context)
if not ids:
res = 0
else:
- res = line_pool.browse(cr, uid, ids)[0].value
+ res = line_pool.browse(cr, uid, ids, context=context)[0].value
return res
company_contribution()
@@ -645,9 +667,12 @@ class hr_payslip(osv.osv):
_name = 'hr.payslip'
_description = 'Pay Slip'
- def _calculate(self, cr, uid, ids, field_names, arg, context):
+ def _calculate(self, cr, uid, ids, field_names, arg, context=None):
+ slip_line_obj = self.pool.get('hr.payslip.line')
+ if context is None:
+ context = {}
res = {}
- for rs in self.browse(cr, uid, ids, context):
+ for rs in self.browse(cr, uid, ids, context=context):
allow = 0.0
deduct = 0.0
others = 0.0
@@ -698,7 +723,7 @@ class hr_payslip(osv.osv):
elif line.type == 'otherpay':
others += amount
- self.pool.get('hr.payslip.line').write(cr, uid, [line.id], {'total':amount})
+ slip_line_obj.write(cr, uid, [line.id], {'total':amount}, context=context)
record = {
'allounce':round(allow),
@@ -759,6 +784,8 @@ class hr_payslip(osv.osv):
}
def copy(self, cr, uid, id, default=None, context=None):
+ if context is None:
+ context = {}
company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
default = {
'line_ids': False,
@@ -770,7 +797,7 @@ class hr_payslip(osv.osv):
'basic_before_leaves':0,
'basic':0
}
- res_id = super(hr_payslip, self).copy(cr, uid, id, default, context)
+ res_id = super(hr_payslip, self).copy(cr, uid, id, default, context=context)
return res_id
def create_voucher(self, cr, uid, ids, name, voucher, sequence=5):
@@ -784,31 +811,45 @@ class hr_payslip(osv.osv):
}
slip_move.create(cr, uid, res)
- def set_to_draft(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'draft'})
+ def set_to_draft(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'draft'}, context=context)
return True
- def cancel_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'cancel'})
+ def cancel_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'cancel'}, context=context)
return True
- def account_check_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'accont_check'})
+ def account_check_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'accont_check'}, context=context)
return True
- def hr_check_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'hr_check'})
+ def hr_check_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'hr_check'}, context=context)
return True
-
- def process_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'done'})
+
+ def process_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'done'}, context=context)
return True
-
- def verify_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'confirm'})
+
+ def verify_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'confirm'}, context=context)
return True
-
- def get_contract(self, cr, uid, employee, date, context={}):
+
+ def get_contract(self, cr, uid, employee, date, context=None):
+ if context is None:
+ context = {}
sql_req= '''
SELECT c.id as id, c.wage as wage, struct_id as function
FROM hr_contract c
@@ -828,7 +869,7 @@ class hr_payslip(osv.osv):
return contract
- def _get_leaves(self, cr, user, slip, employee, context={}):
+ def _get_leaves(self, cr, user, slip, employee, context=None):
"""
Compute leaves for an employee
@@ -840,7 +881,8 @@ class hr_payslip(osv.osv):
@return: return a result
"""
-
+ if context is None:
+ context = {}
result = []
dates = prev_bounds(slip.date)
@@ -856,14 +898,17 @@ class hr_payslip(osv.osv):
return result
- def compute_sheet(self, cr, uid, ids, context={}):
+ def compute_sheet(self, cr, uid, ids, context=None):
emp_pool = self.pool.get('hr.employee')
slip_pool = self.pool.get('hr.payslip')
func_pool = self.pool.get('hr.payroll.structure')
slip_line_pool = self.pool.get('hr.payslip.line')
holiday_pool = self.pool.get('hr.holidays')
-
- date = self.read(cr, uid, ids, ['date'])[0]['date']
+ contract_obj = self.pool.get('hr.contract')
+ sequence_obj = self.pool.get('ir.sequence')
+ if context is None:
+ context = {}
+ date = self.read(cr, uid, ids, ['date'], context=context)[0]['date']
#Check for the Holidays
def get_days(start, end, month, year, calc_day):
@@ -874,25 +919,25 @@ class hr_payslip(osv.osv):
count += 1
return count
- for slip in self.browse(cr, uid, ids):
+ for slip in self.browse(cr, uid, ids, context=context):
contracts = self.get_contract(cr, uid, slip.employee_id, date, context)
if contracts.get('id', False) == False:
continue
- contract = self.pool.get('hr.contract').browse(cr, uid, contracts.get('id'))
+ contract = contract_obj.browse(cr, uid, contracts.get('id'), context=context)
sal_type = contract.wage_type_id.type
function = contract.struct_id.id
lines = []
if function:
- func = func_pool.read(cr, uid, function, ['line_ids'])
- lines = slip_line_pool.browse(cr, uid, func['line_ids'])
+ func = func_pool.read(cr, uid, function, ['line_ids'], context=context)
+ lines = slip_line_pool.browse(cr, uid, func['line_ids'], context=context)
lines += slip.employee_id.line_ids
- old_slip_id = slip_line_pool.search(cr, uid, [('slip_id','=',slip.id)])
- slip_line_pool.unlink(cr, uid, old_slip_id)
+ old_slip_ids = slip_line_pool.search(cr, uid, [('slip_id','=',slip.id)], context=context)
+ slip_line_pool.unlink(cr, uid, old_slip_ids, context=context)
ad = []
lns = {}
@@ -972,14 +1017,14 @@ class hr_payslip(osv.osv):
value = line.amount
elif line.amount_type == 'func':
- value = self.pool.get('hr.payslip.line').execute_function(cr, uid, line.id, amt, context)
+ value = slip_line_pool.execute_function(cr, uid, line.id, amt, context)
line.amount = value
else:
if line.amount_type in ('fix', 'per'):
value = line.amount
-
+
elif line.amount_type == 'func':
- value = self.pool.get('hr.payslip.line').execute_function(cr, uid, line.id, amt, context)
+ value = slip_line_pool.execute_function(cr, uid, line.id, amt, context)
line.amount = value
if line.type == 'allowance':
@@ -997,7 +1042,7 @@ class hr_payslip(osv.osv):
'base':base
}
slip_line_pool.copy(cr, uid, line.id, vals, {})
-
+
if sal_type in ('gross', 'net'):
sal = contract.wage
if sal_type == 'net':
@@ -1015,7 +1060,7 @@ class hr_payslip(osv.osv):
else:
basic = contract.wage
- number = self.pool.get('ir.sequence').get(cr, uid, 'salary.slip')
+ number = sequence_obj.get(cr, uid, 'salary.slip')
ttyme = datetime.fromtimestamp(time.mktime(time.strptime(slip.date,"%Y-%m-%d")))
update.update({
'deg_id':function,
@@ -1027,9 +1072,9 @@ class hr_payslip(osv.osv):
'contract_id':contract.id,
'company_id':slip.employee_id.company_id.id
})
- self.write(cr, uid, [slip.id], update)
+ self.write(cr, uid, [slip.id], update, context=context)
- for slip in self.browse(cr, uid, ids):
+ for slip in self.browse(cr, uid, ids, context=context):
if not slip.contract_id :
continue
@@ -1055,7 +1100,7 @@ class hr_payslip(osv.osv):
total_leave = 0.0
paid_leave = 0.0
- for hday in holiday_pool.browse(cr, uid, leave_ids):
+ for hday in holiday_pool.browse(cr, uid, leave_ids, context=context):
res = {
'slip_id':slip.id,
'name':hday.holiday_status_id.name + '-%s' % (hday.number_of_days),
@@ -1089,7 +1134,7 @@ class hr_payslip(osv.osv):
leave += days
total += perday * days
- slip_line_pool.create(cr, uid, res)
+ slip_line_pool.create(cr, uid, res, context=context)
basic = basic - total
leaves = total
@@ -1100,7 +1145,7 @@ class hr_payslip(osv.osv):
'worked_days':working_day - leave,
'working_days':working_day,
})
- self.write(cr, uid, [slip.id], update)
+ self.write(cr, uid, [slip.id], update, context=context)
return True
@@ -1145,27 +1190,6 @@ class hr_payslip_line(osv.osv):
_name = 'hr.payslip.line'
_description = 'Payslip Line'
-# def _calculate(self, cr, uid, ids, field_names, arg, context):
-# res = {}
-# obj = {}
-# for line in self.browse(cr, uid, ids, context):
-# obj['basic'] = line.slip_id.basic
-# amount = 0.0
-#
-# if line.amount_type == 'per' and line.base:
-# print 'XXXXXXXXXXXXXXXX : ', obj
-# amount = line.amount * eval(line.base, obj)
-# elif line.amount_type in ('fix', 'func'):
-# amount = line.amount
-
-# cd = line.category_id.code.lower()
-# obj[cd] = amount
-# print 'XXXXXXXXXXXXXXXXXX : ', cd
-#
-# res[line.id] = amount
-# print 'XXXXXXXXXXXX : ', obj
-# return res
-
def onchange_category(self, cr, uid, ids, category_id):
seq = 0
res = {
@@ -1224,18 +1248,20 @@ class hr_payslip_line(osv.osv):
}
_order = 'sequence'
- def execute_function(self, cr, uid, id, value, context):
+ def execute_function(self, cr, uid, id, value, context=None):
+ if context is None:
+ context = {}
line_pool = self.pool.get('hr.payslip.line.line')
res = 0
- ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from_val','<=',value), ('to_val','>=',value)])
+ ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from_val','<=',value), ('to_val','>=',value)], context=context)
if not ids:
- ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from_val','<=',value)])
+ ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from_val','<=',value)], context=context)
if not ids:
return res
- res = line_pool.browse(cr, uid, ids)[-1].value
+ res = line_pool.browse(cr, uid, ids, context=context)[-1].value
return res
hr_payslip_line()
diff --git a/addons/hr_payroll/hr_payroll_wizard.xml b/addons/hr_payroll/hr_payroll_wizard.xml
index fe0264257e3..71267ddb742 100644
--- a/addons/hr_payroll/hr_payroll_wizard.xml
+++ b/addons/hr_payroll/hr_payroll_wizard.xml
@@ -25,16 +25,5 @@
parent="menu_hr_payroll_reporting"
name="Employee Salary Statement"
type="wizard"/>
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/hr_payroll/i18n/pl.po b/addons/hr_payroll/i18n/pl.po
new file mode 100644
index 00000000000..ddc6db33237
--- /dev/null
+++ b/addons/hr_payroll/i18n/pl.po
@@ -0,0 +1,1440 @@
+# Polish 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-25 13:16+0000\n"
+"PO-Revision-Date: 2010-07-26 10:59+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"Language-Team: Polish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "E-mail Address"
+msgstr "Adres e-mail"
+
+#. module: hr_payroll
+#: view:hr.holidays.status:0
+msgid "(Based on type Payroll will calculate basic salary)"
+msgstr "(Oparty na Liście płac do obliczeń podstawowych wynagrodzeń)"
+
+#. module: hr_payroll
+#: field:hr.payroll.register,net:0
+#: field:hr.payslip,net:0
+msgid "Net Salary"
+msgstr "Wynagrodzenie netto"
+
+#. module: hr_payroll
+#: field:hr.payslip,working_days:0
+msgid "Working Days"
+msgstr "Dni pracy"
+
+#. module: hr_payroll
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "New Slip"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "Axis Bank"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.employee,esp_account:0
+msgid "EPS Account"
+msgstr ""
+
+#. module: hr_payroll
+#: help:hr.employee,analytic_account:0
+msgid "Analytic Account for Salary Analysis"
+msgstr "Konto analityczne do analizy wynagrodzeń"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Allowances with Basic:"
+msgstr ""
+
+#. module: hr_payroll
+#: constraint:ir.actions.act_window:0
+msgid "Invalid model name in the action definition."
+msgstr "Nieprawidłowa nazwa modelu w definicji akcji."
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:salary.structure:0
+msgid "Department"
+msgstr "Dział"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Deductions:"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,gratuity:0
+msgid "Use for Gratuity ?"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Employee No"
+msgstr "Nr pracownika"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Salary Payment Register"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip,paid:0
+msgid "Paid ? "
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.year_salary_report
+msgid "Year Salary Report"
+msgstr "Raport wynagrodzeń rocznych"
+
+#. module: hr_payroll
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Paid Salary"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.advice.line,flag:0
+msgid "D/C"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.register,company_id:0
+#: field:hr.payslip,company_id:0
+#: wizard_field:payroll.analysis,init,company_id:0
+msgid "Company"
+msgstr "Firma"
+
+#. module: hr_payroll
+#: help:hr.employee,employee_account:0
+msgid "Employee Payable Account"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+msgid "Letter Details"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid ","
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Set to Draft"
+msgstr "Ustaw na projekt"
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "The Manager"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.holidays.status,type:0
+msgid "Half-Pay Holiday"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,type:0
+#: rml:hr.payroll.register.sheet:0
+#: field:hr.payslip,other_pay:0
+msgid "Others"
+msgstr "Inne"
+
+#. module: hr_payroll
+#: field:hr.payslip.line,slip_id:0
+#: model:ir.model,name:hr_payroll.model_hr_payslip
+#: rml:payslip.pdf:0
+msgid "Pay Slip"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.allounce.deduction.categoty:0
+msgid "Calculations Rules"
+msgstr "Reguły obliczeń"
+
+#. module: hr_payroll
+#: model:ir.module.module,description:hr_payroll.module_meta_information
+msgid ""
+"\n"
+" The Payroll system - India, Manages and depends on,\n"
+" * HR Details\n"
+" * HR Contracts\n"
+" * HR Payslip\n"
+" * HR Paysheet\n"
+" * HR Attendance\n"
+" * HR Holidays\n"
+" "
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+#: rml:salary.structure:0
+msgid "Salary"
+msgstr "Wynagrodzenie"
+
+#. module: hr_payroll
+#: field:hr.holidays.status,account_id:0
+msgid "Account"
+msgstr "Konto"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Payment From"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Miscelleanous / Statutory"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Leaves"
+msgstr "Nieobecności"
+
+#. module: hr_payroll
+#: field:hr.payslip,register_id:0
+msgid "Register"
+msgstr "Rejestr"
+
+#. module: hr_payroll
+#: selection:wizard.year.salary,init,salary_on:0
+msgid "Next Month Date"
+msgstr ""
+
+#. module: hr_payroll
+#: help:hr.payroll.register,period_id:0
+#: help:hr.payslip,period_id:0
+msgid "Keep empty to use the period of the validation(Payslip) date."
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,value:0
+msgid "Value"
+msgstr "Wartość"
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "Name of the Employee"
+msgstr "Nazwisko pracownika"
+
+#. module: hr_payroll
+#: field:hr.contract,permit_no:0
+msgid "Work Permit No"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.advice.line,amount:0
+#: rml:payroll.advice:0
+msgid "Amount"
+msgstr "Kwota"
+
+#. module: hr_payroll
+#: field:hr.payslip,line_ids:0
+#: view:hr.payslip.line:0
+#: model:ir.model,name:hr_payroll.model_hr_payslip_line
+msgid "Payslip Line"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.passport,country_id:0
+msgid "Country of Issue"
+msgstr ""
+
+#. module: hr_payroll
+#: code:addons/hr_payroll/hr_payroll.py:0
+#, python-format
+msgid "Warning !"
+msgstr "Ostrzeżenie !"
+
+#. module: hr_payroll
+#: code:addons/hr_payroll/hr_payroll.py:0
+#, python-format
+msgid "Please Confirm all Expanse Invoice appear for Reimbursement"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Other Deduction"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.holidays.status,type:0
+msgid "Paid Holiday"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Employees Salary Details"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.passport,date_expire:0
+msgid "Passport Expire Date"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Special Allowance and Deductions for Employee"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.holidays.status,type:0
+msgid "Un-Paid Holiday"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.register,period_id:0
+#: field:hr.payslip,period_id:0
+msgid "Force Period"
+msgstr "Wymuś okres"
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Amount (in words) :"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.holidays.status,type:0
+msgid "Payment"
+msgstr "Wypłata"
+
+#. module: hr_payroll
+#: field:hr.employee,analytic_account:0
+#: field:hr.employee.grade,account_id:0
+#: field:hr.holidays.status,analytic_account_id:0
+#: field:hr.payslip.line,analytic_account_id:0
+#: rml:salary.structure:0
+msgid "Analytic Account"
+msgstr "Konto analityczne"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Expanse To"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,base:0
+msgid "Based on"
+msgstr "Bazując na"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:salary.structure:0
+msgid "Bank"
+msgstr "Bank"
+
+#. module: hr_payroll
+#: field:hr.payslip,move_id:0
+msgid "Expanse Entries"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.module.module,shortdesc:hr_payroll.module_meta_information
+msgid "Human Resource Payroll"
+msgstr "Lista płac"
+
+#. module: hr_payroll
+#: constraint:account.analytic.account:0
+msgid "Error! You can not create recursive analytic accounts."
+msgstr "Błąd! Nie możesz tworzyć rekurencyjnych kont analitycznych"
+
+#. module: hr_payroll
+#: field:hr.employee,esi_account:0
+msgid "ESI Account"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.model,name:hr_payroll.model_hr_passport
+msgid "Passport Detail"
+msgstr ""
+
+#. module: hr_payroll
+#: code:addons/hr_payroll/hr_payroll.py:0
+#, python-format
+msgid "Please defined the Employee Home Address Along with Partners !!"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip.line,total:0
+msgid "Sub Total"
+msgstr "Suma"
+
+#. module: hr_payroll
+#: field:hr.contract,visa_no:0
+msgid "Visa No"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,from:0
+msgid "From"
+msgstr "Od"
+
+#. module: hr_payroll
+#: field:hr.payroll.advice.line,bysal:0
+msgid "By Salary"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.ui.menu,name:hr_payroll.menu_wizard_print_year_salary
+msgid "Employee Year Salary"
+msgstr "Wynagrodzenie roczne"
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.salary_payslip
+msgid "Employee PaySlip"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+#: rml:payroll.advice:0
+msgid "Authorised Signature"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,umo_id:0
+msgid "Unite"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Salary Detail"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "Notes:"
+msgstr "Uwagi:"
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "End Date"
+msgstr "Data końcowa"
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Accounting Information"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee.grade:0
+msgid "Amount Information"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.contract,passport_id:0
+#: field:hr.employee,passport_id:0
+#: view:hr.passport:0
+msgid "Passport"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.passport,employee_id:0
+#: field:hr.payroll.advice.line,employee_id:0
+#: field:hr.payslip,employee_id:0
+#: field:hr.payslip.line,employee_id:0
+msgid "Employee"
+msgstr "Pracownik"
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "Start Date"
+msgstr "Data Początkowa"
+
+#. module: hr_payroll
+#: model:ir.model,name:hr_payroll.model_hr_payroll_advice_line
+msgid "Bank Advice Lines"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,type:0
+#: field:hr.payslip.line,type:0
+#: wizard_field:payroll.analysis,init,type:0
+#: rml:salary.structure:0
+msgid "Type"
+msgstr "Typ"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "#"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Miscelleanous"
+msgstr "Różne"
+
+#. module: hr_payroll
+#: code:addons/hr_payroll/hr_payroll.py:0
+#, python-format
+msgid "Integrity Error !"
+msgstr "Błąd integracji !"
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Verify Sheet"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.employee,pan_no:0
+msgid "PAN No"
+msgstr ""
+
+#. module: hr_payroll
+#: wizard_button:wizard.employees.detail,init,report:0
+#: wizard_button:wizard.year.salary,init,report:0
+msgid "Print"
+msgstr "Drukuj"
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Accounting Informations"
+msgstr "Informacje o koncie"
+
+#. module: hr_payroll
+#: view:hr.allounce.deduction.categoty:0
+msgid "Contributions Configuration"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.register,grows:0
+#: field:hr.payslip,grows:0
+msgid "Gross Salary"
+msgstr "Wynagrodzenie brutto"
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Total Earnings"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Other Payment"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip,basic:0
+msgid "Basic Salary - Leaves"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "C/D"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:payroll.analysis,init,type:0
+msgid "By Employee Function"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,line_ids:0
+msgid "Employee Salary"
+msgstr "Wymagrodzenie pracownika"
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,chaque_nos:0
+msgid "Chaque Nos"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.wizard,name:hr_payroll.wizard_print_year_salary
+msgid "Year Salary Detail"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty.line,amount_type:0
+#: selection:hr.payslip.line,amount_type:0
+msgid "Fixed Amount"
+msgstr "Kwota stała"
+
+#. module: hr_payroll
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Wating for Verification"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Account Lines"
+msgstr ""
+
+#. module: hr_payroll
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr "Niewłaściwy XML dla architektury widoku!"
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Pay Salary"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Gross SAL"
+msgstr ""
+
+#. module: hr_payroll
+#: code:addons/hr_payroll/hr_payroll.py:0
+#, python-format
+msgid "Please defined the Partner in Home Address !!"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+#: rml:payslip.pdf:0
+msgid "For the month of"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Payslip"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,type:0
+#: field:hr.payroll.register,deduction:0
+#: rml:hr.payroll.register.sheet:0
+#: field:hr.payslip,deduction:0
+#: selection:hr.payslip.line,type:0
+msgid "Deduction"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.model,name:hr_payroll.model_hr_payroll_advice
+msgid "Bank Advice Note"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.passport:0
+msgid "Passport List"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip,payment_id:0
+msgid "Payment Entries"
+msgstr "Zapisy płatności"
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "YTD"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip.line,expanse_id:0
+msgid "Expense"
+msgstr "Wydatek"
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,based_on:0
+msgid "Fided Value"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Loan Installment"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Complete HR Checking"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "Yours Sincerely"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Allowances"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "SI. No."
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Net Amount"
+msgstr "Kwota netto"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,based_on:0
+#: field:hr.payroll.advice,state:0
+#: field:hr.payroll.register,state:0
+#: field:hr.payslip,state:0
+msgid "State"
+msgstr "Stan"
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "Salary Structure:"
+msgstr "Struktura wynagrodzenia:"
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.year_employees_detail
+#: model:ir.actions.wizard,name:hr_payroll.wizard_print_employees_detail
+#: model:ir.ui.menu,name:hr_payroll.menu_wizard_print_employees_detail
+msgid "Employees Salary Detail"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.model,name:hr_payroll.model_hr_employee_grade
+msgid "Function of the Employee"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+#: selection:hr.payroll.advice,state:0
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Confirm Sheet"
+msgstr "Potwierdź listę"
+
+#. module: hr_payroll
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Wating for Account Verification"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Others:"
+msgstr "Inne:"
+
+#. module: hr_payroll
+#: view:hr.employee:0
+#: field:hr.passport,contracts_ids:0
+msgid "Contracts"
+msgstr "Umowy"
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Passport and Visa"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Employee Code"
+msgstr "Kod pracownika"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,amount_type:0
+#: field:hr.payslip.line,amount_type:0
+#: rml:salary.structure:0
+msgid "Amount Type"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,category_id:0
+#: field:hr.payslip.line,category_id:0
+#: rml:salary.structure:0
+msgid "Category"
+msgstr "Kategoria"
+
+#. module: hr_payroll
+#: field:hr.payslip,move_line_ids:0
+msgid "Accounting Lines"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.register,bank_journal_id:0
+#: field:hr.payslip,bank_journal_id:0
+msgid "Bank Journal"
+msgstr "Dziennik bankowy"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Total SAL"
+msgstr ""
+
+#. module: hr_payroll
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Nazwa obiektu musi zaczynać się od x_ oraz nie może zawierać znaków "
+"specjalnych !"
+
+#. module: hr_payroll
+#: field:hr.employee,hospital_id:0
+msgid "ESI Hospital"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.employee,slip_ids:0
+#: view:hr.payroll.register:0
+#: field:hr.payroll.register,line_ids:0
+msgid "Payslips"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Earnings"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payroll.advice,state:0
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Reject"
+msgstr "Odrzucone"
+
+#. module: hr_payroll
+#: model:ir.actions.act_window,name:hr_payroll.action_hr_passport_tree
+#: model:ir.ui.menu,name:hr_payroll.menu_action_hr_passport_tree
+msgid "All Passports"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:hr.payroll.register.sheet:0
+#: rml:payslip.pdf:0
+msgid "Employee Name"
+msgstr "Nazwisko pracownika"
+
+#. module: hr_payroll
+#: field:hr.employee,salary_account:0
+msgid "Salary Account"
+msgstr "Konto wynagrodzenia"
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty.line,amount_type:0
+#: selection:hr.payslip.line,amount_type:0
+msgid "Percentage (%)"
+msgstr "Procentowo (%)"
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,register_id:0
+#: view:hr.payroll.register:0
+#: model:ir.actions.act_window,name:hr_payroll.action_view_hr_payroll_register_form
+#: model:ir.model,name:hr_payroll.model_hr_payroll_register
+#: model:ir.ui.menu,name:hr_payroll.hr_menu_payroll_register
+msgid "Payroll Register"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:hr.payroll.register.sheet:0
+#: rml:payroll.advice:0
+#: rml:salary.structure:0
+#: rml:year.salary:0
+msgid "For"
+msgstr "Dla"
+
+#. module: hr_payroll
+#: field:hr.payroll.register,journal_id:0
+#: field:hr.payslip,journal_id:0
+msgid "Expanse Journal"
+msgstr "Dziennik wydatków"
+
+#. module: hr_payroll
+#: model:ir.actions.act_window,name:hr_payroll.action_hr_contract
+#: model:ir.ui.menu,name:hr_payroll.hr_menu_contract
+msgid "Employee Contract"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,contribute:0
+msgid "Contribe by Company ?"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee.grade:0
+msgid "Employee Function"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.contract,working_days_per_week:0
+msgid "Working Days / Week"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip,worked_days:0
+msgid "Worked Day"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+msgid "Complete Accountant Checking"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+msgid "Title"
+msgstr "Tytuł"
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,based_on:0
+msgid "On Attendance"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.act_window,name:hr_payroll.action_view_hr_employee_grade_form
+#: model:ir.ui.menu,name:hr_payroll.menu_hr_allounce_deduction_tree
+msgid "Allowance/Deduction Heads"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Compute Sheet"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.register,active:0
+msgid "Active"
+msgstr "Aktywne"
+
+#. module: hr_payroll
+#: field:hr.employee,employee_account:0
+msgid "Employee Account"
+msgstr "Konto pracownika"
+
+#. module: hr_payroll
+#: rml:year.salary:0
+msgid "Yearly Salary Details"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,condition:0
+msgid "Condition"
+msgstr "Warunek"
+
+#. module: hr_payroll
+#: selection:hr.payroll.register,state:0
+#: selection:hr.payslip,state:0
+msgid "Wating for HR Verification"
+msgstr "Oczekiwanie na weryfikację"
+
+#. module: hr_payroll
+#: field:hr.employee,pf_account:0
+msgid "PF Account"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+msgid "Compute"
+msgstr "Oblicz"
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+#: view:hr.payslip:0
+#: field:hr.payslip,move_payment_ids:0
+msgid "Payment Lines"
+msgstr "Pozycje płatności"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: field:hr.payslip,deg_id:0
+#: rml:payslip.pdf:0
+#: rml:salary.structure:0
+msgid "Designation"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "HR Manager"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,based_on:0
+#: field:hr.payslip,basic_before_leaves:0
+#: rml:payslip.pdf:0
+msgid "Basic Salary"
+msgstr "Wynagrodzenie podstawowe"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,code:0
+msgid "Categoty Code"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+msgid "Salary Information"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.model,name:hr_payroll.model_hr_allounce_deduction_categoty
+#: model:ir.model,name:hr_payroll.model_hr_allounce_deduction_categoty_line
+msgid "Allowance Deduction Categoty"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Authorized Signature"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.allounce.deduction.categoty:0
+msgid "Allowance / Deduction Category"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payroll.advice,state:0
+msgid "Draft Sheet"
+msgstr "Projekt listy"
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,date:0
+#: field:hr.payroll.register,date:0
+#: rml:hr.payroll.register.sheet:0
+#: field:hr.payslip,date:0
+msgid "Date"
+msgstr "Data"
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Basic SAL"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.contract,visa_expire:0
+msgid "Visa Expire Date"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:salary.structure:0
+msgid "Phone No."
+msgstr "Nr. Telefonu"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,include_in_salary:0
+msgid "Included in Salary ?"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.expense.expense,category_id:0
+#: field:hr.holidays.status,head_id:0
+msgid "Payroll Head"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+#: field:hr.payroll.advice.line,advice_id:0
+msgid "Bank Advice"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip.line,account_id:0
+#: rml:salary.structure:0
+msgid "General Account"
+msgstr "Konto główne"
+
+#. module: hr_payroll
+#: field:hr.holidays.status,code:0
+#: field:hr.payslip.line,code:0
+#: rml:salary.structure:0
+msgid "Code"
+msgstr "Kod"
+
+#. module: hr_payroll
+#: model:ir.actions.act_window,name:hr_payroll.action_view_hr_bank_advice_tree
+#: model:ir.ui.menu,name:hr_payroll.hr_menu_payment_advice
+#: rml:payroll.advice:0
+msgid "Payment Advice"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,to:0
+msgid "To"
+msgstr "Do"
+
+#. module: hr_payroll
+#: wizard_button:payroll.analysis,init,process:0
+msgid "Process"
+msgstr "Przetwórz"
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Loan"
+msgstr "Pożyczka"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,sequence:0
+msgid "Sequence"
+msgstr "Numeracja"
+
+#. module: hr_payroll
+#: wizard_field:wizard.year.salary,init,salary_on:0
+msgid "Salary On"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,number:0
+#: field:hr.payroll.register,number:0
+#: rml:hr.payroll.register.sheet:0
+#: field:hr.payslip,number:0
+msgid "Number"
+msgstr "Numer"
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "Contract Detail:"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee.grade:0
+msgid "General Information"
+msgstr "Informacje ogólne"
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+msgid "Paymeny Lines"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+#: field:hr.employee,line_ids:0
+#: view:hr.employee.grade:0
+#: field:hr.employee.grade,line_ids:0
+#: rml:salary.structure:0
+msgid "Salary Structure"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+#: view:hr.payslip:0
+#: wizard_button:payroll.analysis,init,end:0
+#: wizard_button:wizard.employees.detail,init,end:0
+#: wizard_button:wizard.year.salary,init,end:0
+msgid "Cancel"
+msgstr "Anuluj"
+
+#. module: hr_payroll
+#: field:hr.payslip.line,amount:0
+#: rml:salary.structure:0
+msgid "Amount / Percentage"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Accounting Details"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:wizard.year.salary,init,salary_on:0
+msgid "Current Month Date"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Contract Duration"
+msgstr "Czas trwania umowy"
+
+#. module: hr_payroll
+#: wizard_view:payroll.analysis,init:0
+msgid "Process Form"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.passport,name:0
+msgid "Passport No"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee.grade:0
+msgid "Account Information"
+msgstr "Informacje o koncie"
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Generalities"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "for period"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.register:0
+msgid "Allowance / Deduction"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "E-mail"
+msgstr "Adres email"
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.year_payroll_register
+msgid "Print Statement"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.allounce.deduction.categoty:0
+#: field:hr.allounce.deduction.categoty,line_ids:0
+msgid "Calculations"
+msgstr ""
+
+#. module: hr_payroll
+#: wizard_view:wizard.year.salary,init:0
+msgid "Salary Deposit Date Option?"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payslip:0
+msgid "Other Informations"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.allounce.deduction.categoty:0
+msgid "Dynamic Computation"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.employee.grade,function_id:0
+#: field:hr.payslip.line,function_id:0
+msgid "Function"
+msgstr "Funkcja"
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "Dear Sir/Madam,"
+msgstr "Droga(i) Pani(e)"
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:salary.structure:0
+msgid "PAN No."
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payroll.advice,note:0
+msgid "Description"
+msgstr "Opis"
+
+#. module: hr_payroll
+#: field:hr.employee,pg_joining:0
+msgid "PF Join Date"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.ui.menu,name:hr_payroll.menu_hr_payroll_reporting
+#: model:ir.ui.menu,name:hr_payroll.menu_hr_root_payroll
+msgid "Payroll"
+msgstr "Lista płac"
+
+#. module: hr_payroll
+#: wizard_view:wizard.employees.detail,init:0
+#: wizard_view:wizard.year.salary,init:0
+msgid "Year Salary"
+msgstr "Wynagrodzenie roczne"
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty,name:0
+msgid "Categoty Name"
+msgstr "Nazwa kategorii"
+
+#. module: hr_payroll
+#: model:ir.actions.wizard,name:hr_payroll.wizard_payroll_analysis
+#: model:ir.ui.menu,name:hr_payroll.menu_wizard_payroll_analysis
+msgid "Create Analytic Structure"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:payslip.pdf:0
+#: rml:salary.structure:0
+msgid "Address"
+msgstr "Adres"
+
+#. module: hr_payroll
+#: help:hr.employee,property_bank_account:0
+msgid "Select Bank Account from where Salary Expanse will be Paid"
+msgstr ""
+
+#. module: hr_payroll
+#: help:hr.employee,salary_account:0
+msgid "Expanse account when Salary Expanse will be recorded"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Notes"
+msgstr "Uwagi"
+
+#. module: hr_payroll
+#: model:ir.ui.menu,name:hr_payroll.payroll_configure
+msgid "Configure Payroll"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+msgid "Cancel Sheet"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.payslip.line,type:0
+msgid "Advance"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:salary.structure:0
+msgid "Special Allowances and Deductions For Employee:"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.allounce.deduction.categoty.line,name:0
+#: field:hr.payroll.advice,name:0
+#: field:hr.payroll.register,name:0
+#: field:hr.payslip,name:0
+#: field:hr.payslip.line,name:0
+#: rml:salary.structure:0
+#: rml:year.salary:0
+msgid "Name"
+msgstr "Nazwa"
+
+#. module: hr_payroll
+#: field:hr.payslip,leaves:0
+msgid "Leaved Deduction"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Statutory Information"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.ui.menu,name:hr_payroll.menu_hr_employee_function
+msgid "Employee Functions"
+msgstr ""
+
+#. module: hr_payroll
+#: wizard_field:wizard.employees.detail,init,employee_ids:0
+#: wizard_field:wizard.year.salary,init,employee_ids:0
+msgid "Employees"
+msgstr "Pracownicy"
+
+#. module: hr_payroll
+#: field:hr.employee,property_bank_account:0
+#: rml:payroll.advice:0
+msgid "Bank Account"
+msgstr "Konto Bankowe"
+
+#. module: hr_payroll
+#: field:hr.payroll.advice.line,name:0
+msgid "Bank Account A/C"
+msgstr ""
+
+#. module: hr_payroll
+#: wizard_field:wizard.employees.detail,init,fiscalyear_id:0
+#: wizard_field:wizard.year.salary,init,fiscalyear_id:0
+msgid "Fiscal Year"
+msgstr "Rok podatkowy"
+
+#. module: hr_payroll
+#: view:hr.employee:0
+msgid "Contract"
+msgstr "Umowa"
+
+#. module: hr_payroll
+#: selection:payroll.analysis,init,type:0
+msgid "By Allownce / Deduction"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.holidays.status:0
+msgid "Payroll Configurtion"
+msgstr "Konfiguracja listy płac"
+
+#. module: hr_payroll
+#: field:hr.passport,date_issue:0
+msgid "Passport Issue Date"
+msgstr ""
+
+#. module: hr_payroll
+#: selection:hr.allounce.deduction.categoty,type:0
+#: field:hr.payroll.register,allounce:0
+#: field:hr.payslip,allounce:0
+#: selection:hr.payslip.line,type:0
+msgid "Allowance"
+msgstr ""
+
+#. module: hr_payroll
+#: field:hr.payslip,holiday_days:0
+msgid "No of Leaves"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Bank Details"
+msgstr "Szczegóły banku"
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Deductions"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.act_window,name:hr_payroll.action_view_hr_payslip_form
+#: model:ir.ui.menu,name:hr_payroll.menu_department_tree
+msgid "Employee Payslip"
+msgstr ""
+
+#. module: hr_payroll
+#: view:hr.payroll.advice:0
+msgid "Letter Content"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payroll.advice:0
+msgid "By Sal"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:hr.payroll.register.sheet:0
+msgid "Net SAL"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.payroll_advice
+msgid "Bank Payment Advice"
+msgstr ""
+
+#. module: hr_payroll
+#: model:ir.actions.report.xml,name:hr_payroll.salary_structure_register
+msgid "Print Salary Structure"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:payslip.pdf:0
+msgid "Total Deductions"
+msgstr ""
+
+#. module: hr_payroll
+#: rml:employees.salary:0
+#: rml:payroll.advice:0
+#: rml:year.salary:0
+msgid "Total"
+msgstr "Suma"
diff --git a/addons/hr_payroll/wizard/hr_payroll_create_analytic.py b/addons/hr_payroll/wizard/hr_payroll_create_analytic.py
index cded95390f4..45c2d2c495e 100644
--- a/addons/hr_payroll/wizard/hr_payroll_create_analytic.py
+++ b/addons/hr_payroll/wizard/hr_payroll_create_analytic.py
@@ -32,37 +32,38 @@ class hr_payroll_create_analytic(osv.osv_memory):
}
def do_duplicate(self, cr, uid, ids, context=None):
-
- account_pool =self.pool.get('account.analytic.account')
+ account_pool = self.pool.get('account.analytic.account')
func_pool = self.pool.get('hr.employee.grade')
ad_pool = self.pool.get('hr.allounce.deduction.categoty')
- data = self.read(cr,uid,ids)[0]
+ if context is None:
+ context = {}
+ data = self.read(cr, uid, ids, context=context)[0]
tpy = data['type']
company = data['company_id']
- function_ids = func_pool.search(cr, uid, [])
- ad_ids = ad_pool.search(cr, uid, [])
+ function_ids = func_pool.search(cr, uid, [], context=context)
+ ad_ids = ad_pool.search(cr, uid, [], context=context)
if tpy == 'bydeg':
- for function in func_pool.browse(cr, uid, function_ids):
+ for function in func_pool.browse(cr, uid, function_ids, context=context):
res = {
'name':function.name,
'company_id':company
}
- fid = account_pool.create(cr, uid, res)
+ fid = account_pool.create(cr, uid, res, context=context)
res = {
'name':'Basic Salary',
'company_id':company,
'parent_id': fid
}
- account_pool.create(cr, uid, res)
- for ad in ad_pool.browse(cr, uid, ad_ids):
+ account_pool.create(cr, uid, res, context=context)
+ for ad in ad_pool.browse(cr, uid, ad_ids, context=context):
res = {
'name':ad.name,
'company_id':company,
'parent_id': fid
}
- account_pool.create(cr, uid, res)
+ account_pool.create(cr, uid, res, context=context)
@@ -71,28 +72,28 @@ class hr_payroll_create_analytic(osv.osv_memory):
'name':'Basic Salary',
'company_id':company
}
- adid = account_pool.create(cr, uid, res)
- for function in func_pool.browse(cr, uid, function_ids):
+ adid = account_pool.create(cr, uid, res, context=context)
+ for function in func_pool.browse(cr, uid, function_ids, context=context):
res = {
'name':function.name,
'company_id':company,
'parent_id': adid
}
- account_pool.create(cr, uid, res)
+ account_pool.create(cr, uid, res, context=context)
- for ad in ad_pool.browse(cr, uid, ad_ids):
+ for ad in ad_pool.browse(cr, uid, ad_ids, context=context):
res = {
'name':ad.name,
'company_id':company,
}
- adid = account_pool.create(cr, uid, res)
- for function in func_pool.browse(cr, uid, function_ids):
+ adid = account_pool.create(cr, uid, res, context=context)
+ for function in func_pool.browse(cr, uid, function_ids, context=context):
res = {
'name':function.name,
'company_id':company,
'parent_id': adid
}
- account_pool.create(cr, uid, res)
+ account_pool.create(cr, uid, res, context=context)
return {}
hr_payroll_create_analytic()
diff --git a/addons/hr_payroll/wizard/hr_payroll_employees_detail.py b/addons/hr_payroll/wizard/hr_payroll_employees_detail.py
index 7c14aa82dd5..314dcfa94bb 100755
--- a/addons/hr_payroll/wizard/hr_payroll_employees_detail.py
+++ b/addons/hr_payroll/wizard/hr_payroll_employees_detail.py
@@ -31,8 +31,10 @@ class hr_payroll_employees_detail(osv.osv_memory):
'employee_ids': fields.many2many('hr.employee', 'payroll_emp_rel','payroll_id','emp_id', 'Employees',required=True),
'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True)
}
- def _get_fiscalyear(self, cr, uid, ids, context={}):
- fiscal_ids=self.pool.get('account.fiscalyear').search(cr,uid,[])
+ def _get_fiscalyear(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ fiscal_ids = self.pool.get('account.fiscalyear').search(cr,uid,[], context=context)
if fiscal_ids:
return fiscal_ids[0]
return False
@@ -50,7 +52,8 @@ class hr_payroll_employees_detail(osv.osv_memory):
@param context: A standard dictionary
@return : return report
"""
-
+ if context is None:
+ context = {}
datas = {'ids': context.get('active_ids', [])}
res = self.read(cr, uid, ids, ['employee_ids', 'fiscalyear_id'], context=context)
diff --git a/addons/hr_payroll/wizard/hr_payroll_year_salary.py b/addons/hr_payroll/wizard/hr_payroll_year_salary.py
index e58cdc8fc1b..0445d559f58 100755
--- a/addons/hr_payroll/wizard/hr_payroll_year_salary.py
+++ b/addons/hr_payroll/wizard/hr_payroll_year_salary.py
@@ -33,7 +33,9 @@ class hr_payroll_year_salary(osv.osv_memory):
}
def _get_fiscalyear(self, cr, uid, ids, context=None):
- fiscal_ids=self.pool.get('account.fiscalyear').search(cr,uid,[],context=context)
+ if context is None:
+ context = {}
+ fiscal_ids=self.pool.get('account.fiscalyear').search(cr, uid, [], context=context)
if fiscal_ids:
return fiscal_ids[0]
return False
@@ -52,7 +54,8 @@ class hr_payroll_year_salary(osv.osv_memory):
@param context: A standard dictionary
@return : return report
"""
-
+ if context is None:
+ context = {}
datas = {'ids': context.get('active_ids', [])}
res = self.read(cr, uid, ids, ['employee_ids', 'fiscalyear_id','salary_on'], context=context)
diff --git a/addons/hr_payroll_account/hr_payroll_account.py b/addons/hr_payroll_account/hr_payroll_account.py
index 063090cbe83..f07a0493b4f 100644
--- a/addons/hr_payroll_account/hr_payroll_account.py
+++ b/addons/hr_payroll_account/hr_payroll_account.py
@@ -1,7 +1,7 @@
#-*- coding:utf-8 -*-
##############################################################################
#
-# OpenERP, Open Source Management Solution
+# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved
# d$
#
@@ -22,14 +22,13 @@
import time
import netsvc
-from osv import osv
-from osv import fields
+from datetime import date, datetime, timedelta
+
+from osv import fields, osv
from tools import config
from tools.translate import _
-from datetime import date
-from datetime import datetime
-from datetime import timedelta
+
def prev_bounds(cdate=False):
when = date.fromtimestamp(time.mktime(time.strptime(cdate,"%Y-%m-%d")))
@@ -49,14 +48,14 @@ class hr_payslip(osv.osv):
'''
_inherit = 'hr.payslip'
_description = 'Pay Slip'
-
+
_columns = {
'move_ids':fields.one2many('hr.payslip.account.move', 'slip_id', 'Accounting vouchers', required=False),
'move_line_ids':fields.many2many('account.move.line', 'payslip_lines_rel', 'slip_id', 'line_id', 'Accounting Lines', readonly=True),
'move_payment_ids':fields.many2many('account.move.line', 'payslip_payment_rel', 'slip_id', 'payment_id', 'Payment Lines', readonly=True),
'period_id': fields.many2one('account.period', 'Force Period', domain=[('state','<>','done')], help="Keep empty to use the period of the validation(Payslip) date."),
}
-
+
def create_voucher(self, cr, uid, ids, name, voucher, sequence=5):
slip_move = self.pool.get('hr.payslip.account.move')
for slip in ids:
@@ -67,78 +66,83 @@ class hr_payslip(osv.osv):
'name':name
}
slip_move.create(cr, uid, res)
-
- def cancel_sheet(self, cr, uid, ids, context={}):
+
+ def cancel_sheet(self, cr, uid, ids, context=None):
move_pool = self.pool.get('account.move')
slip_move = self.pool.get('hr.payslip.account.move')
-
+ if context is None:
+ context = {}
move_ids = []
- for slip in self.browse(cr, uid, ids, context):
+ for slip in self.browse(cr, uid, ids, context=context):
for line in slip.move_ids:
move_ids.append(line.id)
if line.move_id:
if line.move_id.state == 'posted':
move_pool.button_cancel(cr, uid [line.move_id.id], context)
- move_pool.unlink(cr, uid, [line.move_id.id])
-
- slip_move.unlink(cr, uid, move_ids)
- self.write(cr, uid, ids, {'state':'cancel'})
+ move_pool.unlink(cr, uid, [line.move_id.id], context=context)
+
+ slip_move.unlink(cr, uid, move_ids, context=context)
+ self.write(cr, uid, ids, {'state':'cancel'}, context=context)
return True
-
- def process_sheet(self, cr, uid, ids, context={}):
+
+ def process_sheet(self, cr, uid, ids, context=None):
move_pool = self.pool.get('account.move')
movel_pool = self.pool.get('account.move.line')
invoice_pool = self.pool.get('account.invoice')
-
- for slip in self.browse(cr,uid,ids):
+ fiscalyear_pool = self.pool.get('account.fiscalyear')
+ period_pool = self.pool.get('account.period')
+ if context is None:
+ context = {}
+
+ for slip in self.browse(cr, uid, ids, context=context):
line_ids = []
partner = False
partner_id = False
exp_ids = []
-
+
partner = slip.employee_id.bank_account_id.partner_id
partner_id = partner.id
-
- fiscal_year_ids = self.pool.get('account.fiscalyear').search(cr, uid, [])
+
+ fiscal_year_ids = fiscalyear_pool.search(cr, uid, [], context=context)
if not fiscal_year_ids:
raise osv.except_osv(_('Warning !'), _('Please define fiscal year for perticular contract'))
- fiscal_year_objs = self.pool.get('account.fiscalyear').read(cr, uid, fiscal_year_ids, ['date_start','date_stop'])
+ fiscal_year_objs = fiscalyear_pool.read(cr, uid, fiscal_year_ids, ['date_start','date_stop'], context=context)
year_exist = False
for fiscal_year in fiscal_year_objs:
if ((fiscal_year['date_start'] <= slip.date) and (fiscal_year['date_stop'] >= slip.date)):
year_exist = True
if not year_exist:
raise osv.except_osv(_('Warning !'), _('Fiscal Year is not defined for slip date %s'%slip.date))
- search_period = self.pool.get('account.period').search(cr,uid,[('date_start','<=',slip.date),('date_stop','>=',slip.date)])
- if not search_period:
+ search_periods = period_pool.search(cr, uid, [('date_start','<=',slip.date),('date_stop','>=',slip.date)], context=context)
+ if not search_periods:
raise osv.except_osv(_('Warning !'), _('Period is not defined for slip date %s'%slip.date))
- period_id = search_period[0]
+ period_id = search_periods[0]
name = 'Payment of Salary to %s' % (slip.employee_id.name)
move = {
'journal_id': slip.bank_journal_id.id,
- 'period_id': period_id,
+ 'period_id': period_id,
'date': slip.date,
'type':'bank_pay_voucher',
'ref':slip.number,
'narration': name
}
- move_id = move_pool.create(cr, uid, move)
+ move_id = move_pool.create(cr, uid, move, context=context)
self.create_voucher(cr, uid, [slip.id], name, move_id)
-
+
name = "To %s account" % (slip.employee_id.name)
ded_rec = {
'move_id':move_id,
'name': name,
#'partner_id': partner_id,
- 'date': slip.date,
- 'account_id': slip.employee_id.property_bank_account.id,
+ 'date': slip.date,
+ 'account_id': slip.employee_id.property_bank_account.id,
'debit': 0.0,
'credit' : slip.total_pay,
'journal_id' : slip.journal_id.id,
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, ded_rec)]
+ line_ids += [movel_pool.create(cr, uid, ded_rec, context=context)]
name = "By %s account" % (slip.employee_id.property_bank_account.name)
cre_rec = {
'move_id':move_id,
@@ -152,8 +156,8 @@ class hr_payslip(osv.osv):
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, cre_rec)]
-
+ line_ids += [movel_pool.create(cr, uid, cre_rec, context=context)]
+
other_pay = slip.other_pay
#Process all Reambuse Entries
for line in slip.line_ids:
@@ -169,40 +173,40 @@ class hr_payslip(osv.osv):
invoice_pool.pay_and_reconcile(cr, uid, invids, amount, acc_id, period_id, journal_id, False, period_id, False, context, name)
other_pay -= amount
#TODO: link this account entries to the Payment Lines also Expanse Entries to Account Lines
- l_ids = movel_pool.search(cr, uid, [('name','=',name)])
+ l_ids = movel_pool.search(cr, uid, [('name','=',name)], context=context)
line_ids += l_ids
-
- l_ids = movel_pool.search(cr, uid, [('invoice','=',line.expanse_id.invoice_id.id)])
+
+ l_ids = movel_pool.search(cr, uid, [('invoice','=',line.expanse_id.invoice_id.id)], context=context)
exp_ids += l_ids
-
+
#Process for Other payment if any
other_move_id = False
if slip.other_pay > 0:
narration = 'Payment of Other Payeble amounts to %s' % (slip.employee_id.name)
move = {
'journal_id': slip.bank_journal_id.id,
- 'period_id': period_id,
+ 'period_id': period_id,
'date': slip.date,
'type':'bank_pay_voucher',
'ref':slip.number,
'narration': narration
}
- other_move_id = move_pool.create(cr, uid, move)
+ other_move_id = move_pool.create(cr, uid, move, context=context)
self.create_voucher(cr, uid, [slip.id], narration, move_id)
-
+
name = "To %s account" % (slip.employee_id.name)
ded_rec = {
'move_id':other_move_id,
'name':name,
- 'date':slip.date,
- 'account_id':slip.employee_id.property_bank_account.id,
+ 'date':slip.date,
+ 'account_id':slip.employee_id.property_bank_account.id,
'debit': 0.0,
'credit': other_pay,
'journal_id':slip.journal_id.id,
'period_id':period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, ded_rec)]
+ line_ids += [movel_pool.create(cr, uid, ded_rec, context=context)]
name = "By %s account" % (slip.employee_id.property_bank_account.name)
cre_rec = {
'move_id':other_move_id,
@@ -216,85 +220,94 @@ class hr_payslip(osv.osv):
'period_id':period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, cre_rec)]
-
+ line_ids += [movel_pool.create(cr, uid, cre_rec, context=context)]
+
rec = {
'state':'done',
'move_payment_ids':[(6, 0, line_ids)],
'paid':True
}
- self.write(cr, uid, [slip.id], rec)
+ self.write(cr, uid, [slip.id], rec, context=context)
for exp_id in exp_ids:
- self.write(cr, uid, [slip.id], {'move_line_ids':[(4, exp_id)]})
-
+ self.write(cr, uid, [slip.id], {'move_line_ids':[(4, exp_id)]}, context=context)
+
return True
-
- def account_check_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'accont_check'})
+
+ def account_check_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'accont_check'}, context=context)
return True
-
- def hr_check_sheet(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'hr_check'})
+
+ def hr_check_sheet(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
+ self.write(cr, uid, ids, {'state':'hr_check'}, context=context)
return True
-
- def verify_sheet(self, cr, uid, ids, context={}):
-
+
+ def verify_sheet(self, cr, uid, ids, context=None):
move_pool = self.pool.get('account.move')
movel_pool = self.pool.get('account.move.line')
exp_pool = self.pool.get('hr.expense.expense')
-
- for slip in self.browse(cr,uid,ids):
+ fiscalyear_pool = self.pool.get('account.fiscalyear')
+ period_pool = self.pool.get('account.period')
+ property_pool = self.pool.get('ir.property')
+ payslip_pool = self.pool.get('hr.payslip.line')
+
+ if context is None:
+ context = {}
+ for slip in self.browse(cr, uid, ids, context=context):
total_deduct = 0.0
-
+
line_ids = []
partner = False
partner_id = False
-
+
if not slip.employee_id.bank_account_id:
raise osv.except_osv(_('Integrity Error !'), _('Please defined bank account for %s !' % (slip.employee_id.name)))
-
+
if not slip.employee_id.bank_account_id.partner_id:
raise osv.except_osv(_('Integrity Error !'), _('Please defined partner in bank account for %s !' % (slip.employee_id.name)))
-
+
partner = slip.employee_id.bank_account_id.partner_id
partner_id = slip.employee_id.bank_account_id.partner_id.id
-
+
period_id = False
-
+
if slip.period_id:
period_id = slip.period_id.id
else:
- fiscal_year_ids = self.pool.get('account.fiscalyear').search(cr, uid, [])
+ fiscal_year_ids = fiscalyear_pool.search(cr, uid, [], context=context)
if not fiscal_year_ids:
raise osv.except_osv(_('Warning !'), _('Please define fiscal year for perticular contract'))
- fiscal_year_objs = self.pool.get('account.fiscalyear').read(cr, uid, fiscal_year_ids, ['date_start','date_stop'])
+ fiscal_year_objs = fiscalyear_pool.read(cr, uid, fiscal_year_ids, ['date_start','date_stop'], context=context)
year_exist = False
for fiscal_year in fiscal_year_objs:
if ((fiscal_year['date_start'] <= slip.date) and (fiscal_year['date_stop'] >= slip.date)):
year_exist = True
if not year_exist:
raise osv.except_osv(_('Warning !'), _('Fiscal Year is not defined for slip date %s'%slip.date))
- search_period = self.pool.get('account.period').search(cr,uid,[('date_start','<=',slip.date),('date_stop','>=',slip.date)])
- if not search_period:
+ search_periods = period_pool.search(cr,uid,[('date_start','<=',slip.date),('date_stop','>=',slip.date)], context=context)
+ if not search_periods:
raise osv.except_osv(_('Warning !'), _('Period is not defined for slip date %s'%slip.date))
- period_id = search_period[0]
-
+ period_id = search_periods[0]
+
move = {
- #'name': slip.name,
+ #'name': slip.name,
'journal_id': slip.journal_id.id,
- 'period_id': period_id,
+ 'period_id': period_id,
'date': slip.date,
'ref':slip.number,
'narration': slip.name
}
- move_id = move_pool.create(cr, uid, move)
+ move_id = move_pool.create(cr, uid, move, context=context)
self.create_voucher(cr, uid, [slip.id], slip.name, move_id)
-
+
line = {
'move_id':move_id,
'name': "By Basic Salary / " + slip.employee_id.name,
'date': slip.date,
- 'account_id': slip.employee_id.salary_account.id,
+ 'account_id': slip.employee_id.salary_account.id,
'debit': slip.basic,
'credit': 0.0,
'quantity':slip.working_days,
@@ -303,20 +316,20 @@ class hr_payslip(osv.osv):
'analytic_account_id': False,
'ref':slip.number
}
-
+
#Setting Analysis Account for Basic Salary
if slip.employee_id.analytic_account:
line['analytic_account_id'] = slip.employee_id.analytic_account.id
-
- move_line_id = movel_pool.create(cr, uid, line)
+
+ move_line_id = movel_pool.create(cr, uid, line, context=context)
line_ids += [move_line_id]
-
+
line = {
'move_id':move_id,
'name': "To Basic Paysble Salary / " + slip.employee_id.name,
'partner_id': partner_id,
- 'date': slip.date,
- 'account_id': slip.employee_id.employee_account.id,
+ 'date': slip.date,
+ 'account_id': slip.employee_id.employee_account.id,
'debit': 0.0,
'quantity':slip.working_days,
'credit': slip.basic,
@@ -324,20 +337,20 @@ class hr_payslip(osv.osv):
'period_id': period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, line)]
-
+ line_ids += [movel_pool.create(cr, uid, line, context=context)]
+
for line in slip.line_ids:
name = "[%s] - %s / %s" % (line.code, line.name, slip.employee_id.name)
amount = line.total
-
+
if line.type == 'leaves':
continue
-
+
rec = {
'move_id':move_id,
'name': name,
- 'date': slip.date,
- 'account_id': line.account_id.id,
+ 'date': slip.date,
+ 'account_id': line.account_id.id,
'debit': 0.0,
'credit' : 0.0,
'journal_id' : slip.journal_id.id,
@@ -346,13 +359,13 @@ class hr_payslip(osv.osv):
'ref':slip.number,
'quantity':1
}
-
+
#Setting Analysis Account for Salary Slip Lines
if line.analytic_account_id:
rec['analytic_account_id'] = line.analytic_account_id.id
- else:
+ else:
rec['analytic_account_id'] = slip.deg_id.account_id.id
-
+
if line.type == 'allowance' or line.type == 'otherpay':
rec['debit'] = amount
if not partner.property_account_payable:
@@ -361,8 +374,8 @@ class hr_payslip(osv.osv):
'move_id':move_id,
'name': name,
'partner_id': partner_id,
- 'date': slip.date,
- 'account_id': partner.property_account_payable.id,
+ 'date': slip.date,
+ 'account_id': partner.property_account_payable.id,
'debit': 0.0,
'quantity':1,
'credit' : amount,
@@ -370,7 +383,7 @@ class hr_payslip(osv.osv):
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, ded_rec)]
+ line_ids += [movel_pool.create(cr, uid, ded_rec, context=context)]
elif line.type == 'deduction' or line.type == 'otherdeduct':
if not partner.property_account_receivable:
raise osv.except_osv(_('Integrity Error !'), _('Please Configure Partners Receivable Account!!'))
@@ -380,24 +393,24 @@ class hr_payslip(osv.osv):
'move_id':move_id,
'name': name,
'partner_id': partner_id,
- 'date': slip.date,
+ 'date': slip.date,
'quantity':1,
- 'account_id': partner.property_account_receivable.id,
+ 'account_id': partner.property_account_receivable.id,
'debit': amount,
'credit' : 0.0,
'journal_id' : slip.journal_id.id,
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, ded_rec)]
-
- line_ids += [movel_pool.create(cr, uid, rec)]
-
+ line_ids += [movel_pool.create(cr, uid, ded_rec, context=context)]
+
+ line_ids += [movel_pool.create(cr, uid, rec, context=context)]
+
for contrub in line.category_id.contribute_ids:
print contrib.name, contrub.code, contrub.amount_type, contrib.contribute_per, line.total
-
-
-
+
+
+
# if line.company_contrib > 0:
# company_contrib = line.company_contrib
## if line.category_id.amount_type == 'per':
@@ -405,9 +418,9 @@ class hr_payslip(osv.osv):
# narration = """Company Contribution of %s Encode same as a Company Expanse @ %s""" % (line.name, company_contrib)
# move = {
-# #'name': slip.name,
+# #'name': slip.name,
# 'journal_id': slip.journal_id.id,
-# 'period_id': period_id,
+# 'period_id': period_id,
# 'date': slip.date,
# 'ref':slip.number,
# 'narration': narration
@@ -415,11 +428,11 @@ class hr_payslip(osv.osv):
# company_contrib_move_id = move_pool.create(cr, uid, move)
# name = "[%s] - %s / %s - Company Contribution" % (line.code, line.name, slip.employee_id.name)
# self.create_voucher(cr, uid, [slip.id], name, company_contrib_move_id)
-#
+#
# ded_deb = {
# 'move_id':company_contrib_move_id,
# 'name': name,
-# 'date': slip.date,
+# 'date': slip.date,
# 'quantity':1,
# 'account_id': line.category_id.account_id.id,
# 'debit': company_contrib,
@@ -432,7 +445,7 @@ class hr_payslip(osv.osv):
# ded_cre = {
# 'move_id':company_contrib_move_id,
# 'name': name,
-# 'date': slip.date,
+# 'date': slip.date,
# 'quantity':1,
# 'account_id': line.category_id.register_id.account_id.id,
# 'debit': 0.0,
@@ -442,26 +455,26 @@ class hr_payslip(osv.osv):
# 'ref':slip.number
# }
# line_ids += [movel_pool.create(cr, uid, ded_cre)]
-#
+#
# if line.category_id.include_in_salary:
# narration = """Company Contribution of %s Deducted from Employee %s""" % (line.name, company_contrib)
# move = {
-# #'name': slip.name,
+# #'name': slip.name,
# 'journal_id': slip.journal_id.id,
-# 'period_id': period_id,
+# 'period_id': period_id,
# 'date': slip.date,
# 'ref':slip.number,
# 'narration': narration
# }
# include_in_salary_move_id = move_pool.create(cr, uid, move)
# self.create_voucher(cr, uid, [slip.id], narration, include_in_salary_move_id)
-#
+#
# total_deduct += company_contrib
# ded_deb = {
# 'move_id':include_in_salary_move_id,
# 'name': name,
# 'partner_id': partner_id,
-# 'date': slip.date,
+# 'date': slip.date,
# 'quantity':1,
# 'account_id': partner.property_account_receivable.id,
# 'debit': company_contrib,
@@ -474,7 +487,7 @@ class hr_payslip(osv.osv):
# ded_cre = {
# 'move_id':include_in_salary_move_id,
# 'name': name,
-# 'date': slip.date,
+# 'date': slip.date,
# 'quantity':1,
# 'account_id': line.category_id.account_id.id,
# 'debit': 0.0,
@@ -497,14 +510,14 @@ class hr_payslip(osv.osv):
# }
# if line.category_id.contribute:
# ctr['comp_deduction'] = amount
-#
+#
# company = 0.0
# employee = 0.0
# if line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'per':
# new_amount = (amount * (line.category_id.contribute_per / (1+line.category_id.contribute_per)))
# company = new_amount
# employee = amount - company
-#
+#
# elif line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'fix':
# company = line.category_id.contribute_per
# employee = amount - company
@@ -512,11 +525,11 @@ class hr_payslip(osv.osv):
# elif line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'func':
# company = self.pool.get('hr.allounce.deduction.categoty').execute_function(cr, uid, line.category_id.id, line.slip_id.basic, context)
# employee = amount
-#
+#
# elif line.category_id.contribute and not line.category_id.include_in_salary and line.category_id.amount_type == 'per':
# company = amount * line.category_id.contribute_per
# employee = amount
-#
+#
# elif line.category_id.contribute and not line.category_id.include_in_salary and line.category_id.amount_type == 'fix':
# company = line.category_id.contribute_per
# employee = amount
@@ -524,10 +537,10 @@ class hr_payslip(osv.osv):
# elif line.category_id.contribute and not line.category_id.include_in_salary and line.category_id.amount_type == 'func':
# company = self.pool.get('hr.allounce.deduction.categoty').execute_function(cr, uid, line.category_id.id, line.slip_id.basic, context)
# employee = amount
-#
+#
# ctr['emp_deduction'] = employee
# ctr['comp_deduction'] = company
-#
+#
# self.pool.get('hr.contibution.register.line').create(cr, uid, ctr)
adj_move_id = False
@@ -539,16 +552,16 @@ class hr_payslip(osv.osv):
'ref':slip.number,
'narration': 'Adjustment : %s' % (slip.name)
}
- adj_move_id = move_pool.create(cr, uid, move)
+ adj_move_id = move_pool.create(cr, uid, move, context=context)
name = "Adjustment Entry - %s" % (slip.employee_id.name)
self.create_voucher(cr, uid, [slip.id], name, adj_move_id)
-
+
ded_rec = {
'move_id':adj_move_id,
'name': name,
'partner_id': partner_id,
- 'date': slip.date,
- 'account_id': partner.property_account_receivable.id,
+ 'date': slip.date,
+ 'account_id': partner.property_account_receivable.id,
'debit': 0.0,
'quantity':1,
'credit' : total_deduct,
@@ -556,13 +569,13 @@ class hr_payslip(osv.osv):
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, ded_rec)]
+ line_ids += [movel_pool.create(cr, uid, ded_rec, context=context)]
cre_rec = {
'move_id':adj_move_id,
'name': name,
'partner_id': partner_id,
'date': slip.date,
- 'account_id': partner.property_account_payable.id,
+ 'account_id': partner.property_account_payable.id,
'debit': total_deduct,
'quantity':1,
'credit' : 0.0,
@@ -570,7 +583,7 @@ class hr_payslip(osv.osv):
'period_id' :period_id,
'ref':slip.number
}
- line_ids += [movel_pool.create(cr, uid, cre_rec)]
+ line_ids += [movel_pool.create(cr, uid, cre_rec, context=context)]
rec = {
'state':'confirm',
@@ -578,12 +591,12 @@ class hr_payslip(osv.osv):
}
if not slip.period_id:
rec['period_id'] = period_id
-
+
dates = prev_bounds(slip.date)
- exp_ids = exp_pool.search(cr, uid, [('date_valid','>=',dates[0]), ('date_valid','<=',dates[1]), ('state','=','invoiced')])
+ exp_ids = exp_pool.search(cr, uid, [('date_valid','>=',dates[0]), ('date_valid','<=',dates[1]), ('state','=','invoiced')], context=context)
if exp_ids:
- acc = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category')
- for exp in exp_pool.browse(cr, uid, exp_ids):
+ acc = property_pool.get(cr, uid, 'property_account_expense_categ', 'product.category')
+ for exp in exp_pool.browse(cr, uid, exp_ids, context=context):
exp_res = {
'name':exp.name,
'amount_type':'fix',
@@ -594,12 +607,12 @@ class hr_payslip(osv.osv):
'expanse_id':exp.id,
'account_id':acc
}
- self.pool.get('hr.payslip.line').create(cr, uid, exp_res)
-
- self.write(cr, uid, [slip.id], rec)
-
+ payslip_pool.create(cr, uid, exp_res, context=context)
+
+ self.write(cr, uid, [slip.id], rec, context=context)
+
return True
-
+
hr_payslip()
class account_move_link_slip(osv.osv):
diff --git a/addons/hr_recruitment/__openerp__.py b/addons/hr_recruitment/__openerp__.py
index 0d10ba0f248..7779a1db90d 100644
--- a/addons/hr_recruitment/__openerp__.py
+++ b/addons/hr_recruitment/__openerp__.py
@@ -36,6 +36,7 @@ system to store and search in your CV base.
'depends': ['hr','survey','crm'],
'update_xml': [
'wizard/hr_recruitment_phonecall_view.xml',
+ 'wizard/hr_recruitment_create_partner_job_view.xml',
'hr_recruitment_view.xml',
'hr_recruitment_menu.xml',
# 'report_hr_recruitment_view.xml',
@@ -43,7 +44,6 @@ system to store and search in your CV base.
'security/ir.model.access.csv',
'board_hr_recruitment_statistical_view.xml',
'report/hr_recruitment_report_view.xml',
- 'wizard/hr_recruitment_create_partner_job_view.xml',
],
'init_xml': [
'hr_recruitment_data.xml'
diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py
index 178fdbffb09..5be33854c57 100644
--- a/addons/hr_recruitment/hr_recruitment.py
+++ b/addons/hr_recruitment/hr_recruitment.py
@@ -59,6 +59,19 @@ class hr_recruitment_stage(osv.osv):
}
hr_recruitment_stage()
+class hr_recruitment_degree(osv.osv):
+ """ Degree of HR Recruitment """
+ _name = "hr.recruitment.degree"
+ _description = "Degree of Recruitment"
+ _columns = {
+ 'name': fields.char('Name', size=64, required=True, translate=True),
+ 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of degrees."),
+ }
+ _defaults = {
+ 'sequence': 1,
+ }
+hr_recruitment_degree()
+
class hr_applicant(osv.osv, crm.crm_case):
_name = "hr.applicant"
_description = "Applicant"
@@ -88,6 +101,8 @@ class hr_applicant(osv.osv, crm.crm_case):
# Applicant Columns
'date_closed': fields.datetime('Closed', readonly=True),
'date': fields.datetime('Date'),
+ 'date_action': fields.date('Next Action Date'),
+ 'title_action': fields.char('Next Action', size=64),
'priority': fields.selection(AVAILABLE_PRIORITIES, 'Appreciation'),
'job_id': fields.many2one('hr.job', 'Applied Job'),
'salary_proposed': fields.float('Proposed Salary', help="Salary Proposed by the Organisation"),
@@ -96,7 +111,7 @@ class hr_applicant(osv.osv, crm.crm_case):
'partner_name': fields.char("Applicant's Name", size=64),
'partner_phone': fields.char('Phone', size=32),
'partner_mobile': fields.char('Mobile', size=32),
- 'type_id': fields.many2one('crm.case.resource.type', 'Degree', domain="[('object_id.model', '=', 'hr.applicant')]"),
+ 'type_id': fields.many2one('hr.recruitment.degree', 'Degree'),
'department_id':fields.many2one('hr.department', 'Department'),
'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True),
'survey' : fields.related('job_id', 'survey_id', type='many2one', relation='survey', string='Survey'),
@@ -121,11 +136,14 @@ class hr_applicant(osv.osv, crm.crm_case):
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
}
- def onchange_job(self,cr, uid, ids, job, context={}):
+ def onchange_job(self,cr, uid, ids, job, context=None):
+ job_obj = self.pool.get('hr.job')
+ if context is None:
+ context = {}
result = {}
+
if job:
- job_obj = self.pool.get('hr.job')
- result['department_id'] = job_obj.browse(cr, uid, job).department_id.id
+ result['department_id'] = job_obj.browse(cr, uid, job, context=context).department_id.id
return {'value': result}
return {'value': {'department_id': []}}
@@ -137,14 +155,15 @@ class hr_applicant(osv.osv, crm.crm_case):
@param uid: the current user’s ID for security checks,
@param ids: List of case IDs
@param context: A standard dictionary for contextual values"""
+ stage_obj = self.pool.get('hr.recruitment.stage')
if not context:
context = {}
- for case in self.browse(cr, uid, ids, context):
+ for case in self.browse(cr, uid, ids, context=context):
department = (case.department_id.id or False)
st = case.stage_id.id or False
- stage_ids = self.pool.get('hr.recruitment.stage').search(cr, uid, ['|',('department_id','=',department),('department_id','=',False)])
+ stage_ids = stage_obj.search(cr, uid, ['|',('department_id','=',department),('department_id','=',False)], context=context)
if st and stage_ids.index(st):
- self.write(cr, uid, [case.id], {'stage_id': stage_ids[stage_ids.index(st)-1]})
+ self.write(cr, uid, [case.id], {'stage_id': stage_ids[stage_ids.index(st)-1]}, context=context)
return True
def stage_next(self, cr, uid, ids, context=None):
@@ -155,14 +174,15 @@ class hr_applicant(osv.osv, crm.crm_case):
@param uid: the current user’s ID for security checks,
@param ids: List of case IDs
@param context: A standard dictionary for contextual values"""
+ stage_obj = self.pool.get('hr.recruitment.stage')
if not context:
context = {}
- for case in self.browse(cr, uid, ids, context):
+ for case in self.browse(cr, uid, ids, context=context):
department = (case.department_id.id or False)
st = case.stage_id.id or False
- stage_ids = self.pool.get('hr.recruitment.stage').search(cr, uid, ['|',('department_id','=',department),('department_id','=',False)])
+ stage_ids = stage_obj.search(cr, uid, ['|',('department_id','=',department),('department_id','=',False)], context=context)
if st and len(stage_ids) != stage_ids.index(st)+1:
- self.write(cr, uid, [case.id], {'stage_id': stage_ids[stage_ids.index(st)+1]})
+ self.write(cr, uid, [case.id], {'stage_id': stage_ids[stage_ids.index(st)+1]}, context=context)
return True
def action_makeMeeting(self, cr, uid, ids, context=None):
@@ -176,13 +196,14 @@ class hr_applicant(osv.osv, crm.crm_case):
@return : Dictionary value for created Meeting view
"""
+ data_obj = self.pool.get('ir.model.data')
+ if context is None:
+ context = {}
value = {}
- for opp in self.browse(cr, uid, ids):
- data_obj = self.pool.get('ir.model.data')
-
+ for opp in self.browse(cr, uid, ids, context=context):
# Get meeting views
result = data_obj._get_id(cr, uid, 'crm', 'view_crm_case_meetings_filter')
- res = data_obj.read(cr, uid, result, ['res_id'])
+ res = data_obj.read(cr, uid, result, ['res_id'], context=context)
id1 = data_obj._get_id(cr, uid, 'crm', 'crm_case_calendar_view_meet')
id2 = data_obj._get_id(cr, uid, 'crm', 'crm_case_form_view_meet')
id3 = data_obj._get_id(cr, uid, 'crm', 'crm_case_tree_view_meet')
@@ -228,28 +249,30 @@ class hr_applicant(osv.osv, crm.crm_case):
"""
if not context:
context = {}
- record = self.browse(cr, uid, ids, context)
+ record = self.browse(cr, uid, ids, context=context)
record = record and record[0]
context.update({'survey_id': record.survey.id, 'response_id' : [record.response], 'response_no':0, })
value = self.pool.get("survey").action_print_survey(cr, uid, ids, context)
return value
- def message_new(self, cr, uid, msg, context):
+ def message_new(self, cr, uid, msg, context=None):
"""
Automatically calls when new email message arrives
-
+
@param self: The object pointer
@param cr: the current row, from the database cursor,
@param uid: the current user’s ID for security checks
"""
-
mailgate_pool = self.pool.get('email.server.tools')
+ attach_obj = self.pool.get('ir.attachment')
+ if context is None:
+ context = {}
subject = msg.get('subject')
body = msg.get('body')
msg_from = msg.get('from')
priority = msg.get('priority')
-
+
vals = {
'name': subject,
'email_from': msg_from,
@@ -259,15 +282,15 @@ class hr_applicant(osv.osv, crm.crm_case):
}
if msg.get('priority', False):
vals['priority'] = priority
-
+
res = mailgate_pool.get_partner(cr, uid, msg.get('from'))
if res:
vals.update(res)
- res = self.create(cr, uid, vals, context)
-
+ res = self.create(cr, uid, vals, context=context)
+
message = _('A Job Request created') + " '" + subject + "' " + _("from Mailgate.")
self.log(cr, uid, res, message)
-
+
attachents = msg.get('attachments', [])
for attactment in attachents or []:
data_attach = {
@@ -278,21 +301,23 @@ class hr_applicant(osv.osv, crm.crm_case):
'res_model': self._name,
'res_id': res,
}
- self.pool.get('ir.attachment').create(cr, uid, data_attach)
+ attach_obj.create(cr, uid, data_attach, context=context)
return res
- def message_update(self, cr, uid, ids, vals={}, msg="", default_act='pending', context={}):
- """
+ def message_update(self, cr, uid, ids, vals={}, msg="", default_act='pending', context=None):
+ """
@param self: The object pointer
@param cr: the current row, from the database cursor,
@param uid: the current user’s ID for security checks,
- @param ids: List of update mail’s IDs
+ @param ids: List of update mail’s IDs
"""
-
+ if context is None:
+ context = {}
+
if isinstance(ids, (str, int, long)):
ids = [ids]
-
+
msg_from = msg['from']
vals.update({
'description': msg['body']
@@ -312,9 +337,9 @@ class hr_applicant(osv.osv, crm.crm_case):
if res and maps.get(res.group(1).lower(), False):
key = maps.get(res.group(1).lower())
vls[key] = res.group(2).lower()
-
+
vals.update(vls)
- res = self.write(cr, uid, ids, vals)
+ res = self.write(cr, uid, ids, vals, context=context)
return res
def msg_send(self, cr, uid, id, *args, **argv):
@@ -328,7 +353,7 @@ class hr_applicant(osv.osv, crm.crm_case):
@param **args: Return Dictionary of Keyword Value
"""
return True
-
+
def case_open(self, cr, uid, ids, *args):
"""
@param self: The object pointer
diff --git a/addons/hr_recruitment/hr_recruitment_data.xml b/addons/hr_recruitment/hr_recruitment_data.xml
index 8a4ddb93428..aaa386356c5 100644
--- a/addons/hr_recruitment/hr_recruitment_data.xml
+++ b/addons/hr_recruitment/hr_recruitment_data.xml
@@ -17,17 +17,17 @@
-
+
Graduate
-
+ 1
-
+
Licenced
-
+ 2
-
+
> Bac +5
-
+ 3
diff --git a/addons/hr_recruitment/hr_recruitment_demo.xml b/addons/hr_recruitment/hr_recruitment_demo.xml
index 3eba3bc17de..52603d7b8fa 100644
--- a/addons/hr_recruitment/hr_recruitment_demo.xml
+++ b/addons/hr_recruitment/hr_recruitment_demo.xml
@@ -9,7 +9,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
@@ -50,7 +50,7 @@
-
+
@@ -68,7 +68,7 @@
-
+
@@ -83,7 +83,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
@@ -121,7 +121,7 @@
-
+
diff --git a/addons/hr_recruitment/hr_recruitment_menu.xml b/addons/hr_recruitment/hr_recruitment_menu.xml
index 971423d45a7..e49afdee833 100644
--- a/addons/hr_recruitment/hr_recruitment_menu.xml
+++ b/addons/hr_recruitment/hr_recruitment_menu.xml
@@ -1,50 +1,47 @@
-
-
+
- ######################## JOB OPPORTUNITIES (menu) ###########################
-
- Applicants
- hr.applicant
- tree,form,graph
-
- {"search_default_user_id":uid}
-
+ ######################## JOB OPPORTUNITIES (menu) ###########################
+
+ Applicants
+ hr.applicant
+ tree,form,graph,calendar
+
+ {"search_default_user_id":uid, 'search_default_current': 1}
+
+
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
- graph
-
-
-
-
-
+
+
+ tree
+
+
+
-
-
+
+
+ form
+
+
+
-
+
+
+ graph
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index b4b1a434700..6a622a09ddf 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -55,6 +55,8 @@
+
+
@@ -67,7 +69,6 @@
-
@@ -94,16 +95,23 @@
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
+
+
@@ -113,7 +121,8 @@
-
+
+
@@ -133,13 +142,13 @@
-
+
-
+
@@ -176,10 +185,13 @@
icon="terp-mail-replied" type="action" />
-
+
@@ -210,6 +222,7 @@
domain="[('state','in',('draft','open'))]"
help="All new and in progress jobs"
default="1"
+ name="current"
/>
+
+
-
+
@@ -254,6 +272,24 @@
+
+
+
+ Hr Applicants Calendar
+ hr.applicant
+ calendar
+
+
+
+
+
+
+
+
+
+
+
# ------------------------------------------------------
# HR Job
# ------------------------------------------------------
@@ -321,5 +357,42 @@
action="hr_recruitment_stage_act"
sequence="1"/>
+
+
+
+ hr.recruitment.degree.tree
+ hr.recruitment.degree
+ tree
+
+
+
+
+
+
+
+
+
+
+
+ hr.recruitment.degree.form
+ hr.recruitment.degree
+ form
+
+
+
+
+
+
+
+
+
+
+
+ Degree
+ hr.recruitment.degree
+ form
+
+
+
diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
index 83fb9e6d9b0..3ebdfdf8a0f 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -60,7 +60,7 @@
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
help="Recruitment during last 7 days"/>
-
@@ -73,9 +73,9 @@
domain="[('state','=','pending')]"
help = "Pending recruitment"/>
-
+
-
+
-
-
-
+
@@ -31,15 +29,5 @@
new
-
-
-
- Create Partner
- client_action_multi
-
- action
- hr.applicant
-
-
\ No newline at end of file
diff --git a/addons/hr_recruitment/wizard/hr_recruitment_phonecall.py b/addons/hr_recruitment/wizard/hr_recruitment_phonecall.py
index 0517d7d7965..4d3917178d7 100644
--- a/addons/hr_recruitment/wizard/hr_recruitment_phonecall.py
+++ b/addons/hr_recruitment/wizard/hr_recruitment_phonecall.py
@@ -36,16 +36,22 @@ class job2phonecall(osv.osv_memory):
def _date_user(self, cr, uid, context=None):
case_obj = self.pool.get('hr.applicant')
- case = case_obj.browse(cr, uid, context['active_id'])
+ if context is None:
+ context = {}
+ case = case_obj.browse(cr, uid, context['active_id'], context=context)
return case.user_id and case.user_id.id or False
def _date_category(self, cr, uid, context=None):
- categ_id = self.pool.get('crm.case.categ').search(cr, uid, [('name','=','Outbound')])
+ if context is None:
+ context = {}
+ categ_id = self.pool.get('crm.case.categ').search(cr, uid, [('name','=','Outbound')], context=context)
return categ_id and categ_id[0] or case.categ_id and case.categ_id.id or False
def _get_note(self, cr, uid, context=None):
case_obj = self.pool.get('hr.applicant')
- case = case_obj.browse(cr, uid, context['active_id'])
+ if context is None:
+ context = {}
+ case = case_obj.browse(cr, uid, context['active_id'], context=context)
return case.description or ''
_defaults = {
@@ -59,11 +65,12 @@ class job2phonecall(osv.osv_memory):
job_case_obj = self.pool.get('hr.applicant')
data_obj = self.pool.get('ir.model.data')
phonecall_case_obj = self.pool.get('crm.phonecall')
-
+ if context is None:
+ context = {}
form = self.read(cr, uid, ids, [], context=context)[0]
# form = data['form']
result = mod_obj._get_id(cr, uid, 'crm', 'view_crm_case_phonecalls_filter')
- res = mod_obj.read(cr, uid, result, ['res_id'])
+ res = mod_obj.read(cr, uid, result, ['res_id'], context=context)
# Select the view
id2 = data_obj._get_id(cr, uid, 'crm', 'crm_case_phone_tree_view')
@@ -73,7 +80,7 @@ class job2phonecall(osv.osv_memory):
if id3:
id3 = data_obj.browse(cr, uid, id3, context=context).res_id
- for job in job_case_obj.browse(cr, uid, context['active_ids']):
+ for job in job_case_obj.browse(cr, uid, context['active_ids'], context=context):
#TODO : Take other info from job
new_phonecall_id = phonecall_case_obj.create(cr, uid, {
'name' : job.name,
@@ -90,11 +97,11 @@ class job2phonecall(osv.osv_memory):
'description':job.description,
'date':job.date,
}, context=context)
- new_phonecall = phonecall_case_obj.browse(cr, uid, new_phonecall_id)
+ new_phonecall = phonecall_case_obj.browse(cr, uid, new_phonecall_id, context=context)
vals = {}
# if not job.case_id:
# vals.update({'phonecall_id' : new_phonecall.id})
- job_case_obj.write(cr, uid, [job.id], vals)
+ job_case_obj.write(cr, uid, [job.id], vals, context=context)
job_case_obj.case_cancel(cr, uid, [job.id])
phonecall_case_obj.case_open(cr, uid, [new_phonecall_id])
@@ -111,4 +118,4 @@ class job2phonecall(osv.osv_memory):
job2phonecall()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:>>>>>>> MERGE-SOURCE
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py
index ea13dba89e6..ec6fbc2d1fc 100644
--- a/addons/hr_timesheet/hr_timesheet.py
+++ b/addons/hr_timesheet/hr_timesheet.py
@@ -47,7 +47,9 @@ class hr_analytic_timesheet(osv.osv):
'partner_id': fields.related('account_id', 'partner_id', type='many2one', string='Partner Id', relation='account.analytic.account', store=True),
}
- def unlink(self, cr, uid, ids, context={}):
+ def unlink(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
toremove = {}
for obj in self.browse(cr, uid, ids, context=context):
toremove[obj.line_id.id] = True
@@ -55,7 +57,9 @@ class hr_analytic_timesheet(osv.osv):
return super(hr_analytic_timesheet, self).unlink(cr, uid, ids, context=context)
- def on_change_unit_amount(self, cr, uid, id, prod_id, unit_amount, unit, context={}):
+ def on_change_unit_amount(self, cr, uid, id, prod_id, unit_amount, unit, context=None):
+ if context is None:
+ context = {}
res = {}
if prod_id and unit_amount:
# find company
@@ -63,9 +67,11 @@ class hr_analytic_timesheet(osv.osv):
res = self.pool.get('account.analytic.line').on_change_unit_amount(cr, uid, id, prod_id, unit_amount, company_id, unit, context=context)
return res
- def _getEmployeeProduct(self, cr, uid, context={}):
+ def _getEmployeeProduct(self, cr, uid, context=None):
+ if context is None:
+ context = {}
emp_obj = self.pool.get('hr.employee')
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
if emp_id:
emp=emp_obj.browse(cr, uid, emp_id[0], context=context)
if emp.product_id:
@@ -76,7 +82,7 @@ class hr_analytic_timesheet(osv.osv):
emp_obj = self.pool.get('hr.employee')
if context is None:
context = {}
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
if emp_id:
emp=emp_obj.browse(cr, uid, emp_id[0], context=context)
if emp.product_id:
@@ -87,7 +93,7 @@ class hr_analytic_timesheet(osv.osv):
emp_obj = self.pool.get('hr.employee')
if context is None:
context = {}
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
if emp_id:
emp = emp_obj.browse(cr, uid, emp_id[0], context=context)
if bool(emp.product_id):
@@ -102,7 +108,7 @@ class hr_analytic_timesheet(osv.osv):
emp_obj = self.pool.get('hr.employee')
if context is None:
context = {}
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
if emp_id:
emp = emp_obj.browse(cr, uid, emp_id[0], context=context)
if emp.journal_id:
@@ -129,7 +135,9 @@ class hr_analytic_timesheet(osv.osv):
return {'value':{},'warning':warning}
return {'value':{}}
- def create(self, cr, uid, vals, context={}):
+ def create(self, cr, uid, vals, context=None):
+ if context is None:
+ context = {}
emp_obj = self.pool.get('hr.employee')
emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
ename = ''
diff --git a/addons/hr_timesheet/i18n/ca.po b/addons/hr_timesheet/i18n/ca.po
index 2ecad7cc707..9c878ed02e2 100644
--- a/addons/hr_timesheet/i18n/ca.po
+++ b/addons/hr_timesheet/i18n/ca.po
@@ -7,13 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-11-17 07:12+0000\n"
-"Last-Translator: Raimon Esteve (Zikzakmedia) \n"
+"PO-Revision-Date: 2010-07-24 10:06+0000\n"
+"Last-Translator: Jordi Esteve (www.zikzakmedia.com) "
+"\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-06-22 04:09+0000\n"
+"X-Launchpad-Export-Date: 2010-07-25 04:07+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet
@@ -112,7 +113,7 @@ msgstr "Producte"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "août"
-msgstr ""
+msgstr "Agost"
#. module: hr_timesheet
#: field:hr.employee,journal_id:0
@@ -157,11 +158,9 @@ msgstr "Temps total"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "juillet"
-msgstr ""
+msgstr "Juliol"
#. module: hr_timesheet
-#: xsl:hr.analytical.timesheet:0
-#: xsl:hr.analytical.timesheet_users:0
#: model:ir.ui.menu,name:hr_timesheet.next_id_48
msgid "Timesheet"
msgstr "Full d'assistència"
@@ -171,14 +170,14 @@ msgstr "Full d'assistència"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "janvier"
-msgstr ""
+msgstr "Gener"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "juin"
-msgstr ""
+msgstr "Juny"
#. module: hr_timesheet
#: model:ir.actions.wizard,name:hr_timesheet.wizard_hr_timesheet_my
@@ -233,7 +232,7 @@ msgstr "XML invàlid per a la definició de la vista!"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "avril"
-msgstr ""
+msgstr "Abril"
#. module: hr_timesheet
#: field:hr.analytic.timesheet,line_id:0
@@ -255,7 +254,7 @@ msgstr "Selecciona usuaris"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "novembre"
-msgstr ""
+msgstr "Novembre"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_out:0
@@ -283,7 +282,7 @@ msgstr "Estat actual"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "octobre"
-msgstr ""
+msgstr "Octubre"
#. module: hr_timesheet
#: view:account.analytic.account:0
@@ -295,7 +294,7 @@ msgstr "Estadístiques d'anàlisis"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "décembre"
-msgstr ""
+msgstr "Desembre"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,info:0
@@ -345,7 +344,7 @@ msgstr "Recursos humans (codificació d'horaris)"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "mars"
-msgstr ""
+msgstr "Març"
#. module: hr_timesheet
#: xsl:hr.analytical.timesheet:0
@@ -358,7 +357,7 @@ msgstr "Total"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "mai"
-msgstr ""
+msgstr "Maig"
#. module: hr_timesheet
#: wizard_button:hr_timesheet.si_so,sign_out,si_result:0
@@ -375,7 +374,7 @@ msgstr "Canvia treball"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "février"
-msgstr ""
+msgstr "Febrer"
#. module: hr_timesheet
#: view:account.analytic.account:0
@@ -469,9 +468,105 @@ msgstr "Horari d'empleats"
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "septembre"
-msgstr ""
+msgstr "Setembre"
#. module: hr_timesheet
#: view:hr.employee:0
msgid "Timesheets"
msgstr "Horaris"
+
+#, python-format
+#~ msgid "Wed"
+#~ msgstr "Dc"
+
+#, python-format
+#~ msgid "No employee defined for your user !"
+#~ msgstr "No s'ha definit un empleat pel vostre usuari!"
+
+#, python-format
+#~ msgid "Mon"
+#~ msgstr "Dl"
+
+#, python-format
+#~ msgid "UserError"
+#~ msgstr "Error d'usuari"
+
+#, python-format
+#~ msgid "No cost unit defined for this employee !"
+#~ msgstr "No s'ha definit una unitat de cost per aquest empleat!"
+
+#, python-format
+#~ msgid "ValidateError"
+#~ msgstr "Error de validació"
+
+#, python-format
+#~ msgid "Sat"
+#~ msgstr "Ds"
+
+#, python-format
+#~ msgid "Sun"
+#~ msgstr "Dg"
+
+#, python-format
+#~ msgid "July"
+#~ msgstr "Juliol"
+
+#, python-format
+#~ msgid "Tue"
+#~ msgstr "Dt"
+
+#, python-format
+#~ msgid "March"
+#~ msgstr "Març"
+
+#, python-format
+#~ msgid "September"
+#~ msgstr "Setembre"
+
+#, python-format
+#~ msgid "December"
+#~ msgstr "Desembre"
+
+#, python-format
+#~ msgid "Fri"
+#~ msgstr "Dv"
+
+#, python-format
+#~ msgid "August"
+#~ msgstr "Agost"
+
+#, python-format
+#~ msgid "June"
+#~ msgstr "Juny"
+
+#, python-format
+#~ msgid "November"
+#~ msgstr "Novembre"
+
+#, python-format
+#~ msgid "October"
+#~ msgstr "Octubre"
+
+#, python-format
+#~ msgid "January"
+#~ msgstr "Gener"
+
+#, python-format
+#~ msgid "May"
+#~ msgstr "Maig"
+
+#, python-format
+#~ msgid "February"
+#~ msgstr "Febrer"
+
+#, python-format
+#~ msgid "Thu"
+#~ msgstr "Dj"
+
+#, python-format
+#~ msgid "April"
+#~ msgstr "Abril"
+
+#, python-format
+#~ msgid "UnknownError"
+#~ msgstr "Error desconegut"
diff --git a/addons/hr_timesheet/wizard/hr_timesheet_print_employee.py b/addons/hr_timesheet/wizard/hr_timesheet_print_employee.py
index d2e9a54f836..4bcdb614e2f 100644
--- a/addons/hr_timesheet/wizard/hr_timesheet_print_employee.py
+++ b/addons/hr_timesheet/wizard/hr_timesheet_print_employee.py
@@ -33,6 +33,8 @@ class analytical_timesheet_employee(osv.osv_memory):
}
def _get_user(self, cr, uid, context=None):
+ if context is None:
+ context = {}
return uid
_defaults = {
@@ -42,6 +44,8 @@ class analytical_timesheet_employee(osv.osv_memory):
}
def print_report(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
data = self.read(cr, uid, ids, context=context)[0]
datas = {
'ids': [],
@@ -54,4 +58,5 @@ class analytical_timesheet_employee(osv.osv_memory):
'datas': datas,
}
analytical_timesheet_employee()
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/hr_timesheet/wizard/hr_timesheet_print_users.py b/addons/hr_timesheet/wizard/hr_timesheet_print_users.py
index f7358eca990..1f3bd0ddf74 100644
--- a/addons/hr_timesheet/wizard/hr_timesheet_print_users.py
+++ b/addons/hr_timesheet/wizard/hr_timesheet_print_users.py
@@ -39,6 +39,8 @@ class analytical_timesheet_employees(osv.osv_memory):
}
def print_report(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
data = self.read(cr, uid, ids, context=context)[0]
datas = {
'ids': [],
diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py
index 58bd24680dd..47645ce11c3 100644
--- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py
+++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py
@@ -33,31 +33,37 @@ class hr_so_project(osv.osv_memory):
'date': fields.datetime('Closing Date'),
'analytic_amount': fields.float('Minimum Analytic Amount'),
'name': fields.char('Employees name', size=32, required=True, readonly=True),
- 'state': fields.char('Current state', size=32, required=True, readonly=True),
+# 'state': fields.char('Current state', size=32, required=True, readonly=True),
+ 'state': fields.related('emp_id', 'state', string='Current state', type='char', required=True, readonly=True),
'server_date': fields.datetime('Current Date', required=True, readonly=True),
'emp_id': fields.many2one('hr.employee', 'Employee ID')
}
-
+
def _get_empid(self, cr, uid, context=None):
emp_obj = self.pool.get('hr.employee')
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)])
- if emp_id:
- for employee in emp_obj.browse(cr, uid, emp_id):
- return {'name': employee.name, 'state': employee.state, 'emp_id': emp_id[0], 'server_date':time.strftime('%Y-%m-%d %H:%M:%S')}
+ if context is None:
+ context = {}
+ emp_ids = emp_obj.search(cr, uid, [('user_id', '=', uid)], context=context)
+ if emp_ids:
+ for employee in emp_obj.browse(cr, uid, emp_ids, context=context):
+ return {'name': employee.name, 'state': employee.state, 'emp_id': emp_ids[0], 'server_date':time.strftime('%Y-%m-%d %H:%M:%S')}
- def _get_empid2(self, cr, uid, context):
-
- res = self._get_empid(cr, uid, context)
+ def _get_empid2(self, cr, uid, context=None):
+ if context is None:
+ context = {}
+ res = self._get_empid(cr, uid, context=context)
cr.execute('select name,action from hr_attendance where employee_id=%s order by name desc limit 1', (res['emp_id'],))
-
+
res['server_date'] = time.strftime('%Y-%m-%d %H:%M:%S')
date_start = cr.fetchone()
-
+
if date_start:
res['date_start'] = date_start[0]
return res
def default_get(self, cr, uid, fields_list, context=None):
+ if context is None:
+ context = {}
res = super(hr_so_project, self).default_get(cr, uid, fields_list, context=context)
res.update(self._get_empid2(cr, uid, context=context))
return res
@@ -65,41 +71,44 @@ class hr_so_project(osv.osv_memory):
def _write(self, cr, uid, data, emp_id, context=None):
timesheet_obj = self.pool.get('hr.analytic.timesheet')
emp_obj = self.pool.get('hr.employee')
+ if context is None:
+ context = {}
hour = (time.mktime(time.strptime(data['date'] or time.strftime('%Y-%m-%d %H:%M:%S'), '%Y-%m-%d %H:%M:%S')) -
time.mktime(time.strptime(data['date_start'], '%Y-%m-%d %H:%M:%S'))) / 3600.0
minimum = data['analytic_amount']
if minimum:
hour = round(round((hour + minimum / 2) / minimum) * minimum, 2)
- res = timesheet_obj.default_get(cr, uid, ['product_id','product_uom_id'])
-
+ res = timesheet_obj.default_get(cr, uid, ['product_id','product_uom_id'], context=context)
+
if not res['product_uom_id']:
raise osv.except_osv(_('UserError'), _('No cost unit defined for this employee !'))
up = timesheet_obj.on_change_unit_amount(cr, uid, False, res['product_id'], hour, res['product_uom_id'])['value']
-
+
res['name'] = data['info']
res['account_id'] = data['account_id'].id
res['unit_amount'] = hour
- emp_journal = emp_obj.browse(cr, uid, emp_id, context).journal_id
+ emp_journal = emp_obj.browse(cr, uid, emp_id, context=context).journal_id
res['journal_id'] = emp_journal and emp_journal.id or False
res.update(up)
up = timesheet_obj.on_change_account_id(cr, uid, [], res['account_id']).get('value', {})
res.update(up)
return timesheet_obj.create(cr, uid, res, context=context)
-
+
def sign_out_result_end(self, cr, uid, ids, context=None):
-
+ if context is None:
+ context = {}
emp_obj = self.pool.get('hr.employee')
-
- for data in self.browse(cr, uid, ids):
+ for data in self.browse(cr, uid, ids, context=context):
emp_id = data.emp_id.id
- emp_obj.attendance_action_change(cr, uid, [emp_id], type='sign_out',dt=data.date)
+ emp_obj.attendance_action_change(cr, uid, [emp_id], type='sign_out', dt=data.date)
self._write(cr, uid, data, emp_id, context=context)
return {}
def sign_out_result(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
emp_obj = self.pool.get('hr.employee')
-
- for data in self.browse(cr, uid, ids):
+ for data in self.browse(cr, uid, ids, context=context):
emp_id = data.emp_id.id
emp_obj.attendance_action_change(cr, uid, [emp_id], type='action', dt=data.date)
self._write(cr, uid, data, emp_id, context=context)
@@ -108,7 +117,7 @@ class hr_so_project(osv.osv_memory):
hr_so_project()
class hr_si_project(osv.osv_memory):
-
+
_name = 'hr.sign.in.project'
_description = 'Sign In By Project'
_columns = {
@@ -117,9 +126,9 @@ class hr_si_project(osv.osv_memory):
'date': fields.datetime('Starting Date'),
'server_date': fields.datetime('Current Date', readonly=True),
# 'emp_id': fields.char('Employee ID', size=512, required=False),
- 'emp_id': fields.many2one('hr.employee', 'Employee ID')
+ 'emp_id': fields.many2one('hr.employee', 'Employee ID')
}
-
+
def view_init(self, cr, uid, fields, context=None):
"""
This function checks for precondition before wizard executes
@@ -130,22 +139,25 @@ class hr_si_project(osv.osv_memory):
@param context: A standard dictionary for contextual values
"""
emp_obj = self.pool.get('hr.employee')
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)])
+ if context is None:
+ context = {}
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)], context=context)
if not emp_id:
raise osv.except_osv(_('UserError'), _('No employee defined for your user !'))
- return False
+ return False
def check_state(self, cr, uid, ids, context=None):
-
obj_model = self.pool.get('ir.model.data')
+ if context is None:
+ context = {}
emp_id = self.default_get(cr, uid, context)['emp_id']
# get the latest action (sign_in or out) for this employee
cr.execute('select action from hr_attendance where employee_id=%s and action in (\'sign_in\',\'sign_out\') order by name desc limit 1', (emp_id,))
res = (cr.fetchone() or ('sign_out',))[0]
in_out = res == 'sign_out' and 'out' or 'in'
#TODO: invert sign_in et sign_out
- model_data_ids = obj_model.search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_hr_timesheet_sign_%s' % in_out)])
- resource_id = obj_model.read(cr, uid, model_data_ids, fields=['res_id'])[0]['res_id']
+ model_data_ids = obj_model.search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_hr_timesheet_sign_%s' % in_out)], context=context)
+ resource_id = obj_model.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
return {
'name': 'Sign in / Sign out',
'view_type': 'form',
@@ -156,20 +168,24 @@ class hr_si_project(osv.osv_memory):
'target': 'new'
}
- def sign_in_result(self, cr, uid, ids, context):
+ def sign_in_result(self, cr, uid, ids, context=None):
emp_obj = self.pool.get('hr.employee')
- for data in self.browse(cr, uid, ids, context):
+ if context is None:
+ context = {}
+ for data in self.browse(cr, uid, ids, context=context):
emp_id = data.emp_id.id
success = emp_obj.attendance_action_change(cr, uid, [emp_id], type = 'sign_in' ,dt=data.date or False)
return {}
def default_get(self, cr, uid, fields_list, context=None):
res = super(hr_si_project, self).default_get(cr, uid, fields_list, context=context)
+ if context is None:
+ context = {}
emp_obj = self.pool.get('hr.employee')
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)])
- if emp_id:
- for employee in emp_obj.browse(cr, uid, emp_id):
- res.update({'emp_id': employee.name, 'state': employee.state, 'emp_id': emp_id[0], 'server_date':time.strftime('%Y-%m-%d %H:%M:%S')})
+ emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)], context=context)
+ if emp_id:
+ for employee in emp_obj.browse(cr, uid, emp_id, context=context):
+ res.update({'name': employee.name, 'state': employee.state, 'emp_id': emp_id[0], 'server_date':time.strftime('%Y-%m-%d %H:%M:%S')})
return res
hr_si_project()
diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml
index 9a77ae938f3..18e5e4f11df 100644
--- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml
+++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml
@@ -70,11 +70,13 @@
-
-
+
+
-
+
+
+
diff --git a/addons/hr_timesheet_invoice/board_hr_timesheet_invoice.xml b/addons/hr_timesheet_invoice/board_hr_timesheet_invoice.xml
index 0598ad79670..78945f73f4e 100644
--- a/addons/hr_timesheet_invoice/board_hr_timesheet_invoice.xml
+++ b/addons/hr_timesheet_invoice/board_hr_timesheet_invoice.xml
@@ -2,8 +2,6 @@
-
-
@@ -16,26 +14,26 @@
board.hr.timesheet.invoice
board.board
- form
-
+ form
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
board.hr.timesheet.invoice
board.board
- form
-
+ form
+
-
-
-
+
+
+
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
index 2190a1c8149..a848fc6d352 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.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 .
#
##############################################################################
@@ -39,13 +39,16 @@ hr_timesheet_invoice_factor()
class account_analytic_account(osv.osv):
- def _invoiced_calc(self, cr, uid, ids, name, arg, context={}):
+ def _invoiced_calc(self, cr, uid, ids, name, arg, context=None):
+ obj_invoice = self.pool.get('account.invoice')
+ if context is None:
+ context = {}
res = {}
- for account in self.browse(cr, uid, ids):
+ for account in self.browse(cr, uid, ids, context=context):
invoiced = {}
cr.execute('select distinct(l.invoice_id) from hr_analytic_timesheet h left join account_analytic_line l on (h.line_id=l.id) where account_id=%s', (account.id,))
invoice_ids = filter(None, map(lambda x: x[0], cr.fetchall()))
- for invoice in self.pool.get('account.invoice').browse(cr, uid, invoice_ids, context):
+ for invoice in obj_invoice.browse(cr, uid, invoice_ids, context=context):
res.setdefault(account.id, 0.0)
res[account.id] += invoice.amount_untaxed
for id in ids:
@@ -73,20 +76,24 @@ account_analytic_account()
class account_analytic_line(osv.osv):
_inherit = 'account.analytic.line'
_columns = {
- 'invoice_id': fields.many2one('account.invoice', 'Invoice', ondelete="set null"),
+ 'invoice_id': fields.many2one('account.invoice', 'Invoice', ondelete="set null"),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Type of Invoicing'),
}
def unlink(self, cursor, user, ids, context=None):
+ if context is None:
+ context = {}
return super(account_analytic_line,self).unlink(cursor, user, ids,
context=context)
def write(self, cr, uid, ids, vals, context=None):
- self._check_inv(cr, uid, ids,vals)
+ if context is None:
+ context = {}
+ self._check_inv(cr, uid, ids, vals)
return super(account_analytic_line,self).write(cr, uid, ids, vals,
context=context)
- def _check_inv(self, cr, uid, ids,vals):
+ def _check_inv(self, cr, uid, ids, vals):
select = ids
if isinstance(select, (int, long)):
select = [ids]
@@ -98,12 +105,14 @@ class account_analytic_line(osv.osv):
return True
def copy(self, cursor, user, obj_id, default=None, context=None):
+ if context is None:
+ context = {}
if default is None:
default = {}
default = default.copy()
default.update({'invoice_id': False})
return super(account_analytic_line, self).copy(cursor, user, obj_id,
- default, context)
+ default, context=context)
account_analytic_line()
@@ -126,12 +135,14 @@ class hr_analytic_timesheet(osv.osv):
return res
def copy(self, cursor, user, obj_id, default=None, context=None):
+ if context is None:
+ context = {}
if default is None:
default = {}
default = default.copy()
default.update({'invoice_id': False})
return super(hr_analytic_timesheet, self).copy(cursor, user, obj_id,
- default, context)
+ default, context=context)
hr_analytic_timesheet()
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
index b511c5cfe0e..877afa57965 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml
@@ -84,7 +84,6 @@
-
account.analytic.line.tree.to_invoice
account.analytic.line
@@ -110,6 +109,11 @@
+
+
Entries to invoice
account.analytic.line
@@ -118,12 +122,11 @@
[('to_invoice','<>',False)]
{"search_default_user_id":uid}
OpenERP automatically group the entries to be invoiced so you can keep an eye on them on real time in one glance.
-
+ parent="menu_finance_periodical_processing_billing"/>
Uninvoiced Entries
@@ -184,7 +187,7 @@
+ parent="account.menu_low_level"/>
diff --git a/addons/hr_timesheet_invoice/i18n/ro.po b/addons/hr_timesheet_invoice/i18n/ro.po
index 1f12bb1fe06..211c37809ca 100644
--- a/addons/hr_timesheet_invoice/i18n/ro.po
+++ b/addons/hr_timesheet_invoice/i18n/ro.po
@@ -1,30 +1,30 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * hr_timesheet_invoice
+# * hr_timesheet_invoice
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-09-08 14:49+0000\n"
-"Last-Translator: filsys \n"
+"PO-Revision-Date: 2010-07-23 20:20+0000\n"
+"Last-Translator: Desen \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-06-22 04:11+0000\n"
+"X-Launchpad-Export-Date: 2010-07-24 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet_invoice
#: view:hr_timesheet_invoice.factor:0
msgid "Type of invoicing"
-msgstr ""
+msgstr "Tip de facturare"
#. module: hr_timesheet_invoice
#: rml:account.analytic.profit:0
msgid "Profit"
-msgstr ""
+msgstr "Profit"
#. module: hr_timesheet_invoice
#: wizard_view:hr.timesheet.invoice.create,init:0
@@ -39,17 +39,17 @@ msgstr ""
#. module: hr_timesheet_invoice
#: rml:account.analytic.profit:0
msgid "Income"
-msgstr ""
+msgstr "Venituri"
#. module: hr_timesheet_invoice
#: field:hr_timesheet_invoice.factor,customer_name:0
msgid "Visible name"
-msgstr ""
+msgstr "Nume vizibil"
#. module: hr_timesheet_invoice
#: wizard_field:hr.timesheet.invoice.account.analytic.account.cost_ledger.report,init,date1:0
msgid "Start of period"
-msgstr ""
+msgstr "Începutul perioadei"
#. module: hr_timesheet_invoice
#: help:hr.timesheet.invoice.create,init,price:0
@@ -57,11 +57,13 @@ msgid ""
"The cost of each work done will be displayed on the invoice. You probably "
"don't want to check this."
msgstr ""
+"Costul fiecărei activități efectuate va fi tipărit pe factura. Probabil că "
+"nu doriți să bifați această opțiune."
#. module: hr_timesheet_invoice
#: model:ir.actions.wizard,name:hr_timesheet_invoice.hr_timesheet_invoice_create
msgid "Invoice analytic lines"
-msgstr ""
+msgstr "Detalii factură"
#. module: hr_timesheet_invoice
#: help:hr.timesheet.final.invoice.create,init,time:0
@@ -72,18 +74,18 @@ msgstr ""
#: model:ir.actions.act_window,name:hr_timesheet_invoice.action_draft_analytic_accounts
#: model:ir.ui.menu,name:hr_timesheet_invoice.menu_action_draft_analytic_accounts
msgid "Draft Analytic Accounts"
-msgstr ""
+msgstr "Conturi analitice în schiță"
#. module: hr_timesheet_invoice
#: wizard_field:hr.timesheet.final.invoice.create,init,time:0
#: wizard_field:hr.timesheet.invoice.create,init,time:0
msgid "Time spent"
-msgstr ""
+msgstr "Timp consumat"
#. module: hr_timesheet_invoice
#: field:account.analytic.account,amount_invoiced:0
msgid "Invoiced Amount"
-msgstr ""
+msgstr "Valoarea Facturată"
#. module: hr_timesheet_invoice
#: help:account.analytic.account,to_invoice:0
diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_cost_ledger_report.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_cost_ledger_report.py
index 418aac5edd3..892c93252ee 100644
--- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_cost_ledger_report.py
+++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_cost_ledger_report.py
@@ -39,7 +39,7 @@ class hr_timesheet_analytic_cost_ledger(osv.osv_memory):
datas = {
'ids': 'active_ids' in context and context['active_ids'] or [],
'model': 'account.analytic.account',
- 'form': self.read(cr, uid, ids)[0]
+ 'form': self.read(cr, uid, ids, context=context)[0]
}
return {
'type': 'ir.actions.report.xml',
diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit.py
index b83b84746d2..1ead36be0a7 100644
--- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit.py
+++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit.py
@@ -48,16 +48,16 @@ class account_analytic_profit(osv.osv_memory):
line_obj = self.pool.get('account.analytic.line')
product_obj = self.pool.get('product.product')
price_obj = self.pool.get('product.pricelist')
- data = {}
- data['form'] = self.read(cr, uid , ids, [], context=context)[0]
if context is None:
context = {}
+ data = {}
+ data['form'] = self.read(cr, uid , ids, [], context=context)[0]
ids_chk = line_obj.search(cr, uid, [
('date', '>=', data['form']['date_from']),
('date', '<=', data['form']['date_to']),
('journal_id', 'in', data['form']['journal_ids']),
('user_id', 'in', data['form']['employee_ids']),
- ])
+ ], context=context)
if not ids_chk:
raise osv.except_osv(_('Data Insufficient!'), _('No Records Found for Report!'))
diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py
index e8309d84921..4878a6634b2 100644
--- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py
+++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py
@@ -46,17 +46,21 @@ class final_invoice_create(osv.osv_memory):
analytic_account_obj = self.pool.get('account.analytic.account')
res_partner_obj = self.pool.get('res.partner')
account_payment_term_obj = self.pool.get('account.payment.term')
+ invoice_obj = self.pool.get('account.invoice')
+ product_obj = self.pool.get('product.product')
+ fiscal_pos_obj = self.pool.get('account.fiscal.position')
+ invoice_line_obj = self.pool.get('account.invoice.line')
invoices = []
if context is None:
context = {}
result = mod_obj._get_id(cr, uid, 'account', 'view_account_invoice_filter')
- res = mod_obj.read(cr, uid, result, ['res_id'])
+ res = mod_obj.read(cr, uid, result, ['res_id'], context=context)
- data = self.read(cr, uid, ids, [], context)[0]
+ data = self.read(cr, uid, ids, [], context=context)[0]
account_ids = 'active_ids' in context and context['active_ids'] or []
- for account in analytic_account_obj.browse(cr, uid, account_ids, context):
+ for account in analytic_account_obj.browse(cr, uid, account_ids, context=context):
partner = account.partner_id
amount_total=0.0
if (not partner) or not (account.pricelist_id):
@@ -77,15 +81,15 @@ class final_invoice_create(osv.osv_memory):
curr_invoice = {
'name': time.strftime('%D')+' - '+account.name,
'partner_id': account.partner_id.id,
- 'address_contact_id': self.pool.get('res.partner').address_get(cr, uid, [account.partner_id.id], adr_pref=['contact'])['contact'],
- 'address_invoice_id': self.pool.get('res.partner').address_get(cr, uid, [account.partner_id.id], adr_pref=['invoice'])['invoice'],
+ 'address_contact_id': res_partner_obj.address_get(cr, uid, [account.partner_id.id], adr_pref=['contact'])['contact'],
+ 'address_invoice_id': res_partner_obj.address_get(cr, uid, [account.partner_id.id], adr_pref=['invoice'])['invoice'],
'payment_term': partner.property_payment_term.id or False,
'account_id': partner.property_account_receivable.id,
'currency_id': account.pricelist_id.currency_id.id,
'date_due': date_due,
'fiscal_position': account.partner_id.property_account_position.id
}
- last_invoice = self.pool.get('account.invoice').create(cr, uid, curr_invoice)
+ last_invoice = invoice_obj.create(cr, uid, curr_invoice, context=context)
invoices.append(last_invoice)
context2=context.copy()
@@ -116,14 +120,14 @@ class final_invoice_create(osv.osv_memory):
line.product_uom_id,
move_line.ref""", (account.id,))
for product_id, amount, account_id, product_uom_id, ref in cr.fetchall():
- product = self.pool.get('product.product').browse(cr, uid, product_id, context2)
+ product = product_obj.browse(cr, uid, product_id, context2)
if product:
taxes = product.taxes_id
else:
taxes = []
- tax = self.pool.get('account.fiscal.position').map_tax(cr, uid, account.partner_id.property_account_position, taxes)
+ tax = fiscal_pos_obj.map_tax(cr, uid, account.partner_id.property_account_position, taxes)
curr_line = {
'price_unit': -amount,
'quantity': 1.0,
@@ -136,14 +140,13 @@ class final_invoice_create(osv.osv_memory):
'account_id': account_id,
'account_analytic_id': account.id
}
- self.pool.get('account.invoice.line').create(cr, uid, curr_line)
+ invoice_line_obj.create(cr, uid, curr_line, context=context)
if not data['balance_product']:
raise osv.except_osv(_('Balance product needed'), _('Please fill a Balance product in the wizard'))
- product = self.pool.get('product.product').browse(cr, uid, data['balance_product'], context2)
-
+ product = product_obj.browse(cr, uid, data['balance_product'], context2)
taxes = product.taxes_id
- tax = self.pool.get('account.fiscal.position').map_tax(cr, uid, account.partner_id.property_account_position, taxes)
+ tax = fiscal_pos_obj.map_tax(cr, uid, account.partner_id.property_account_position, taxes)
account_id = product.product_tmpl_id.property_account_income.id or product.categ_id.property_account_income_categ.id
curr_line = {
'price_unit': account.amount_max - amount_total,
@@ -157,9 +160,9 @@ class final_invoice_create(osv.osv_memory):
'account_id': account_id,
'account_analytic_id': account.id
}
- self.pool.get('account.invoice.line').create(cr, uid, curr_line)
+ invoice_line_obj.create(cr, uid, curr_line, context=context)
if account.amount_max < amount_total:
- self.pool.get('account.invoice').write(cr, uid, [last_invoice], {'type': 'out_refund',})
+ invoice_obj.write(cr, uid, [last_invoice], {'type': 'out_refund',}, context=context)
cr.execute('update account_analytic_line set invoice_id=%s where invoice_id is null and account_id=%s', (last_invoice, account.id))
return {
diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py
index a5b2e35622c..1ed01c53281 100644
--- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py
+++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py
@@ -49,7 +49,7 @@ class hr_timesheet_invoice_create(osv.osv_memory):
if not len(context['active_ids']):
return {}
#Checking whether the analytic line is invoiced or not
- analytic_line_obj = self.pool.get('account.analytic.line').browse(cr, uid, context['active_ids'], context)
+ analytic_line_obj = self.pool.get('account.analytic.line').browse(cr, uid, context['active_ids'], context=context)
for obj_acc in analytic_line_obj:
if obj_acc.invoice_id and obj_acc.invoice_id.state !='cancel':
raise osv.except_osv(_('Warning'),_('The analytic entry "%s" is already invoiced!')%(obj_acc.name,))
@@ -67,13 +67,21 @@ class hr_timesheet_invoice_create(osv.osv_memory):
analytic_account_obj = self.pool.get('account.analytic.account')
res_partner_obj = self.pool.get('res.partner')
account_payment_term_obj = self.pool.get('account.payment.term')
+ invoice_obj = self.pool.get('account.invoice')
+ product_obj = self.pool.get('product.product')
+ invoice_factor_obj = self.pool.get('hr_timesheet_invoice.factor')
+ pro_price_obj = self.pool.get('product.pricelist')
+ fiscal_pos_obj = self.pool.get('account.fiscal.position')
+ product_uom_obj = self.pool.get('product.uom')
+ invoice_line_obj = self.pool.get('account.invoice.line')
invoices = []
-
+ if context is None:
+ context = {}
result = mod_obj._get_id(cr, uid, 'account', 'view_account_invoice_filter')
- res = mod_obj.read(cr, uid, result, ['res_id'])
- data = self.read(cr, uid, ids, [], context)[0]
+ res = mod_obj.read(cr, uid, result, ['res_id'], context=context)
+ data = self.read(cr, uid, ids, [], context=context)[0]
account_ids = data['accounts']
- for account in analytic_account_obj.browse(cr, uid, account_ids, context):
+ for account in analytic_account_obj.browse(cr, uid, account_ids, context=context):
partner = account.partner_id
if (not partner) or not (account.pricelist_id):
raise osv.except_osv(_('Analytic Account incomplete'),
@@ -106,7 +114,7 @@ class hr_timesheet_invoice_create(osv.osv_memory):
'date_due': date_due,
'fiscal_position': account.partner_id.property_account_position.id
}
- last_invoice = self.pool.get('account.invoice').create(cr, uid, curr_invoice)
+ last_invoice = invoice_obj.create(cr, uid, curr_invoice, context=context)
invoices.append(last_invoice)
context2 = context.copy()
@@ -115,14 +123,14 @@ class hr_timesheet_invoice_create(osv.osv_memory):
"FROM account_analytic_line as line " \
"WHERE account_id = %s " \
"AND id IN %s AND to_invoice IS NOT NULL " \
- "GROUP BY product_id,to_invoice", (account.id,tuple(context['active_ids']),))
+ "GROUP BY product_id,to_invoice", (account.id, tuple(context['active_ids']),))
- for product_id,factor_id,qty in cr.fetchall():
- product = self.pool.get('product.product').browse(cr, uid, product_id, context2)
+ for product_id, factor_id, qty in cr.fetchall():
+ product = product_obj.browse(cr, uid, product_id, context2)
if not product:
raise osv.except_osv(_('Error'), _('At least one line has no product !'))
factor_name = ''
- factor = self.pool.get('hr_timesheet_invoice.factor').browse(cr, uid, factor_id, context2)
+ factor = invoice_factor_obj.browse(cr, uid, factor_id, context2)
if not data['product']:
if factor.customer_name:
@@ -130,16 +138,16 @@ class hr_timesheet_invoice_create(osv.osv_memory):
else:
factor_name = product.name
else:
- factor_name = self.pool.get('product.product').name_get(cr, uid, [data['product']], context=context)[0][1]
+ factor_name = product_obj.name_get(cr, uid, [data['product']], context=context)[0][1]
if account.pricelist_id:
pl = account.pricelist_id.id
- price = self.pool.get('product.pricelist').price_get(cr,uid,[pl], data['product'] or product_id, qty or 1.0, account.partner_id.id)[pl]
+ price = pro_price_obj.price_get(cr,uid,[pl], data['product'] or product_id, qty or 1.0, account.partner_id.id)[pl]
else:
price = 0.0
taxes = product.taxes_id
- tax = self.pool.get('account.fiscal.position').map_tax(cr, uid, account.partner_id.property_account_position, taxes)
+ tax = fiscal_pos_obj.map_tax(cr, uid, account.partner_id.property_account_position, taxes)
account_id = product.product_tmpl_id.property_account_income.id or product.categ_id.property_account_income_categ.id
curr_line = {
'price_unit': price,
@@ -169,7 +177,7 @@ class hr_timesheet_invoice_create(osv.osv_memory):
details.append(line['date'])
if data['time']:
if line['product_uom_id']:
- details.append("%s %s" % (line['unit_amount'], self.pool.get('product.uom').browse(cr, uid, [line['product_uom_id']],context2)[0].name))
+ details.append("%s %s" % (line['unit_amount'], product_uom_obj.browse(cr, uid, [line['product_uom_id']],context2)[0].name))
else:
details.append("%s" % (line['unit_amount'], ))
if data['name']:
@@ -179,17 +187,17 @@ class hr_timesheet_invoice_create(osv.osv_memory):
note.append(u' - '.join(map(lambda x: unicode(x) or '',details)))
curr_line['note'] = "\n".join(map(lambda x: unicode(x) or '',note))
- self.pool.get('account.invoice.line').create(cr, uid, curr_line)
+ invoice_line_obj.create(cr, uid, curr_line, context=context)
cr.execute("update account_analytic_line set invoice_id=%s WHERE account_id = %s and id IN %s" ,(last_invoice, account.id,tuple(data['ids'])))
- self.pool.get('account.invoice').button_reset_taxes(cr, uid, [last_invoice], context)
+ invoice_obj.button_reset_taxes(cr, uid, [last_invoice], context)
mod_obj = self.pool.get('ir.model.data')
act_obj = self.pool.get('ir.actions.act_window')
- mod_id = mod_obj.search(cr, uid, [('name', '=', 'action_invoice_tree1')])[0]
- res_id = mod_obj.read(cr, uid, mod_id, ['res_id'])['res_id']
- act_win = act_obj.read(cr, uid, res_id, [])
+ mod_ids = mod_obj.search(cr, uid, [('name', '=', 'action_invoice_tree1')], context=context)[0]
+ res_id = mod_obj.read(cr, uid, mod_ids, ['res_id'], context=context)['res_id']
+ act_win = act_obj.read(cr, uid, res_id, [], context=context)
act_win['domain'] = [('id','in',invoices),('type','=','out_invoice')]
act_win['name'] = _('Invoices')
return act_win
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
index 62dce204c4d..8b9744877b9 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
@@ -20,10 +20,9 @@
##############################################################################
import time
-from osv import fields
-from osv import osv
import netsvc
+from osv import fields, osv
from mx import DateTime
from tools.translate import _
@@ -139,7 +138,7 @@ class hr_timesheet_sheet(osv.osv):
for sheet in self.browse(cr, uid, ids, context=context):
result[sheet.id] = 'none'
emp_ids2 = emp_obj.search(cr, uid,
- [('user_id', '=', sheet.user_id.id)])
+ [('user_id', '=', sheet.user_id.id)], context=context)
if emp_ids2:
link_emp[emp_ids2[0]] = sheet.id
emp_ids.append(emp_ids2[0])
@@ -169,11 +168,11 @@ class hr_timesheet_sheet(osv.osv):
context = {}
for sheet in self.browse(cr, uid, ids, context=context):
if DateTime.now() <= DateTime.strptime(sheet.date_from, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,}, context=context)
elif DateTime.now() >= DateTime.strptime(sheet.date_to, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,}, context=context)
else:
- self.write(cr, uid, [sheet.id], {'date_current': time.strftime('%Y-%m-%d')})
+ self.write(cr, uid, [sheet.id], {'date_current': time.strftime('%Y-%m-%d')}, context=context)
return True
def date_previous(self, cr, uid, ids, context=None):
@@ -181,11 +180,11 @@ class hr_timesheet_sheet(osv.osv):
context = {}
for sheet in self.browse(cr, uid, ids, context=context):
if DateTime.strptime(sheet.date_current, '%Y-%m-%d') <= DateTime.strptime(sheet.date_from, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,}, context=context)
else:
self.write(cr, uid, [sheet.id], {
'date_current': (DateTime.strptime(sheet.date_current, '%Y-%m-%d') + DateTime.RelativeDateTime(days=-1)).strftime('%Y-%m-%d'),
- })
+ }, context=context)
return True
def date_next(self, cr, uid, ids, context=None):
@@ -193,11 +192,11 @@ class hr_timesheet_sheet(osv.osv):
context = {}
for sheet in self.browse(cr, uid, ids, context=context):
if DateTime.strptime(sheet.date_current, '%Y-%m-%d') >= DateTime.strptime(sheet.date_to, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,}, context=context)
else:
self.write(cr, uid, [sheet.id], {
'date_current': (DateTime.strptime(sheet.date_current, '%Y-%m-%d') + DateTime.RelativeDateTime(days=1)).strftime('%Y-%m-%d'),
- })
+ }, context=context)
return True
def button_dummy(self, cr, uid, ids, context=None):
@@ -205,31 +204,31 @@ class hr_timesheet_sheet(osv.osv):
context = {}
for sheet in self.browse(cr, uid, ids, context=context):
if DateTime.strptime(sheet.date_current, '%Y-%m-%d') <= DateTime.strptime(sheet.date_from, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_from,}, context=context)
elif DateTime.strptime(sheet.date_current, '%Y-%m-%d') >= DateTime.strptime(sheet.date_to, '%Y-%m-%d'):
- self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,})
+ self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,}, context=context)
return True
def sign_in(self, cr, uid, ids, context=None):
emp_obj = self.pool.get('hr.employee')
if context is None:
context = {}
- if not self.browse(cr, uid, ids, context)[0].date_current == time.strftime('%Y-%m-%d'):
+ if not self.browse(cr, uid, ids, context=context)[0].date_current == time.strftime('%Y-%m-%d'):
raise osv.except_osv(_('Error !'), _('You can not sign in from an other date than today'))
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)])
+ emp_ids = emp_obj.search(cr, uid, [('user_id', '=', uid)], context=context)
context['sheet_id']=ids[0]
- success = emp_obj.attendance_action_change(cr, uid, emp_id, type='sign_in', context=context,)
+ success = emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_in', context=context,)
return True
def sign_out(self, cr, uid, ids, context=None):
emp_obj = self.pool.get('hr.employee')
if context is None:
context = {}
- if not self.browse(cr, uid, ids, context)[0].date_current == time.strftime('%Y-%m-%d'):
+ if not self.browse(cr, uid, ids, context=context)[0].date_current == time.strftime('%Y-%m-%d'):
raise osv.except_osv(_('Error !'), _('You can not sign out from an other date than today'))
- emp_id = emp_obj.search(cr, uid, [('user_id', '=', uid)])
+ emp_ids = emp_obj.search(cr, uid, [('user_id', '=', uid)])
context['sheet_id']=ids[0]
- success = emp_obj.attendance_action_change(cr, uid, emp_id, type='sign_out', context=context,)
+ success = emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_out', context=context,)
return True
_columns = {
@@ -268,7 +267,9 @@ class hr_timesheet_sheet(osv.osv):
'department_id':fields.many2one('hr.department','Department'),
}
- def _default_date_from(self,cr, uid, context={}):
+ def _default_date_from(self,cr, uid, context=None):
+ if context is None:
+ context = {}
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
r = user.company_id and user.company_id.timesheet_range or 'month'
if r=='month':
@@ -279,7 +280,7 @@ class hr_timesheet_sheet(osv.osv):
return time.strftime('%Y-01-01')
return time.strftime('%Y-%m-%d')
- def _default_date_to(self,cr, uid, context={}):
+ def _default_date_to(self,cr, uid, context=None):
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
r = user.company_id and user.company_id.timesheet_range or 'month'
if r=='month':
@@ -330,17 +331,19 @@ class hr_timesheet_sheet(osv.osv):
wf_service.trg_create(uid, self._name, id, cr)
return True
- def name_get(self, cr, uid, ids, context={}):
+ def name_get(self, cr, uid, ids, context=None):
+ if context is None:
+ context = {}
if not len(ids):
return []
return [(r['id'], r['date_from'] + ' - ' + r['date_to']) \
for r in self.read(cr, uid, ids, ['date_from', 'date_to'],
- context, load='_classic_write')]
+ context=context, load='_classic_write')]
def unlink(self, cr, uid, ids, context=None):
if context is None:
context = {}
- sheets = self.read(cr, uid, ids, ['state','total_attendance'])
+ sheets = self.read(cr, uid, ids, ['state','total_attendance'], context=context)
for sheet in sheets:
if sheet['state'] in ('confirm', 'done'):
raise osv.except_osv(_('Invalid action !'), _('Cannot delete Sheet(s) which are already confirmed !'))
@@ -354,14 +357,17 @@ hr_timesheet_sheet()
class hr_timesheet_line(osv.osv):
_inherit = "hr.analytic.timesheet"
- def _get_default_date(self, cr, uid, context={}):
+ def _get_default_date(self, cr, uid, context=None):
+ if context is None:
+ context = {}
if 'date' in context:
return context['date']
return time.strftime('%Y-%m-%d')
- def _sheet(self, cursor, user, ids, name, args, context):
+ def _sheet(self, cursor, user, ids, name, args, context=None):
sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
-
+ if context is None:
+ context = {}
cursor.execute('SELECT l.id, COALESCE(MAX(s.id), 0) \
FROM hr_timesheet_sheet_sheet s \
LEFT JOIN (hr_analytic_timesheet l \
@@ -386,6 +392,8 @@ class hr_timesheet_line(osv.osv):
return res
def _sheet_search(self, cursor, user, obj, name, args, context=None):
+ if context is None:
+ context = {}
if not len(args):
return []
sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
@@ -395,7 +403,7 @@ class hr_timesheet_line(osv.osv):
fargs = args[i][0].split('.', 1)
if len(fargs) > 1:
args[i] = (fargs[0], 'in', sheet_obj.search(cursor, user,
- [(fargs[1], args[i][1], args[i][2])]))
+ [(fargs[1], args[i][1], args[i][2])], context=context))
i += 1
continue
if isinstance(args[i][2], basestring):
@@ -472,12 +480,16 @@ hr_timesheet_line()
class hr_attendance(osv.osv):
_inherit = "hr.attendance"
- def _get_default_date(self, cr, uid, context={}):
+ def _get_default_date(self, cr, uid, context=None):
+ if context is None:
+ context = {}
if 'name' in context:
return context['name'] + time.strftime(' %H:%M:%S')
return time.strftime('%Y-%m-%d %H:%M:%S')
- def _sheet(self, cursor, user, ids, name, args, context):
+ def _sheet(self, cursor, user, ids, name, args, context=None):
+ if context is None:
+ context = {}
sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
cursor.execute("SELECT a.id, COALESCE(MAX(s.id), 0) \
FROM hr_timesheet_sheet_sheet s \
@@ -506,14 +518,16 @@ class hr_attendance(osv.osv):
def _sheet_search(self, cursor, user, obj, name, args, context=None):
if not len(args):
return []
- sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
+ sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
+ if context is None:
+ context = {}
i = 0
while i < len(args):
fargs = args[i][0].split('.', 1)
if len(fargs) > 1:
args[i] = (fargs[0], 'in', sheet_obj.search(cursor, user,
- [(fargs[1], args[i][1], args[i][2])]))
+ [(fargs[1], args[i][1], args[i][2])], context=context))
i += 1
continue
if isinstance(args[i][2], basestring):
@@ -570,7 +584,7 @@ class hr_attendance(osv.osv):
if context is None:
context = {}
if 'sheet_id' in context:
- ts = self.pool.get('hr_timesheet_sheet.sheet').browse(cr, uid, context['sheet_id'])
+ ts = self.pool.get('hr_timesheet_sheet.sheet').browse(cr, uid, context['sheet_id'], context=context)
if ts.state not in ('draft', 'new'):
raise osv.except_osv(_('Error !'), _('You cannot modify an entry in a confirmed timesheet !'))
res = super(hr_attendance,self).create(cr, uid, vals, context=context)
@@ -584,7 +598,7 @@ class hr_attendance(osv.osv):
self._check(cr, uid, ids)
return super(hr_attendance,self).unlink(cr, uid, ids,*args, **kwargs)
- def write(self, cr, uid, ids, vals, context={}):
+ def write(self, cr, uid, ids, vals, context=None):
if context is None:
context = {}
self._check(cr, uid, ids)
diff --git a/addons/hr_timesheet_sheet/wizard/hr_timesheet_current.py b/addons/hr_timesheet_sheet/wizard/hr_timesheet_current.py
index 4d9998014c8..6ec2dd5b1e8 100644
--- a/addons/hr_timesheet_sheet/wizard/hr_timesheet_current.py
+++ b/addons/hr_timesheet_sheet/wizard/hr_timesheet_current.py
@@ -29,18 +29,20 @@ class hr_timesheet_current_open(osv.osv_memory):
def open_timesheet(self, cr, uid, ids, context=None):
ts = self.pool.get('hr_timesheet_sheet.sheet')
+ if context is None:
+ context = {}
view_type = 'form,tree'
- user_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)])
+ user_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)], context=context)
if not len(user_ids):
raise osv.except_osv(_('Error !'), _('No employee defined for your user !'))
- ids = ts.search(cr, uid, [('user_id','=',uid),('state','=','draft'),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))])
+ ids = ts.search(cr, uid, [('user_id','=',uid),('state','=','draft'),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)
if len(ids) > 1:
view_type = 'tree,form'
domain = "[('id','in',["+','.join(map(str, ids))+"]),('user_id', '=', uid)]"
elif len(ids)==1:
- ts.write(cr, uid, ids, {'date_current': time.strftime('%Y-%m-%d')})
+ ts.write(cr, uid, ids, {'date_current': time.strftime('%Y-%m-%d')}, context=context)
domain = "[('user_id', '=', uid)]"
else:
domain = "[('user_id', '=', uid)]"
diff --git a/addons/knowledge/knowledge_installer.xml b/addons/knowledge/knowledge_installer.xml
index fb5d14e6e75..081d0734005 100644
--- a/addons/knowledge/knowledge_installer.xml
+++ b/addons/knowledge/knowledge_installer.xml
@@ -8,7 +8,7 @@
- Knowledge Modules Installation
+ Knowledge Modules Configuration
diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py
index d05df8cfcaf..a595b4bf600 100644
--- a/addons/mail_gateway/mail_gateway.py
+++ b/addons/mail_gateway/mail_gateway.py
@@ -140,19 +140,28 @@ class mailgate_thread(osv.osv):
return True
mailgate_thread()
+def format_date_tz(date, tz=None):
+ if not date:
+ return 'n/a'
+ format = tools.DEFAULT_SERVER_DATETIME_FORMAT
+ return tools.server_to_local_timestamp(date, format, format, tz)
+
class mailgate_message(osv.osv):
'''
Mailgateway Message
'''
def _get_display_text(self, cr, uid, ids, name, arg, context=None):
+ if context is None:
+ context = {}
+ tz = context.get('tz')
result = {}
for message in self.browse(cr, uid, ids, context=context):
msg_txt = ''
if message.history:
- msg_txt += (message.email_from or '/') + ' wrote on ' + message.date + ':\n\t'
+ msg_txt += (message.email_from or '/') + ' wrote on ' + format_date_tz(message.date, tz) + ':\n\t'
msg_txt += '\n\t'.join(message.description.split('\n')[:3]) + '...'
else:
- msg_txt = (message.user_id.name or '/') + ' on ' + message.date + ':\n\t'
+ msg_txt = (message.user_id.name or '/') + ' on ' + format_date_tz(message.date, tz) + ':\n\t'
if message.name == 'Opportunity':
msg_txt += "Converted to Opportunity"
else:
diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml
index a3288fb471f..1b144a14729 100644
--- a/addons/marketing/marketing_view.xml
+++ b/addons/marketing/marketing_view.xml
@@ -13,7 +13,7 @@
- Marketing Modules Installation
+ Marketing Modules Configuration
Select Marketing Modules to Install
diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml
index 3e643519136..bedd8edefd2 100644
--- a/addons/marketing_campaign/marketing_campaign_view.xml
+++ b/addons/marketing_campaign/marketing_campaign_view.xml
@@ -27,8 +27,8 @@
-
-
+
+
@@ -142,7 +142,7 @@
-
+
diff --git a/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml b/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
index f67a747e518..6b78a82c977 100644
--- a/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
+++ b/addons/marketing_campaign_crm_demo/marketing_campaign_demo.xml
@@ -1,6 +1,16 @@
+
+ Dummy Action
+
+ dummy
+
+
+
+
+
+
@@ -178,7 +188,7 @@
Propose a 1 month free trial for an OnDemand offer
-
+
paper
@@ -187,27 +197,27 @@
Thanks for showing interest
-
+
Propose to subscribe to the Open ERP Discovery Day on May 2010
-
+
Thanks for subscribing to the Open ERP Discovery Day
-
+
Propose to buy the Open ERP Book
-
+
paper
@@ -216,33 +226,33 @@
Thanks for buying the Open ERP book
-
+
Propose a free technical training to Gold partners
-
+
Propose paid training to Silver partners
-
+
Propose gold partnership to silver partners
-
+
Thanks for subscribing to technical training
-
+
diff --git a/addons/membership/test/test_membership.yml b/addons/membership/test/test_membership.yml
index bbeceed3d89..16ac0674ee8 100644
--- a/addons/membership/test/test_membership.yml
+++ b/addons/membership/test/test_membership.yml
@@ -1,101 +1,167 @@
- |
In Order to test the Membership in OpenERP, which allows us to manage all operations for managing memberships.
- |
- We have to create "Membership Products" to make it available for partner or customer to make membership with it.
- select product type to "service" type and membership field is ticked to visible this product while creating membership for the partner.
+ I'm creating "Golden Membership" which has Membership fee 80 EURO and It's started from 1st June to 31st Dec.
-
!record {model: product.product, id: product_product_membershipproduct0}:
categ_id: product.cat1
membership: 1
- membership_date_from: '2009-06-01'
- membership_date_to: '2010-06-01'
- name: Membership Products
+ membership_date_from: '2010-06-01'
+ membership_date_to: '2010-12-31'
+ name: Golden Membership
type: service
list_price: 80.00
- |
- I create new member "Mark Johnson" and I provide an address to this
- new customer, as well as an email "info@mycustomer.com".
+ "Mark Johnson" want to join "Golden Membership".
+- |
+ I'm creating new member "Mark Johnson".
-
!record {model: res.partner, id: res_partner_markjohnson0}:
address:
- city: paris
country_id: base.fr
- name: Arthur Grosbonnet
+ name: Mark Johnson
street: 1 rue Rockfeller
- type: default
+ type: invoice
zip: '75016'
- credit_limit: 0.0
- membership_amount: 0.0
name: Mark Johnson
- property_account_payable: account.a_pay
- property_account_receivable: account.a_recv
-
- |
- I check that "Current membership state" is set to "Non Member".
+ I'm checking "Current Membership State" of "Mark Johnson". It is an "Non Member" or not.
-
!assert {model: res.partner, id: res_partner_markjohnson0}:
- - membership_state == 'none'
-- |
- I can make it a Free member by selecting the "Free member" check box.
--
- !record {model: res.partner, id: membership.res_partner_markjohnson0}:
- free_member: 1
+ - membership_state == 'none', 'Member should be has "Current Membership State" in "Non Member".'
- |
- Now, I create Membership Invoices using wizard available on partner and Select Membership Product.
+ I'm doing to make membership invoice for "Mark Johnson" on joining "Golden Membership".
-
- !record {model: membership.invoice, id: membership_invoice_0}:
- product_id: membership.product_product_membershipproduct0
-
+ !python {model: res.partner}: |
+ self.create_membership_invoice(cr, uid, [ref("res_partner_markjohnson0")], product_id=ref("product_product_membershipproduct0"), datas={"amount":80.00})
- |
- I click on "Confirm" button of this wizard. and also check that address is defined or not for this partner in this function.
+ I'm checking "Current Membership State" of "Mark Johnson". It is an "Waiting Member" or not.
-
- !python {model: membership.invoice}: |
- self.membership_invoice(cr, uid, [ref("membership_invoice_0")], {"active_ids": [ref("membership.res_partner_markjohnson0")]})
-
+ !assert {model: res.partner, id: res_partner_markjohnson0}:
+ - membership_state == 'waiting', 'Member should be has "Current Membership State" in "Waiting Member".'
- |
- I check that Invoice is created for this members.
+ I'm Opening that Invoice which is created for "Mark Johnson".
-
!python {model: res.partner}: |
-
+ import netsvc
from tools.translate import _
- invoice_obj = self.pool.get('account.invoice')
- partner_obj = self.pool.get('res.partner')
- product_obj = self.pool.get('product.product')
- invoice_line_obj = self.pool.get('account.invoice.line')
+ invoice_pool = self.pool.get('account.invoice')
+ partner_pool = self.pool.get('res.partner')
+ membership_line_pool = self.pool.get('membership.membership_line')
+ membership_pool = self.pool.get('product.product')
- partner_id = self.browse(cr, uid, ref('res_partner_markjohnson0'))
- inv_ids = invoice_obj.search(cr, uid, [('partner_id', '=', partner_id.id), ('account_id', '=', partner_id.property_account_receivable.id)])
- invoice_id = invoice_obj.browse(cr, uid, inv_ids)[0]
- product = product_obj.browse(cr, uid, ref('product_product_membershipproduct0'), context=context)
- line_ids = invoice_line_obj.search(cr, uid, [('product_id', '=', product.id), ('invoice_id', '=', invoice_id.id)])
-
- assert line_ids, _('Invoices has not been generated for this Member!')
-
+ membership_line_ids = membership_line_pool.search(cr, uid, [('membership_id','=',ref('product_product_membershipproduct0')),('partner','=',ref('res_partner_markjohnson0'))])
+ membership_lines = membership_line_pool.browse(cr, uid, membership_line_ids)
+ assert membership_lines, _('Membership is not registrated.')
+ membership_line = membership_lines[0]
+ wf_service = netsvc.LocalService("workflow")
+ wf_service.trg_validate(uid, 'account.invoice', membership_line.account_invoice_id.id, 'invoice_open', cr)
- |
- I check that the "Current membership state" will remain same untill opening the invoice.
+ I'm checking "Current membership state" of "Mark Johnson". It is an "Invoiced Member" or not.
-
!assert {model: res.partner, id: res_partner_markjohnson0}:
- - membership_state == 'free'
+ - membership_state == 'invoiced', 'Member should be has "Current Membership State" in "Invoiced Member".'
- |
- "Current membership state" of any member depends on the state of invoice.
- So, I check that invoice is in draft state then the "membership state" of a member is "Waiting member".
+ I'm doing to paid that invoice which is opened for "Mark Johnson".
-
- !python {model: membership.membership_line}: |
- partner_obj = self.pool.get('res.partner')
- inv_obj = self.pool.get('account.invoice')
+ !python {model: account.invoice}: |
+
+ from tools.translate import _
+ invoice_pool = self.pool.get('account.invoice')
+ partner_pool = self.pool.get('res.partner')
+ membership_line_pool = self.pool.get('membership.membership_line')
+ membership_pool = self.pool.get('product.product')
+ invoice_pay_pool = self.pool.get('account.invoice.pay')
- partner_id = partner_obj.browse(cr, uid, ref('res_partner_markjohnson0'))
- member_ids = self.search(cr, uid, [('partner', '=', partner_id.id)])
- current_id = self.browse(cr, uid, member_ids)[0]
-
- inv_ids = inv_obj.search(cr, uid, [('partner_id', '=', partner_id.id), ('account_id', '=', partner_id.property_account_receivable.id)])
- inv_id = inv_obj.browse(cr, uid, inv_ids)[0]
- if inv_id.state == 'draft':
- assert current_id.state == 'waiting'
+ membership_line_ids = membership_line_pool.search(cr, uid, [('membership_id','=',ref('product_product_membershipproduct0')),('partner','=',ref('res_partner_markjohnson0'))])
+ membership_lines = membership_line_pool.browse(cr, uid, membership_line_ids)
+ assert membership_lines, _('Membership is not registrated.')
+ membership_line = membership_lines[0]
+ assert membership_line.account_invoice_id.state == 'open', _('Invoice should be Opened.')
+ pay_id = invoice_pay_pool.create(cr, uid, {'amount': 80, 'name': 'Payment of Membership', 'journal_id': ref('account.bank_journal')}, {'active_id': membership_line.account_invoice_id.id})
+ invoice_pay_pool.pay_and_reconcile(cr, uid, [pay_id], {'active_id': membership_line.account_invoice_id.id})
- |
- When the invoice is in open state it become Invoiced Member, When the invoice is in paid state the same "Current membership state" changed to Paid Member.
- Now, If we cancel the invoice "Current membership state" changed to Cancel Member.
-
-
\ No newline at end of file
+ I'm checking "Current membership state" of "Mark Johnson". It is an "Paid Member" or not.
+-
+ !assert {model: res.partner, id: res_partner_markjohnson0}:
+ - membership_state == 'paid', 'Member should be has "Current Membership State" in "Paid Member".'
+
+- |
+ I'm creating free member "Ms. Johnson" of "Golden Membership".
+-
+ !record {model: res.partner, id: res_partner_msjohnson0}:
+ address:
+ - city: paris
+ country_id: base.fr
+ name: Ms. Johnson
+ street: 1 rue Rockfeller
+ type: invoice
+ zip: '75016'
+ name: Ms. Johnson
+ free_member: True
+
+- |
+ I'm checking "Current membership state" of "Ms. Johnson". It is an "Free Member" or not.
+-
+ !assert {model: res.partner, id: res_partner_msjohnson0}:
+ - membership_state == 'free', 'Member should be has "Current Membership State" in "Free Member".'
+
+- |
+ I'm set "Mark Johnson" as a associated member of "Ms. Johnson" and also set Non free member.
+-
+ !python {model: res.partner}: |
+ self.write(cr, uid, [ref("res_partner_msjohnson0")], {'free_member': False, 'associate_member': ref("res_partner_markjohnson0")})
+
+- |
+ I'm checking "Current membership state" of "Ms. Johnson". It is an "Paid Member" or not.
+-
+ !assert {model: res.partner, id: res_partner_msjohnson0}:
+ - membership_state == 'paid', 'Member should be has "Current Membership State" in "Paid Member".'
+
+- |
+ I'm creating new "Silver Membership" which has Membership fee 50 EURO and It's started from 1st June to 31st Dec.
+-
+ !record {model: product.product, id: product_product_membershipproduct1}:
+ categ_id: product.cat1
+ membership: 1
+ membership_date_from: '2010-06-01'
+ membership_date_to: '2010-12-31'
+ name: Silver Membership
+ type: service
+ list_price: 50.00
+- |
+ I'm making invoice of "Mark Johnson" member on joining new membership "Silver Membership".
+-
+ !python {model: res.partner}: |
+ self.create_membership_invoice(cr, uid, [ref("res_partner_markjohnson0")], product_id=ref("product_product_membershipproduct1"), datas={"amount":50.00})
+- |
+ I'm checking "Current membership state" of "Mark Johnson". It is an "Old Member" or not.
+-
+ !assert {model: res.partner, id: res_partner_markjohnson0}:
+ - membership_state == 'old', 'Member should be has "Current Membership State" in "Old Member".'
+- |
+ I'm doing to make credit note of invoice which is paid by "Mark Johnson" to cancel membership.
+-
+ !python {model: account.invoice}: |
+ from tools.translate import _
+ invoice_pool = self.pool.get('account.invoice')
+ partner_pool = self.pool.get('res.partner')
+ membership_line_pool = self.pool.get('membership.membership_line')
+ membership_pool = self.pool.get('product.product')
+ invoice_refund_pool = self.pool.get('account.invoice.refund')
+
+ membership_line_ids = membership_line_pool.search(cr, uid, [('membership_id','=',ref('product_product_membershipproduct0')),('partner','=',ref('res_partner_markjohnson0'))])
+ membership_lines = membership_line_pool.browse(cr, uid, membership_line_ids)
+ assert membership_lines, _('Membership is not registrated.')
+ membership_line = membership_lines[0]
+ refund_id = invoice_refund_pool.create(cr, uid, {'description': 'Refund of Membership'}, {'active_id': membership_line.account_invoice_id.id})
+ invoice_refund_pool.invoice_refund(cr, uid, [refund_id], {'active_id': membership_line.account_invoice_id.id, 'active_ids': [membership_line.account_invoice_id.id]})
+- |
+ I'm checking "Current membership state" of "Mark Johnson". It is an "Cancelled Member" or not.
+-
+ !assert {model: res.partner, id: res_partner_markjohnson0}:
+ - membership_state == 'canceled', 'Member should be has "Current Membership State" in "Cancelled Member".'
+
diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py
index 5fc5456ee9a..2a282882099 100644
--- a/addons/mrp/__openerp__.py
+++ b/addons/mrp/__openerp__.py
@@ -72,7 +72,6 @@
'wizard/mrp_change_standard_price_view.xml',
# 'wizard/mrp_track_prod_view.xml',
'mrp_view.xml',
- 'mrp_wizard.xml',
'mrp_report.xml',
'company_view.xml',
'process/stockable_product_process.xml',
diff --git a/addons/mrp/board_manufacturing_view.xml b/addons/mrp/board_manufacturing_view.xml
index 4f62030999c..2c0182bb704 100644
--- a/addons/mrp/board_manufacturing_view.xml
+++ b/addons/mrp/board_manufacturing_view.xml
@@ -35,7 +35,7 @@
-
','view')],
help="Complete this only if you want automatic analytic accounting entries on production orders."),
- 'costs_cycle': fields.float('Cost per cycle'),
+ 'costs_cycle': fields.float('Cost per cycle', help="Specify Cost of Workcenter per cycle."),
'costs_cycle_account_id': fields.many2one('account.analytic.account', 'Cycle Account', domain=[('type','<>','view')],
help="Complete this only if you want automatic analytic accounting entries on production orders."),
'costs_journal_id': fields.many2one('account.analytic.journal', 'Analytic Journal'),
@@ -208,7 +208,7 @@ class mrp_bom(osv.osv):
'active': lambda *a: 1,
'product_efficiency': lambda *a: 1.0,
'product_qty': lambda *a: 1.0,
- 'product_rounding': lambda *a: 1.0,
+ 'product_rounding': lambda *a: 0.0,
'type': lambda *a: 'normal',
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.bom', context=c),
}
@@ -269,11 +269,11 @@ class mrp_bom(osv.osv):
max_prop = prop
return result
- def _bom_explode(self, cr, uid, bom, factor, properties, addthis=False, level=0):
+ def _bom_explode(self, cr, uid, bom, factor, properties=[], addthis=False, level=0):
""" Finds Products and Workcenters for related BoM for manufacturing order.
@param bom: BoM of particular product.
@param factor: Factor of product UoM.
- @param properties: A dictionary for contextual values.
+ @param properties: A List of properties Ids.
@param addthis: If BoM found then True else False.
@param level: Depth level to find BoM lines starts from 10.
@return: result: List of dictionaries containing product details.
@@ -635,13 +635,11 @@ class mrp_production(osv.osv):
move_obj.write(cr, uid, [production.move_prod_id.id],
{'location_id': production.location_dest_id.id})
- message = ("%s %s %s %s %s %s") % (
- _('Manufacturing Order '),
- name,
- _("scheduled the"),
- datetime.strptime(production.date_planned,'%Y-%m-%d %H:%M:%S').strftime('%Y-%m-%d'),
- _("for"),
- production.product_id.name)
+ message = ("Manufacturing Order '%s' for %s %s is Ready to produce.") % (
+ name,
+ production.product_qty,
+ production.product_id.name,
+ )
self.log(cr, uid, production_id, message)
return True
@@ -740,7 +738,8 @@ class mrp_production(osv.osv):
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr)
- message = _('Manufacturing order ') + " '" + production.name + "' "+ _("is finished.")
+ for (id, name) in self.pool.get('product.product').name_get(cr, uid, [production.product_id.id]):
+ message = str(production_qty) + ' ' + production.product_uom.name +" '" + name + _("' have been manufactured for ") + production.name
self.log(cr, uid, production_id, message)
return True
@@ -910,7 +909,16 @@ class mrp_production(osv.osv):
proc_ids.append(proc_id)
wf_service.trg_validate(uid, 'stock.picking', picking_id, 'button_confirm', cr)
self.write(cr, uid, [production.id], {'picking_id': picking_id, 'move_lines': [(6,0,moves)], 'state':'confirmed'})
- message = _('Manufacturing order ') + " '" + production.name + "' "+ _("is confirmed.")
+ message = ("%s '%s' %s %s %s %s %s %s.") % (
+ _('Manufacturing Order'),
+ production.name,
+ _('for'),
+ production.product_qty,
+ production.product_id.name,
+ _('scheduled for date '),
+ datetime.strptime(production.date_planned,'%Y-%m-%d %H:%M:%S').strftime('%Y-%m-%d'),
+ _('is waiting')
+ )
self.log(cr, uid, production.id, message)
return picking_id
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index 9d645a17095..ca003b33daa 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -155,10 +155,10 @@
-
+
-
-
+
+
@@ -204,6 +204,7 @@
form
+ Work Centers are units of manufacture consisting of one or several people and/or machines that can be considered as a unit for the purposes of forecasting capacity and planning.
@@ -299,8 +301,8 @@
-
+
@@ -314,8 +316,8 @@
-
+
@@ -398,6 +400,7 @@
form
[('bom_id','=',False)]
+ Master Bills of Materials are documents that describe the list of raw materials used to make a finished product. You can generate documents for a product manufacturing (defining each manufacturing step) or you could define a single multi-level bill of materials.
Bill of Material Components
@@ -405,6 +408,7 @@
mrp.bom
form
[('bom_id','!=',False)]
+ Bills of materials Components are components and sub-product used to create master bills of materials.
@@ -762,6 +766,7 @@
{'search_default_Current':1}
+ Manufacturing Orders describe the operations that need to be carried out and the raw materials usage for each stage of production. You use specifications (bills of materials) to work out the raw material requirements and the manufacturing orders needed for the finished products. Once the bills of materials have been defined, Open ERP becomes capable of automatically deciding on the manufacturing route depending on the needs of the company.
@@ -772,6 +777,7 @@
form
gantt,tree,form,calendar,graph
[('state','in',('ready','confirmed','in_production'))]
+ Manufacturing Orders describe the operations that need to be carried out and the raw materials usage for each stage of production. You use specifications (bills of materials or BoM) to work out the raw material requirements and the manufacturing orders needed for the finished products. Once the bills of materials have been defined, Open ERP becomes capable of automatically deciding on the manufacturing route depending on the needs of the company.
diff --git a/addons/mrp/mrp_wizard.xml b/addons/mrp/mrp_wizard.xml
deleted file mode 100644
index f7bfdcd7395..00000000000
--- a/addons/mrp/mrp_wizard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/addons/mrp/report/mrp_production_order_view.xml b/addons/mrp/report/mrp_production_order_view.xml
index 8172c61e84f..18dc07e4b78 100644
--- a/addons/mrp/report/mrp_production_order_view.xml
+++ b/addons/mrp/report/mrp_production_order_view.xml
@@ -109,8 +109,7 @@
tree,graph
- {'search_default_Product': 1,'search_default_month':1,'group_by_no_leaf':1,'group_by':[]}
-
+ {'search_default_Product': 1,'search_default_month':1,'group_by_no_leaf':1,'group_by':[]}
diff --git a/addons/mrp/report/mrp_report_view.xml b/addons/mrp/report/mrp_report_view.xml
index cf66f93f0e4..5f28f2ce6f4 100644
--- a/addons/mrp/report/mrp_report_view.xml
+++ b/addons/mrp/report/mrp_report_view.xml
@@ -49,6 +49,7 @@
report.workcenter.load
form
graph,tree
+ Work Center Load is a projection of load in a work center given a period. The load is express in hour and cycle (for machines).
@@ -100,6 +101,7 @@
report.mrp.inout
form
graph,tree
+ Weekly Stock Value Variation enables you to track stock value evolution as a result of manufacturing activities (consumption of raw materials, production of finished goods, added accounting value of stock by the creation of value following the transformation of products).
diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py
index 0a6a21de971..ca8e9b9c0b7 100644
--- a/addons/mrp/report/price.py
+++ b/addons/mrp/report/price.py
@@ -31,75 +31,68 @@ from tools.translate import _
class report_custom(report_rml):
def create_xml(self, cr, uid, ids, datas, context={}):
number = (datas.get('form', False) and datas['form']['number']) or 1
-
- def process_bom(bom, currency_id):
+ pool = pooler.get_pool(cr.dbname)
+ product_pool = pool.get('product.product')
+ product_uom_pool = pool.get('product.uom')
+ supplier_info_pool = pool.get('product.supplierinfo')
+ workcenter_pool = pool.get('mrp.workcenter')
+ user_pool = pool.get('res.users')
+ bom_pool = pool.get('mrp.bom')
+ def process_bom(bom, currency_id, factor=1):
xml = ''
sum = 0
sum_strd = 0
- prod = pooler.get_pool(cr.dbname).get('product.product').browse(cr, uid, bom['product_id'])
+ prod = product_pool.browse(cr, uid, bom['product_id'])
prod_name = bom['name']
- prod_qtty = bom['product_qty']
- prod_uom = prod.uom_id.name
+ prod_qtty = factor * bom['product_qty']
+ product_uom = product_uom_pool.browse(cr, uid, bom['product_uom'], context=context)
level = 1
- main_sp_price = ''
- main_sp_name = ''
- main_strd_price = ''
- main_strd_price = ''
- if prod.seller_ids and prod.seller_ids[0] :
- main_sp_name = '' + prod.seller_ids[0].name.name + ' \r\n'
- pricelist_id = prod.seller_ids[0].name.property_product_pricelist_purchase.id
- if pricelist_id:
- pricelist_obj = pooler.get_pool(cr.dbname).get('product.pricelist')
- price = pricelist_obj.price_get(cr,uid,[pricelist_id], prod.id, number*prod_qtty or 1.0).setdefault(pricelist_id, 0)
- price = pooler.get_pool(cr.dbname).get('res.currency').compute(cr, uid, pricelist_obj.browse(cr, uid, pricelist_id).currency_id.id, currency_id, price)
- else:
- price = 0
- main_sp_price = '%.2f' % price + '\r\n'
+ main_sp_price, main_sp_name , main_strd_price = '','',''
+ sellers, sellers_price = '',''
+
+ if prod.seller_id:
+ main_sp_name = "%s \r\n" %(prod.seller_id.name)
+ price = supplier_info_pool.price_get(cr, uid, prod.seller_id.id, prod.id, number*prod_qtty)[prod.seller_id.id]
+ price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
+ main_sp_price = '%s \r\n' %(str(price))
sum += prod_qtty*price
+ std_price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, prod.standard_price, to_uom_id=product_uom.id)
+ main_strd_price = str(std_price) + '\r\n'
+ sum_strd = prod_qtty*std_price
- main_strd_price = '%.2f' % prod.standard_price + '\r\n'
- sum_strd = prod_qtty*prod.standard_price
-
- sellers = ''
- sellers_price = ''
for seller_id in prod.seller_ids:
sellers += '- '+ seller_id.name.name +' \r\n'
- pricelist_id = seller_id.name.property_product_pricelist_purchase.id
- if pricelist_id:
- pricelist_obj = pooler.get_pool(cr.dbname).get('product.pricelist')
- price = pricelist_obj.price_get(cr,uid,[pricelist_id], prod.id, number*prod_qtty or 1.0).setdefault(pricelist_id, 0)
- price = pooler.get_pool(cr.dbname).get('res.currency').compute(cr, uid, pricelist_obj.browse(cr, uid, pricelist_id).currency_id.id, currency_id, price)
- else:
- price = 0
- sellers_price += '%.2f' % price + '\r\n'
+ price = supplier_info_pool.price_get(cr, uid, seller_id.name.id, prod.id, number*prod_qtty)[seller_id.name.id]
+ price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
+ sellers_price += '' + str(price) + ' \r\n'
xml += " " + prod_name + ''
- xml += " " + main_sp_name + sellers + ''
+ xml += " " + main_sp_name + sellers + ''
xml += " " + str(prod_qtty) + ''
- xml += " " + prod_uom + ''
+ xml += " " + product_uom.name + ''
xml += " " + main_strd_price + ''
- xml += " " + main_sp_price + sellers_price + ''
+ xml += " " + main_sp_price + sellers_price + ''
xml += '
'
return xml, sum, sum_strd
def process_workcenter(wrk):
+ workcenter = workcenter_pool.browse(cr, uid, wrk['workcenter_id'])
+ cost_cycle = wrk['cycle']*workcenter.costs_cycle
+ cost_hour = wrk['hour']*workcenter.costs_hour
+ total = cost_cycle + cost_hour
xml = ''
-
- workcenter = pooler.get_pool(cr.dbname).get('mrp.workcenter').browse(cr, uid, wrk['workcenter_id'])
-
- xml += " " + wrk['name'] + ''
- xml += " " + ''
- xml += " " + ''
+ xml += " " + workcenter.name + ''
xml += " "
- xml += " " + str(wrk['cycle']*workcenter.costs_cycle) + ''
- xml += " " + str(wrk['hour']*workcenter.costs_hour) + ''
-
-
+ xml += " "
+ xml += " " + str(cost_cycle) + ''
+ xml += " " + str(cost_hour) + ''
+ xml += " " + str(cost_hour + cost_cycle) + ''
xml += '
'
- return xml, wrk['cycle']*workcenter.costs_cycle+wrk['hour']*workcenter.costs_hour
+
+ return xml, total
xml = ''
@@ -115,30 +108,20 @@ class report_custom(report_rml):
Generated by Open ERP
"""
- header = """
-
- %s
- %s
- %s
- %s
- %s
- %s
-
- """ % (_('Product name'), _('Product supplier'), _('Product quantity'), _('Product uom'), _('Product Standard Price'), _('Unit Product Price'))
+
workcenter_header = """
%s
-
+ %s
%s
%s
- """ % (_('Work Center name'), _('Cycles Cost'), _('Total hourly costs'))
+ """ % (_('Work Center name'), _('Cycles Cost'), _('Hourly Cost'),_('Work Cost'))
prod_header = """
-
%s
%s
@@ -147,32 +130,62 @@ class report_custom(report_rml):
%s
%s
-
- """ % (_('Product name'), _('Product supplier'), _('Product Quantity'), _('Product uom'), _('Product Standard Price'), _('Unit Product Price'))
+ """ % (_('Componet'), _('Componet suppliers'), _('Quantity'), _('Uom'), _('Cost Unit Price per Uom'), _('Supplier Unit Price per Uom'))
- company_currency = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, uid).company_id.currency_id.id
- first = True
- for prod_id in ids:
- bom_ids = pooler.get_pool(cr.dbname).get('mrp.bom').search(cr, uid, [('product_id','=',prod_id)])
- prod = pooler.get_pool(cr.dbname).get('product.product').browse(cr, uid, prod_id)
-
- for bom_id in bom_ids:
- bom = pooler.get_pool(cr.dbname).get('mrp.bom').browse(cr, uid, bom_id)
-
- sub_boms = pooler.get_pool(cr.dbname).get('mrp.bom')._bom_explode(cr, uid, bom, number, [])
+ company_currency = user_pool.browse(cr, uid, uid).company_id.currency_id.id
+ for product in product_pool.browse(cr, uid, ids, context=context):
+ bom_id = bom_pool._bom_find(cr, uid, product.id, product.uom_id.id)
+ title = "%s " %(_("Cost Structure"))
+ title += "%s " %product.name
+ xml += "" + title + prod_header + " "
+ if not bom_id:
+ total_strd = number * product.standard_price
+ total = number * product_pool.price_get(cr, uid, [product.id], 'standard_price')[product.id]
+ xml += """
+ -
+ -
+ -
+ -
+ -
+ -
+
"""
+ xml += """
+ %s %s %s %s :
+
+
+
+ %s
+ %s
+
'"""%(_('Total Cost'), _('of'), str(number), product.uom_id.name, str(total_strd), str(total))
+ else:
+ bom = bom_pool.browse(cr, uid, bom_id, context=context)
+ factor = number * product.uom_id.factor / bom.product_uom.factor
+ sub_boms = bom_pool._bom_explode(cr, uid, bom, factor / bom.product_qty)
total = 0
total_strd = 0
- parent_bom = {'product_qty': bom.product_qty, 'name': bom.product_id.name, 'product_uom': bom.product_id.uom_id.factor, 'product_id': bom.product_id.id}
+ parent_bom = {
+ 'product_qty': bom.product_qty,
+ 'name': bom.product_id.name,
+ 'product_uom': bom.product_uom.id,
+ 'product_id': bom.product_id.id
+ }
xml_tmp = ''
for sub_bom in (sub_boms and sub_boms[0]) or [parent_bom]:
txt, sum, sum_strd = process_bom(sub_bom, company_currency)
xml_tmp += txt
total += sum
total_strd += sum_strd
- if not first:
- xml += prod_header
+
xml += "" + xml_tmp + ' '
- xml += " %s : (" % (_('SUBTOTAL')) + str(number) + " %s) " % (_('products')) + '%.2f' % total_strd + ' ' + '%.2f' % total + '|
'
+ xml += """
+ %s %s %s %s :
+
+
+
+ %s
+ %s
+
'"""%(_('Cost'), _('of'), str(number), product.uom_id.name, str(total_strd), str(total))
+
total2 = 0
xml_tmp = ''
for wrk in (sub_boms and sub_boms[1]):
@@ -182,13 +195,24 @@ class report_custom(report_rml):
if xml_tmp:
xml += workcenter_header
xml += "" + xml_tmp + ' '
- xml += " %s : (" % (_('SUBTOTAL')) + str(number) + " %s) " % (_('products')) + '%.2f' % total2 + '|
'
- xml += " %s : (" % (_('TOTAL')) + str(number) + " %s) " % (_('products')) + '%.2f' % (total_strd+total2) + " " + '%.2f' % (total+total2) + '|
'
-
- first = False
-
- xml = '' + config_start + '%s\n\r' % (_('Product Cost Structure')) + prod.name + ' '+ config_stop + header + xml + ' '
+ xml += """
+ %s %s %s %s :
+
+
+
+
+ %s
+
'"""%(_('Work Cost'), _('of'), str(number), product.uom_id.name, str(total2))
+ xml += """
+ %s %s %s %s :
+
+
+
+ %s
+ %s
+
'"""%(_('Total Cost'), _('of'), str(number), product.uom_id.name, str(total_strd+total2), str(total+total2))
+ xml = '' + config_start + config_stop + xml + ' '
return xml
report_custom('report.product.price', 'product.product', '', 'addons/mrp/report/price.xsl')
diff --git a/addons/mrp/report/price.xsl b/addons/mrp/report/price.xsl
index 9f7dcf92fd8..10e088629e0 100644
--- a/addons/mrp/report/price.xsl
+++ b/addons/mrp/report/price.xsl
@@ -43,13 +43,6 @@
-
-
-
-
-
-
-
@@ -82,6 +75,7 @@
+
diff --git a/addons/mrp/test/mrp_phantom_bom.yml b/addons/mrp/test/mrp_phantom_bom.yml
index 703e5f1bb40..bd1a5cbdec0 100644
--- a/addons/mrp/test/mrp_phantom_bom.yml
+++ b/addons/mrp/test/mrp_phantom_bom.yml
@@ -33,7 +33,8 @@
seller_ids:
- delay: 1
name: base.res_partner_asus
- qty: 1.0
+ min_qty: 1.0
+ product_uom: product_uom_litre0
supply_method: buy
type: product
uom_id: product.product_uom_kgm
@@ -51,7 +52,8 @@
seller_ids:
- delay: 1
name: base.res_partner_desertic_hispafuentes
- qty: 2.0
+ min_qty: 2.0
+ product_uom: product.product_uom_kgm
supply_method: buy
type: product
uom_id: product.product_uom_kgm
diff --git a/addons/mrp/wizard/mrp_price.py b/addons/mrp/wizard/mrp_price.py
index 55393a4371c..17cf9c53654 100644
--- a/addons/mrp/wizard/mrp_price.py
+++ b/addons/mrp/wizard/mrp_price.py
@@ -25,7 +25,10 @@ class mrp_price(osv.osv_memory):
_name = 'mrp.product_price'
_description = 'Product Price'
_columns = {
- 'number': fields.integer('Number of products to produce', required=True),
+ 'number': fields.integer('Quantity', required=True, help="Specify quantity of products to produce or buy. Report of Cost structure will be displayed base on this qunatity."),
+ }
+ _defaults = {
+ 'number': 1,
}
def print_report(self, cr, uid, ids, context=None):
diff --git a/addons/mrp/wizard/mrp_price_view.xml b/addons/mrp/wizard/mrp_price_view.xml
index 524e1c73c2f..758d0bc5415 100644
--- a/addons/mrp/wizard/mrp_price_view.xml
+++ b/addons/mrp/wizard/mrp_price_view.xml
@@ -9,14 +9,16 @@
mrp.product_price
form
-
+
+
+
+ colspan="1" type="object" icon="gtk-print" />
diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml
index 5c626b24814..bff88946ead 100644
--- a/addons/mrp_operations/mrp_operations_view.xml
+++ b/addons/mrp_operations/mrp_operations_view.xml
@@ -194,6 +194,7 @@
form
tree,form,gantt,calendar,graph
+ Work Orders are manufacturing operations required to produce or assemble products. The different work orders will have different impacts on the costs of manufacture and planning depending on the available workload.
@@ -203,6 +204,7 @@
form
[('production_state','in',('ready','confirmed','in_production'))]
tree,form,graph,calendar
+ To manufacture or assemble products, as well as using raw materials and finished product you must also handle manufacturing operations. Manufacturing operations are often called work orders. The different operations will have different impacts on the costs of manufacture and planning depending on the available workload.
diff --git a/addons/multi_company/i18n/es.po b/addons/multi_company/i18n/es.po
index 33cdaa06043..54da6b62445 100644
--- a/addons/multi_company/i18n/es.po
+++ b/addons/multi_company/i18n/es.po
@@ -8,13 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-12-08 11:46+0000\n"
-"PO-Revision-Date: 2010-03-07 17:36+0000\n"
-"Last-Translator: Edgardo Ramos Roque \n"
+"PO-Revision-Date: 2010-07-23 19:00+0000\n"
+"Last-Translator: Jordi Esteve (www.zikzakmedia.com) "
+"\n"
"Language-Team: Spanish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-22 04:20+0000\n"
+"X-Launchpad-Export-Date: 2010-07-24 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: multi_company
@@ -46,7 +47,7 @@ msgstr "El IVA no parece ser correcto"
#. module: multi_company
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr "Nombre de modelo inválido en la definición de la acción"
+msgstr "Nombre de modelo no válido en la definición de la acción."
#. module: multi_company
#: model:res.company,overdue_msg:multi_company.res_company_odoo
diff --git a/addons/olap/data/olap_cube_view.xml b/addons/olap/data/olap_cube_view.xml
index a93f59c2759..706f9093b3f 100644
--- a/addons/olap/data/olap_cube_view.xml
+++ b/addons/olap/data/olap_cube_view.xml
@@ -83,7 +83,7 @@
-
+
diff --git a/addons/olap/i18n/pl.po b/addons/olap/i18n/pl.po
index d71b7f0aac4..32018b0455d 100644
--- a/addons/olap/i18n/pl.po
+++ b/addons/olap/i18n/pl.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-26 05:24+0000\n"
-"PO-Revision-Date: 2010-03-29 19:04+0000\n"
+"PO-Revision-Date: 2010-07-26 15:08+0000\n"
"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
"Language-Team: Polish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-22 04:20+0000\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: olap
@@ -28,7 +28,7 @@ msgstr "Ukryj"
#: model:ir.ui.menu,name:olap.menu_action_olap_saved_query_form
#: view:olap.saved.query:0
msgid "Olap Saved Query"
-msgstr ""
+msgstr "Zapisane zapytanie OLAP"
#. module: olap
#: field:olap.query.logs,time:0
@@ -39,12 +39,12 @@ msgstr "Czas"
#. module: olap
#: view:bi.auto.configure.wizard:0
msgid "Auto Configure Structure"
-msgstr ""
+msgstr "Struktura autokonfiguracji"
#. module: olap
#: view:olap.fact.database:0
msgid "Olap fact database"
-msgstr ""
+msgstr "Baza faktów OLAP"
#. module: olap
#: help:olap.measure,value_sql:0
@@ -57,7 +57,7 @@ msgstr ""
#. module: olap
#: field:olap.cube.table,schema_id:0
msgid "Schema id"
-msgstr ""
+msgstr "ID schematu"
#. module: olap
#: field:olap.schema,database_id:0
@@ -265,7 +265,7 @@ msgstr "Autokonfiguracja"
#. module: olap
#: field:olap.schema,note:0
msgid "Schema description"
-msgstr ""
+msgstr "Opis schematu"
#. module: olap
#: model:ir.actions.act_window,name:olap.act_bi_load_db_wizard
@@ -296,17 +296,17 @@ msgstr "Baza danych faktów OLAP"
#. module: olap
#: view:bi.auto.configure.wizard:0
msgid "Auto Congifuring Tables"
-msgstr ""
+msgstr "Autokonfiguracja tabel"
#. module: olap
#: field:olap.application,name:0
msgid "Application name"
-msgstr ""
+msgstr "Nazwa programu"
#. module: olap
#: field:olap.cube.table,column_link_id:0
msgid "Relational Column"
-msgstr ""
+msgstr "Kolumna relacyjna"
#. module: olap
#: field:olap.level,type:0
@@ -316,12 +316,12 @@ msgstr ""
#. module: olap
#: field:olap.cube,name:0
msgid "Cube name"
-msgstr ""
+msgstr "Nazwa kostki"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_view_olap_application_table_form
msgid "Olap Applicatiion Table"
-msgstr ""
+msgstr "Tabela aplikacji OLAP"
#. module: olap
#: model:ir.model,name:olap.model_olap_saved_query
@@ -331,23 +331,23 @@ msgstr ""
#. module: olap
#: field:olap.level,column_name:0
msgid "Columns Name"
-msgstr ""
+msgstr "Nazwa kolumn"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_hierarchy_form
msgid "Olap Hierarchies"
-msgstr ""
+msgstr "Hierarchie OLAP"
#. module: olap
#: field:olap.schema,ready:0
msgid "Ready"
-msgstr ""
+msgstr "Gotowe"
#. module: olap
#: selection:olap.measure,measure_type:0
#: field:olap.measure,value_column:0
msgid "Fact Table Column"
-msgstr ""
+msgstr "Kolumna tabeli faktów"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_database_tables_form
@@ -355,66 +355,66 @@ msgstr ""
#: view:olap.fact.database:0
#: field:olap.fact.database,table_ids:0
msgid "Tables"
-msgstr ""
+msgstr "Tabele"
#. module: olap
#: model:ir.model,name:olap.model_olap_application
msgid "Olap application"
-msgstr ""
+msgstr "Aplikacja OLAP"
#. module: olap
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nieprawidłowa nazwa modelu w definicji akcji."
#. module: olap
#: selection:olap.schema,state:0
msgid "Schema is ready to use"
-msgstr ""
+msgstr "Schemat gotowy do zastosowania"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_designer_url
msgid "Cube Designer"
-msgstr ""
+msgstr "Projektant kostek"
#. module: olap
#: field:olap.fact.database,db_login:0
msgid "Database login"
-msgstr ""
+msgstr "Login bazy danych"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_application_table_form
msgid "Application Table"
-msgstr ""
+msgstr "Tabela aplikacji"
#. module: olap
#: wizard_view:olap.query.logs.clear,info:0
#: wizard_view:olap.query.logs.clear,ok:0
msgid "Logs Cleared successfully"
-msgstr ""
+msgstr "Logi skasowane"
#. module: olap
#: model:ir.model,name:olap.model_olap_schema
#: model:ir.ui.menu,name:olap.menu_action_olap_schema_form
#: view:olap.schema:0
msgid "Olap Schema"
-msgstr ""
+msgstr "Schemat OLAP"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_application_form
msgid "Application"
-msgstr ""
+msgstr "Aplikacja"
#. module: olap
#: wizard_field:olap.query_builder,exec,mdx_query_output:0
#: wizard_field:olap.query_builder,ok,mdx_query_output:0
msgid "MDX Query Output"
-msgstr ""
+msgstr "Rezultat zapytania MDX"
#. module: olap
#: field:olap.hierarchy,primary_key_table:0
msgid "Primary key table"
-msgstr ""
+msgstr "Tabela kluczy podstawowych"
#. module: olap
#: help:olap.measure,table_name:0
@@ -422,42 +422,44 @@ msgid ""
"The name of the table on which the column is defined. If False, take the "
"table from the cube."
msgstr ""
+"Nazwa tabeli, na podstawie której zdefiniowano kolumnę. Jeśli brak, to "
+"zostanie pobrana tabela z kostki."
#. module: olap
#: view:olap.warehouse.wizard:0
msgid "Warehouse"
-msgstr ""
+msgstr "Magazyn"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_dimension_form
msgid "Olap Dimensions"
-msgstr ""
+msgstr "Wymiary OLAP"
#. module: olap
#: field:olap.query.logs,user_id:0
msgid "Tiny ERP User"
-msgstr ""
+msgstr "Użytkownik OpenERP"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_application_configuration
msgid "Configure from Application"
-msgstr ""
+msgstr "Konfiguruj z aplikacji"
#. module: olap
#: field:olap.fact.database,db_port:0
msgid "Database port"
-msgstr ""
+msgstr "Przeniesienie bazy danych"
#. module: olap
#: help:olap.parameters.config.wizard,host_port:0
msgid ""
"Put the port for the server. Put 8080 if its not clear."
-msgstr ""
+msgstr "Wstaw port serwera. Wpisz 8080, jeśli nie wiesz nic o porcie."
#. module: olap
#: selection:olap.schema,state:0
msgid "The Structure is Loaded"
-msgstr ""
+msgstr "Załadowano strukturę"
#. module: olap
#: field:olap.dimension,cube_id:0
@@ -465,48 +467,48 @@ msgstr ""
#: field:olap.query.logs,cube_id:0
#: field:olap.saved.query,cube_id:0
msgid "Cube"
-msgstr ""
+msgstr "Kostka"
#. module: olap
#: field:olap.cube.table,available_table_ids:0
msgid "Available Tables"
-msgstr ""
+msgstr "Dostępne tabele"
#. module: olap
#: view:olap.schema:0
msgid "Configure Manually"
-msgstr ""
+msgstr "Konfiguruj ręcznie"
#. module: olap
#: field:olap.database.columns,related_to:0
msgid "Related To"
-msgstr ""
+msgstr "Powiązane z"
#. module: olap
#: view:olap.database.columns:0
#: view:olap.database.tables:0
msgid "Olap database columns"
-msgstr ""
+msgstr "Kolumny bazy danych OLAP"
#. module: olap
#: field:olap.cube.table.line,field_id:0
msgid "Link Field"
-msgstr ""
+msgstr "Pole łaczące"
#. module: olap
#: view:olap.schema:0
msgid "Mark as Configured"
-msgstr ""
+msgstr "Oznacz jako skonfigurowane"
#. module: olap
#: view:olap.application.field:0
msgid "Olap Application Field"
-msgstr ""
+msgstr "Pole aplikacji OLAP"
#. module: olap
#: selection:olap.measure,formatstring:0
msgid "Comma Seperator (0,000)"
-msgstr ""
+msgstr "Separataor dziesiętny (0,000)"
#. module: olap
#: field:olap.measure,agregator:0
@@ -516,17 +518,17 @@ msgstr ""
#. module: olap
#: wizard_view:olap.application.configuration,configure:0
msgid "Your database structure (Open ERP) has been sucessfully configured."
-msgstr ""
+msgstr "Twoja struktura bazy danych (OpenERP) została skonfigurowana."
#. module: olap
#: model:ir.ui.menu,name:olap.menu_bi_configuration
msgid "Configuration"
-msgstr ""
+msgstr "Konfiguracja"
#. module: olap
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "Niewłaściwy XML dla architektury widoku!"
#. module: olap
#: help:olap.parameters.config.wizard,host_name:0
@@ -534,26 +536,27 @@ msgid ""
"Put here the server address or IP Put localhost if its not "
"clear."
msgstr ""
+"Wprowadź adres IP serwera lub wpisz localhost, jeśli nie wiesz o co chodzi."
#. module: olap
#: view:olap.database.tables:0
msgid "Database tables"
-msgstr ""
+msgstr "Tabele bazy danych"
#. module: olap
#: view:olap.schema:0
msgid "Reload Structure"
-msgstr ""
+msgstr "Przeładuj strukturę"
#. module: olap
#: wizard_view:olap.application.configuration,init:0
msgid "This will Auto Configure Application"
-msgstr ""
+msgstr "To automatycznie skonfiguruje aplikację"
#. module: olap
#: view:bi.load.db.wizard:0
msgid "Load Data Structure"
-msgstr ""
+msgstr "Załaduj strukturę danych"
#. module: olap
#: view:bi.auto.configure.wizard:0
@@ -565,7 +568,7 @@ msgstr ""
#: wizard_button:olap.query_builder,exec,end:0
#: wizard_button:olap.query_builder,ok,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Anuluj"
#. module: olap
#: view:bi.load.db.wizard:0
@@ -574,40 +577,43 @@ msgid ""
"tables and columns to simplify end-users interface. The following database "
"will be loaded:"
msgstr ""
+"Po załadowaniu struktury, będziesz mógł ukryć/pokazać lub przemianować "
+"tabele lub kolumny, aby uprościć interfejs użytkownika. Następujące bazy "
+"danych zostaną załadowane:"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_level_form
#: model:ir.ui.menu,name:olap.menu_action_olap_level_form
#: view:olap.level:0
msgid "Olap Level"
-msgstr ""
+msgstr "Poziom OLAP"
#. module: olap
#: field:olap.fact.database,loaded:0
msgid "Loaded"
-msgstr ""
+msgstr "Wczytane"
#. module: olap
#: help:olap.fact.database,db_name:0
msgid "Name of the database to be used for analysis."
-msgstr ""
+msgstr "Nazwa bazy danych do zastosowania w analizie."
#. module: olap
#: help:olap.fact.database,db_login:0
msgid "Login for the database name specified."
-msgstr ""
+msgstr "Zaloguj się do poanej bazy danych."
#. module: olap
#: field:olap.hierarchy,dimension_id:0
#: wizard_field:olap.query_builder,exec,dimension:0
#: wizard_field:olap.query_builder,ok,dimension:0
msgid "Dimension"
-msgstr ""
+msgstr "Wymiar"
#. module: olap
#: model:ir.model,name:olap.model_olap_application_table
msgid "Olap application table"
-msgstr ""
+msgstr "Tabela aplikacji OLAP"
#. module: olap
#: wizard_view:olap.load.table,init:0
@@ -616,51 +622,53 @@ msgid ""
"so that you will be able to work on it, and specify a better structure "
"according to your reporting needs."
msgstr ""
+"Wczytamy kompletną strukturę bazy danych przez introspekcję. Będziesz mógł "
+"na niej pracować i określić lepszą strukturę w zależności od twoich potrzeb."
#. module: olap
#: field:olap.saved.query,axis_keys:0
msgid "Axis Keys"
-msgstr ""
+msgstr "Klucze osi"
#. module: olap
#: field:olap.cube,query_log:0
msgid "Query Logging"
-msgstr ""
+msgstr "Logowanie zapytań"
#. module: olap
#: field:olap.measure,measure_type:0
msgid "Measure Type"
-msgstr ""
+msgstr "Typ miary"
#. module: olap
#: field:olap.database.tables,fact_database_id:0
msgid "Database Id"
-msgstr ""
+msgstr "ID bazy danych"
#. module: olap
#: help:olap.fact.database,db_host:0
msgid "Give hostname to make connection to the database."
-msgstr ""
+msgstr "Podaj nazwę hosta do połączenia z bazą danych."
#. module: olap
#: field:olap.level,hierarchy_id:0
msgid "Hierarchy"
-msgstr ""
+msgstr "Hierarchia"
#. module: olap
#: selection:olap.schema,state:0
msgid "The Structure is Configured."
-msgstr ""
+msgstr "Skonfigurowano strukturę."
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_schema_form
msgid "Olap Schemas"
-msgstr ""
+msgstr "Schematy OLAP"
#. module: olap
#: field:olap.cube,table_id:0
msgid "Fact table"
-msgstr ""
+msgstr "Tabela faktów"
#. module: olap
#: view:bi.auto.configure.wizard:0
@@ -670,11 +678,14 @@ msgid ""
"comprehend name. You can hides particular data and columns by reconfiguring "
"the structure option."
msgstr ""
+"To automatycznie skonfiguruje aplikację. Pomoże to zwiększyć czytelność "
+"tabel i kolumn przez nadanie prostych nazw. Będziesz mógł ukryć pewne dane "
+"lub kolumny rekonfigurując strukturę."
#. module: olap
#: model:ir.actions.act_window,name:olap.action_view_olap_application_field_form
msgid "Olap Applicatiion Field"
-msgstr ""
+msgstr "Pole aplikacji OLAP"
#. module: olap
#: field:olap.query.logs,query:0
@@ -682,86 +693,86 @@ msgstr ""
#: view:olap.warehouse.wizard:0
#: field:olap.warehouse.wizard,query:0
msgid "Query"
-msgstr ""
+msgstr "Zapytanie"
#. module: olap
#: view:olap.schema:0
msgid "Auto Application Configuration"
-msgstr ""
+msgstr "Automatyczna konfiguracja aplikacji"
#. module: olap
#: selection:olap.measure,formatstring:0
msgid "Postfix Default Currency(0000.00 EUR)"
-msgstr ""
+msgstr "Sufiks domyślnej waluty(0000.00 EUR)"
#. module: olap
#: field:bi.load.db.wizard,db_name:0
#: wizard_field:olap.load.table,init,db_name:0
msgid "Database Name"
-msgstr ""
+msgstr "Nazwa bazy danych"
#. module: olap
#: field:olap.cube,measure_ids:0
msgid "Measures"
-msgstr ""
+msgstr "Miary"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_conf_cube_query_builder
#: wizard_view:olap.query_builder,exec:0
#: wizard_view:olap.query_builder,ok:0
msgid "Query Builder"
-msgstr ""
+msgstr "Kreator zapytań"
#. module: olap
#: field:olap.cube,dimension_ids:0
msgid "Dimensions"
-msgstr ""
+msgstr "Wymiary"
#. module: olap
#: model:ir.model,name:olap.model_olap_cube
#: view:olap.cube:0
msgid "Olap cube"
-msgstr ""
+msgstr "Kostka OLAP"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_warehouse
#: model:ir.model,name:olap.model_olap_warehouse_wizard
#: model:ir.ui.menu,name:olap.menu_bi_warehouse
msgid "Olap Warehouse"
-msgstr ""
+msgstr "Hurtownia OLAP"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_application_field_form
msgid "Application Field"
-msgstr ""
+msgstr "Pole aplikacji"
#. module: olap
#: model:ir.model,name:olap.model_olap_dimension
#: view:olap.dimension:0
msgid "Olap dimension"
-msgstr ""
+msgstr "Wymiar OLAP"
#. module: olap
#: field:olap.application.field,name:0
msgid "Application field name"
-msgstr ""
+msgstr "Nazwa pola aplikacji"
#. module: olap
#: view:olap.fact.database:0
msgid "Connection parameters"
-msgstr ""
+msgstr "Parametry połączenia"
#. module: olap
#: field:bi.auto.configure.wizard,name:0
#: field:bi.load.db.wizard,fact_table:0
#: wizard_field:olap.load.table,init,fact_table:0
msgid "Fact Name"
-msgstr ""
+msgstr "Nazwa faktu"
#. module: olap
#: view:olap.database.columns:0
msgid "Database columns"
-msgstr ""
+msgstr "Kolumny bazy danych"
#. module: olap
#: field:olap.application.table,table_name:0
@@ -769,41 +780,41 @@ msgstr ""
#: field:olap.level,table_name:0
#: field:olap.measure,table_name:0
msgid "Table name"
-msgstr ""
+msgstr "Nazwa tabeli"
#. module: olap
#: help:olap.measure,measure_type:0
msgid "Select between auto column or sql expression for the measures"
-msgstr ""
+msgstr "Wybierz między automatycznymi kolumnami albo wyrażeniem sql dla miar"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_load_column
msgid "Open Columns"
-msgstr ""
+msgstr "Otwórz kolumny"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_database_columns_form
#: field:olap.database.tables,columns:0
msgid "Columns"
-msgstr ""
+msgstr "Kolumny"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_test_connection
#: view:olap.fact.database:0
msgid "Test Connection"
-msgstr ""
+msgstr "Testuj połączenie"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_measure_form
#: model:ir.ui.menu,name:olap.menu_action_olap_measure_form
msgid "Olap Measures"
-msgstr ""
+msgstr "Miary OLAP"
#. module: olap
#: wizard_button:olap.application.configuration,init,configure:0
#: view:olap.parameters.config.wizard:0
msgid "Configure"
-msgstr ""
+msgstr "Konfiguracja"
#. module: olap
#: wizard_view:olap.load.table,init:0
@@ -812,102 +823,107 @@ msgid ""
"rename tables and columns to simplify end-users interface. The following "
"database will be loaded:"
msgstr ""
+"Po wczytaniu struktury będziesz mógł ukryć/pokazać oraz przemianować tabele "
+"lub kolumny, aby uprościć interfejs użytkownika. Następujące bazy danych "
+"zostaną wczytane:"
#. module: olap
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
+"Nazwa obiektu musi zaczynać się od x_ oraz nie może zawierać znaków "
+"specjalnych !"
#. module: olap
#: wizard_field:olap.query_builder,exec,hierarchy:0
#: wizard_field:olap.query_builder,ok,hierarchy:0
msgid "Hiearchy"
-msgstr ""
+msgstr "Hierarchia"
#. module: olap
#: selection:olap.measure,measure_type:0
#: field:olap.measure,value_sql:0
msgid "SQL Expression"
-msgstr ""
+msgstr "Wyrażenie SQL"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_menu_olap_load_table
msgid "Load Tables"
-msgstr ""
+msgstr "Wczytaj tabele"
#. module: olap
#: field:olap.hierarchy,level_ids:0
msgid "Levels"
-msgstr ""
+msgstr "Poziomy"
#. module: olap
#: model:ir.model,name:olap.model_olap_application_field
msgid "Olap application field"
-msgstr ""
+msgstr "Pole aplikacji OALP"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_view_olap_database_columns_form
msgid "Database Columns"
-msgstr ""
+msgstr "Kolumny bazy danych"
#. module: olap
#: field:olap.database.columns,active:0
#: field:olap.database.tables,active:0
msgid "Active"
-msgstr ""
+msgstr "Aktywne"
#. module: olap
#: selection:olap.measure,datatype:0
msgid "Integer"
-msgstr ""
+msgstr "Liczba całkowita"
#. module: olap
#: wizard_view:olap.application.configuration,init:0
msgid " Auto Configure "
-msgstr ""
+msgstr " Autokonfiguracja "
#. module: olap
#: selection:olap.measure,agregator:0
msgid "Sum"
-msgstr ""
+msgstr "Suma"
#. module: olap
#: wizard_field:olap.query.logs.clear,init,user_name:0
#: field:olap.saved.query,user_id:0
msgid "User"
-msgstr ""
+msgstr "Użytkownik"
#. module: olap
#: field:olap.query.logs,count:0
msgid "Count"
-msgstr ""
+msgstr "Licznik"
#. module: olap
#: field:olap.database.tables,name:0
msgid "End-User Name"
-msgstr ""
+msgstr "nazwa użytkownika"
#. module: olap
#: selection:olap.measure,formatstring:0
msgid "Postfix Default Currency with comma seperator (0,000.00 EUR)"
-msgstr ""
+msgstr "Sufiks domyślnej waluty z separatorem dziesiętnym (0,000.00 EUR)"
#. module: olap
#: field:olap.measure,datatype:0
msgid "Datatype"
-msgstr ""
+msgstr "Typ danych"
#. module: olap
#: wizard_button:olap.query_builder,back,ok:0
#: wizard_button:olap.query_builder,init,ok:0
msgid "Fetch Data"
-msgstr ""
+msgstr "Pobierz dane"
#. module: olap
#: selection:olap.measure,formatstring:0
msgid "Prefix Default Currency with comma seperator (EUR 0,000.00)"
-msgstr ""
+msgstr "Prefiks domyślnej waluty z separatorem dziesiętnym (0,000.00 EUR)"
#. module: olap
#: wizard_view:olap.load.table,info:0
@@ -915,12 +931,12 @@ msgstr ""
#: wizard_view:olap.query.logs.clear,info:0
#: wizard_view:olap.query.logs.clear,ok:0
msgid "Load Data"
-msgstr ""
+msgstr "Wczytaj dane"
#. module: olap
#: field:olap.cube,query_ids:0
msgid "Queries"
-msgstr ""
+msgstr "Zapytania"
#. module: olap
#: selection:olap.fact.database,type:0
@@ -932,61 +948,61 @@ msgstr ""
#: model:ir.ui.menu,name:olap.menu_action_olap_cube_form
#: model:ir.ui.menu,name:olap.menu_bi_conf_cubes
msgid "Olap Cubes"
-msgstr ""
+msgstr "Kostki OLAP"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_action_olap_cube_table_form
msgid "Olap Cubes Table"
-msgstr ""
+msgstr "Tabela kostek OLAP"
#. module: olap
#: field:olap.measure,name:0
msgid "Measure name"
-msgstr ""
+msgstr "Nazwa miary"
#. module: olap
#: selection:olap.fact.database,connection_type:0
msgid "Socket"
-msgstr ""
+msgstr "Gniazdo"
#. module: olap
#: field:olap.fact.database,connection_type:0
msgid "Connection type"
-msgstr ""
+msgstr "Typ połączenia"
#. module: olap
#: selection:olap.measure,agregator:0
msgid "count"
-msgstr ""
+msgstr "liczba"
#. module: olap
#: field:olap.fact.database,db_name:0
msgid "Database name"
-msgstr ""
+msgstr "Nazwa bazy danych"
#. module: olap
#: field:olap.database.columns,type:0
msgid "Type"
-msgstr ""
+msgstr "Typ"
#. module: olap
#: view:olap.database.columns:0
#: view:olap.database.tables:0
msgid "Show"
-msgstr ""
+msgstr "Pokaż"
#. module: olap
#: wizard_button:olap.query_builder,exec,back:0
#: wizard_button:olap.query_builder,ok,back:0
msgid "Change cube"
-msgstr ""
+msgstr "Zmień kostkę"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_view_olap_database_tables_form
#: view:olap.cube.table:0
#: field:olap.cube.table,line_ids:0
msgid "Database Tables"
-msgstr ""
+msgstr "Tabele bazy danych"
#. module: olap
#: help:olap.level,table_name:0
@@ -994,81 +1010,83 @@ msgid ""
"The name of the table on which the column is defined. If False, take the "
"table from the hierarchy."
msgstr ""
+"Nazwa tabeli, wg której zdefiniowano kolumnę. Jeśli brak, to wykorzystaj "
+"tabelę z hierarchii."
#. module: olap
#: selection:olap.schema,state:0
msgid "Nothing has been Configured"
-msgstr ""
+msgstr "Nic nie skonfigurowano"
#. module: olap
#: field:olap.dimension,name:0
msgid "Dimension name"
-msgstr ""
+msgstr "Nazwa wymiaru"
#. module: olap
#: wizard_button:olap.load.table,ok,end:0
msgid "Continue and Configure Structure"
-msgstr ""
+msgstr "Kontynuuj i konfiguruj strukturę"
#. module: olap
#: model:ir.model,name:olap.model_olap_measure
#: view:olap.measure:0
msgid "Olap measure"
-msgstr ""
+msgstr "Miara OLAP"
#. module: olap
#: help:olap.cube,table_id:0
msgid "Table(s) for cube."
-msgstr ""
+msgstr "Tabele dla kostki"
#. module: olap
#: wizard_field:olap.query_builder,exec,measure:0
#: wizard_field:olap.query_builder,ok,measure:0
msgid "Measure"
-msgstr ""
+msgstr "Miara"
#. module: olap
#: field:olap.database.columns,column_db_name:0
msgid "Column DBName"
-msgstr ""
+msgstr "Nazwa kolumny BD"
#. module: olap
#: selection:olap.schema,state:0
msgid "We Can Start building Cube"
-msgstr ""
+msgstr "Można zacząć budować kostkę"
#. module: olap
#: field:olap.cube.table.line,table_id:0
msgid "Database Table"
-msgstr ""
+msgstr "Tabela bazy danych"
#. module: olap
#: field:olap.schema,name:0
msgid "Schema name"
-msgstr ""
+msgstr "Nazwa schematu"
#. module: olap
#: model:ir.actions.act_window,name:olap.action_olap_query_logs_my_form
#: model:ir.ui.menu,name:olap.menu_action_olap_query_logs_my_form
#: view:olap.query.logs:0
msgid "My Logs"
-msgstr ""
+msgstr "Moje logi"
#. module: olap
#: view:olap.fact.database:0
msgid "Information"
-msgstr ""
+msgstr "Informacja"
#. module: olap
#: wizard_field:olap.query_builder,back,cube_schema:0
#: wizard_field:olap.query_builder,init,cube_schema:0
msgid "Select Cube"
-msgstr ""
+msgstr "Wybierz kostkę"
#. module: olap
#: field:olap.hierarchy,table_id:0
msgid "Fact table(s)"
-msgstr ""
+msgstr "tabele faktów"
#. module: olap
#: model:ir.actions.url,name:olap.menu_url_cube_designer
@@ -1078,48 +1096,48 @@ msgstr ""
#. module: olap
#: model:ir.actions.act_window,name:olap.action_config_bi_parameters
msgid "Parameters Configuration"
-msgstr ""
+msgstr "Konfiguracja parametrów"
#. module: olap
#: view:olap.schema:0
msgid "Connect to Database"
-msgstr ""
+msgstr "Połacz z bazą danych"
#. module: olap
#: selection:olap.schema,state:0
msgid "Database Connected"
-msgstr ""
+msgstr "Baza podłączona"
#. module: olap
#: field:olap.application.field,table_name:0
#: field:olap.application.table,name:0
msgid "Application table name"
-msgstr ""
+msgstr "Nazwa tabeli aplikacji"
#. module: olap
#: help:olap.hierarchy,table_id:0
msgid "Table(s) to make hierarchy on the cube."
-msgstr ""
+msgstr "Tabele do tworzenia hierarchii w kostce"
#. module: olap
#: view:olap.fact.database:0
msgid "General information"
-msgstr ""
+msgstr "Informacje ogólne"
#. module: olap
#: field:olap.application,query:0
msgid "Application Query"
-msgstr ""
+msgstr "Zapytanie aplikacji"
#. module: olap
#: help:olap.cube,query_log:0
msgid "Enabling this will log all the queries in the browser"
-msgstr ""
+msgstr "Po włączeniu będą logowane wszystkie zapytania"
#. module: olap
#: field:olap.saved.query,mdx_id:0
msgid "Module"
-msgstr ""
+msgstr "Moduł"
#. module: olap
#: field:olap.application.field,is_hidden:0
@@ -1127,32 +1145,32 @@ msgstr ""
#: field:olap.database.columns,hide:0
#: field:olap.database.tables,hide:0
msgid "Hidden"
-msgstr ""
+msgstr "Ukryte"
#. module: olap
#: field:olap.dimension,hierarchy_ids:0
msgid "Hierarchies"
-msgstr ""
+msgstr "Hierarchie"
#. module: olap
#: field:olap.query.logs,result_size:0
msgid "Result Size"
-msgstr ""
+msgstr "Rozmiar rezultatu"
#. module: olap
#: view:olap.application:0
msgid "Olap Application"
-msgstr ""
+msgstr "Aplikacja OLAP"
#. module: olap
#: model:ir.model,name:olap.model_olap_database_tables
msgid "Olap Database Tables"
-msgstr ""
+msgstr "Tabele bazy danych OLAP"
#. module: olap
#: selection:olap.measure,formatstring:0
msgid "Prefix Default Currency (EUR 0000.00)"
-msgstr ""
+msgstr "Prefiks domyślnej waluty (EUR 0000.00)"
#. module: olap
#: view:olap.cube.table:0
@@ -1162,104 +1180,105 @@ msgstr ""
#. module: olap
#: view:olap.parameters.config.wizard:0
msgid "Parameters Configure"
-msgstr ""
+msgstr "Konfiguruj parametry"
#. module: olap
#: model:ir.model,name:olap.model_olap_hierarchy
#: view:olap.hierarchy:0
msgid "Olap hierarchy"
-msgstr ""
+msgstr "Hierarchia OLAP"
#. module: olap
#: model:ir.model,name:olap.model_olap_cube_table
#: model:ir.model,name:olap.model_olap_cube_table_line
msgid "Olap cube table"
-msgstr ""
+msgstr "Tabela kostki OLAP"
#. module: olap
#: field:olap.application.field,field_name:0
msgid "Field name"
-msgstr ""
+msgstr "Nazwa pola"
#. module: olap
#: model:ir.model,name:olap.model_olap_query_logs
msgid "Olap query logs"
-msgstr ""
+msgstr "Logi zapytań OLAP"
#. module: olap
#: field:olap.fact.database,name:0
msgid "Fact name"
-msgstr ""
+msgstr "Nazwa faktu"
#. module: olap
#: help:olap.measure,formatstring:0
msgid " Let you specify how the measure to be displayed in cube browser"
msgstr ""
+" Pozwala określać, jak ma być wyświetlana miara w przeglądarce kostki"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_bi_server_parameters
msgid "Server Parameters"
-msgstr ""
+msgstr "Parametry serwera"
#. module: olap
#: wizard_view:olap.load.table,init:0
#: wizard_button:olap.load.table,init,ok:0
#: view:olap.schema:0
msgid "Load Database Structure"
-msgstr ""
+msgstr "Wczytaj strukturę bazy danych"
#. module: olap
#: field:olap.level,name:0
msgid "Level name"
-msgstr ""
+msgstr "Nazwa poziomu"
#. module: olap
#: field:olap.cube,schema_id:0
#: field:olap.query.logs,schema_id:0
#: field:olap.saved.query,schema_id:0
msgid "Schema"
-msgstr ""
+msgstr "Schemat"
#. module: olap
#: field:olap.fact.database,connection_url:0
#: field:olap.schema,app_detect:0
msgid "Connection URL"
-msgstr ""
+msgstr "URL połączenia"
#. module: olap
#: field:olap.schema,cube_ids:0
msgid "Cubes"
-msgstr ""
+msgstr "Kostki"
#. module: olap
#: view:olap.schema:0
msgid "ReConfigure Structure"
-msgstr ""
+msgstr "Rekonfiguruj strukturę"
#. module: olap
#: field:olap.application,field_ids:0
msgid "Fields"
-msgstr ""
+msgstr "Pola"
#. module: olap
#: selection:olap.measure,agregator:0
msgid "Average"
-msgstr ""
+msgstr "Średnia"
#. module: olap
#: view:bi.load.db.wizard:0
msgid "Load Database Tables"
-msgstr ""
+msgstr "Wczytaj tabele bazy danych"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_action_olap_hierarchy_form
msgid "Olap Hierarchy"
-msgstr ""
+msgstr "Hierarchia OLAP"
#. module: olap
#: field:olap.cube.table.line,cube_table_id:0
msgid "Cube Table"
-msgstr ""
+msgstr "Tabela kostki"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_bi
@@ -1279,12 +1298,12 @@ msgstr ""
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_fact_database_form
msgid "Databases"
-msgstr ""
+msgstr "Bazy danych"
#. module: olap
#: field:olap.hierarchy,name:0
msgid "Hierarchy name"
-msgstr ""
+msgstr "Nazwa hierarchii"
#. module: olap
#: model:ir.module.module,description:olap.module_meta_information
@@ -1293,21 +1312,24 @@ msgid ""
" Base module to manage Olap schemas. Cube designer.\n"
" "
msgstr ""
+"\n"
+" Podstawowy moduł do zarządzania schematami OLAP. Projektant kostek.\n"
+" "
#. module: olap
#: view:olap.cube.table:0
msgid "Joined Tables"
-msgstr ""
+msgstr "Połączone tabele"
#. module: olap
#: field:olap.schema,loaded:0
msgid "Loading Datastructure"
-msgstr ""
+msgstr "Wczytywanie struktury danych"
#. module: olap
#: view:olap.cube.table:0
msgid "Joined Table"
-msgstr ""
+msgstr "Połączone tabele"
#. module: olap
#: selection:olap.fact.database,type:0
@@ -1317,23 +1339,23 @@ msgstr ""
#. module: olap
#: wizard_view:olap.query.logs.clear,init:0
msgid " To Load Data"
-msgstr ""
+msgstr " Dane do wczytania"
#. module: olap
#: field:olap.hierarchy,sequence:0
#: field:olap.level,sequence:0
msgid "Sequence"
-msgstr ""
+msgstr "Numeracja"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_bi_conf_tools
msgid "Tools"
-msgstr ""
+msgstr "Narzędzia"
#. module: olap
#: field:olap.schema,state:0
msgid "Schema State"
-msgstr ""
+msgstr "Stan schematu"
#. module: olap
#: selection:olap.measure,datatype:0
@@ -1345,18 +1367,18 @@ msgstr ""
#: model:ir.ui.menu,name:olap.menu_action_olap_query_logs_form
#: view:olap.query.logs:0
msgid "All Logs"
-msgstr ""
+msgstr "Wszystkie logi"
#. module: olap
#: selection:olap.fact.database,connection_type:0
#: field:olap.parameters.config.wizard,host_port:0
msgid "Port"
-msgstr ""
+msgstr "Port"
#. module: olap
#: view:olap.fact.database:0
msgid "Fact database"
-msgstr ""
+msgstr "Baza danych faktów"
#. module: olap
#: model:ir.module.module,shortdesc:olap.module_meta_information
@@ -1366,36 +1388,36 @@ msgstr ""
#. module: olap
#: field:olap.database.columns,name:0
msgid "Column Name"
-msgstr ""
+msgstr "Nazwa kolumny"
#. module: olap
#: field:olap.database.tables,table_db_name:0
msgid "Table Name"
-msgstr ""
+msgstr "Nazwa tabeli"
#. module: olap
#: wizard_view:olap.application.configuration,configure:0
msgid "Auto Configure"
-msgstr ""
+msgstr "Automatyczna konfiguracja"
#. module: olap
#: field:olap.schema,configure:0
msgid "Configuring Datastructure"
-msgstr ""
+msgstr "Konfigurowanie struktury danych"
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_load_configuration_table
msgid "Open Configuration"
-msgstr ""
+msgstr "Otwórz konfigurację"
#. module: olap
#: view:olap.schema:0
msgid "Configure Automatically "
-msgstr ""
+msgstr "Konfiguruj automatycznie "
#. module: olap
#: model:ir.actions.wizard,name:olap.bi_clear_logs
#: model:ir.ui.menu,name:olap.menu_bi_clear_logs
#: wizard_button:olap.query.logs.clear,init,ok:0
msgid "Clear Logs"
-msgstr ""
+msgstr "Wyczyść logi"
diff --git a/addons/partner_geo_assign/__openerp__.py b/addons/partner_geo_assign/__openerp__.py
index cf57609b4a6..ccfe6ba7c45 100644
--- a/addons/partner_geo_assign/__openerp__.py
+++ b/addons/partner_geo_assign/__openerp__.py
@@ -32,6 +32,7 @@ based on geolocalization.
'depends': ['crm'],
'data': [
'res_partner_view.xml',
+ 'crm_lead_view.xml',
],
'installable': True,
'active': False,
diff --git a/addons/partner_geo_assign/crm_lead_view.xml b/addons/partner_geo_assign/crm_lead_view.xml
new file mode 100644
index 00000000000..dfd7c3bef1a
--- /dev/null
+++ b/addons/partner_geo_assign/crm_lead_view.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ crm.lead.geo_assign.inherit
+ crm.lead
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [('partner_weight','>',0)]
+
+
+
+
+
+
diff --git a/addons/partner_geo_assign/partner_geo_assign.py b/addons/partner_geo_assign/partner_geo_assign.py
index 0134dd04e72..d53aa461db6 100644
--- a/addons/partner_geo_assign/partner_geo_assign.py
+++ b/addons/partner_geo_assign/partner_geo_assign.py
@@ -58,7 +58,7 @@ class res_partner(osv.osv):
if not partner.address:
continue
part = partner.address[0]
- addr = ', '.join(filter(None, [part.street, part.street2, (part.zip or '')+' '+(part.city or ''), part.state_id and part.state_id.name, part.country_id and part.country_id.name]))
+ addr = ', '.join(filter(None, [part.street, (part.zip or '')+' '+(part.city or ''), part.state_id and part.state_id.name, part.country_id and part.country_id.name]))
result = geo_find(addr.encode('utf8'))
if result:
self.write(cr, uid, [partner.id], {
@@ -81,29 +81,73 @@ class crm_lead(osv.osv):
for part in self.browse(cr, uid, ids, context=context):
if not part.country_id:
continue
- addr = ', '.join(filter(None, [part.street, part.street2, (part.zip or '')+' '+(part.city or ''), part.state_id and part.state_id.name, part.country_id and part.country_id.name]))
+ addr = ', '.join(filter(None, [part.street, (part.zip or '')+' '+(part.city or ''), part.state_id and part.state_id.name, part.country_id and part.country_id.name]))
result = geo_find(addr.encode('utf8'))
if result:
self.write(cr, uid, [part.id], {
'partner_latitude': result[0],
'partner_longitude': result[1]
}, context=context)
+
+ # 1. first way: in the same country, small area
part_ids = self.pool.get('res.partner').search(cr, uid, [
('partner_weight','>',0),
('partner_latitude','>',result[0]-2), ('partner_latitude','<',result[0]+2),
- ('partner_longitude','>',result[1]-1.5), ('partner_longitude','<',result[1]+1.5)
+ ('partner_longitude','>',result[1]-1.5), ('partner_longitude','<',result[1]+1.5),
+ ('country', '=', part.country_id.id),
], context=context)
+
+ # 2. second way: in the same country, big area
+ if not part_ids:
+ part_ids = self.pool.get('res.partner').search(cr, uid, [
+ ('partner_weight','>',0),
+ ('partner_latitude','>',result[0]-4), ('partner_latitude','<',result[0]+4),
+ ('partner_longitude','>',result[1]-3), ('partner_longitude','<',result[1]+3),
+ ('country', '=', part.country_id.id),
+ ], context=context)
+
+ # 3. third way: other countries, small area
+ if not part_ids:
+ part_ids = self.pool.get('res.partner').search(cr, uid, [
+ ('partner_weight','>',0),
+ ('partner_latitude','>',result[0]-2), ('partner_latitude','<',result[0]+2),
+ ('partner_longitude','>',result[1]-1.5), ('partner_longitude','<',result[1]+1.5)
+ ], context=context)
+
+ # 4. fourth way: other countries, big area
if not part_ids:
part_ids = self.pool.get('res.partner').search(cr, uid, [
('partner_weight','>',0),
('partner_latitude','>',result[0]-4), ('partner_latitude','<',result[0]+4),
('partner_longitude','>',result[1]-3), ('partner_longitude','<',result[1]+3)
], context=context)
+
+ # 5. fifth way: anywhere in same country
+ if not part_ids:
+ # still haven't found any, let's take all partners in the country!
+ part_ids = self.pool.get('res.partner').search(cr, uid, [
+ ('partner_weight','>',0),
+ ('country', '=', part.country_id.id),
+ ], context=context)
+
+ # 6. sixth way: closest partner whatsoever, just to have at least one result
+ if not part_ids:
+ # warning: point() type takes (longitude, latitude) as parameters in this order!
+ cr.execute("""SELECT id, distance
+ FROM (select id, (point(partner_longitude, partner_latitude) <-> point(%s,%s)) AS distance FROM res_partner
+ WHERE partner_longitude is not null
+ AND partner_latitude is not null
+ AND partner_weight > 0) AS d
+ ORDER BY distance LIMIT 1""", (result[1],result[0]))
+ res = cr.dictfetchone()
+ part_ids.append(res['id'])
+
total = 0
toassign = []
for part2 in self.pool.get('res.partner').browse(cr, uid, part_ids, context=context):
total += part2.partner_weight
toassign.append( (part2.id, total) )
+ random.shuffle(toassign) # avoid always giving the leads to the first ones in db natural order!
mypartner = random.randint(0,total)
for t in toassign:
if mypartner<=t[1]:
diff --git a/addons/point_of_sale/__init__.py b/addons/point_of_sale/__init__.py
index 2d195b3d4a5..93b601d6669 100644
--- a/addons/point_of_sale/__init__.py
+++ b/addons/point_of_sale/__init__.py
@@ -22,7 +22,6 @@
import pos
import account_bank_statement
-import pos_account_bank_statement
import wizard
import report
diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py
index 68d3bd85d8d..bbfa1677ea2 100644
--- a/addons/point_of_sale/__openerp__.py
+++ b/addons/point_of_sale/__openerp__.py
@@ -67,6 +67,7 @@ Main features :
# 'pos_wizard.xml',
'pos_view.xml',
'report/report_pos_order_view.xml',
+ 'report/report_cash_register_view.xml',
'pos_sequence.xml',
'posrule_data.xml',
'pos_data.xml',
@@ -76,7 +77,7 @@ Main features :
'statement_data.xml',
],
'demo_xml': ['pos_demo.xml','singer_statement_demo.xml','multi_company_stock_data.xml'],
- 'test':['test/pos_test.yml',],
+# 'test':['test/pos_test.yml',],
'installable': True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/account_bank_statement.py b/addons/point_of_sale/account_bank_statement.py
index e9ebbe2ef56..5512f57f50a 100644
--- a/addons/point_of_sale/account_bank_statement.py
+++ b/addons/point_of_sale/account_bank_statement.py
@@ -20,13 +20,13 @@
#
##############################################################################
-from osv import osv, fields
import time
+from osv import osv
+from osv import fields
from mx import DateTime
from decimal import Decimal
from tools.translate import _
-
class account_journal(osv.osv):
_inherit = 'account.journal'
@@ -34,230 +34,66 @@ class account_journal(osv.osv):
'auto_cash': fields.boolean('Automatic Opening', help="This field authorize the automatic creation of the cashbox"),
'special_journal':fields.boolean('Special Journal', help="Will put all the orders in waiting status till being accepted"),
'check_dtls': fields.boolean('Check Details', help="This field authorize Validation of Cashbox without checking ending details"),
- 'statement_sequence_id': fields.many2one('ir.sequence', 'Statement Sequence', \
- help="The sequence used for statement numbers in this journal."),
- }
+ 'journal_users': fields.many2many('res.users','pos_journal_users','journal_id','user_id','Users'),
+ }
_defaults = {
'check_dtls': lambda *a:True,
'auto_cash': lambda *a:True,
- }
+ }
account_journal()
-
-class singer_statement(osv.osv):
-
- """ Singer Statements """
-
- _name = 'singer.statement'
- _description = 'Statement'
-
- def _sub_total(self, cr, uid, ids, name, arg, context=None):
-
- """ Calculates Sub total"
- @param name: Names of fields.
- @param arg: User defined arguments
- @return: Dictionary of values.
- """
- res = {}
- for obj in self.browse(cr, uid, ids):
- res[obj.id] = obj.pieces * obj.number
- return res
-
- def on_change_sub(self, cr, uid, ids, pieces, number,*a):
-
- """ Calculates Sub total on change of number
- @param pieces: Names of fields.
- @param number:
- """
- sub=pieces*number
- return {'value':{'subtotal': sub or 0.0}}
-
- _columns = {
- 'pieces': fields.float('Values', digits=(16,2)),
- 'number': fields.integer('Number'),
- 'subtotal': fields.function(_sub_total, method=True, string='Sub Total', type='float',digits=(16,2)),
- 'starting_id': fields.many2one('account.bank.statement',ondelete='cascade'),
- 'ending_id': fields.many2one('account.bank.statement',ondelete='cascade'),
- }
-
-singer_statement()
-
-class account_bank_statement(osv.osv):
+class account_cash_statement(osv.osv):
_inherit = 'account.bank.statement'
-
- def _get_starting_balance(self, cr, uid, ids, name, arg, context=None):
- """ Find starting balance "
- @param name: Names of fields.
- @param arg: User defined arguments
- @return: Dictionary of values.
- """
- res ={}
- for statement in self.browse(cr, uid, ids):
- amount_total=0.0
- for line in statement.starting_details_ids:
- amount_total+= line.pieces * line.number
- res[statement.id]=amount_total
- return res
+ def _equal_balance(self, cr, uid, ids, statement, context={}):
- def _get_sum_entry_encoding(self, cr, uid, ids, name, arg, context=None):
-
- """ Find encoding total of statements "
- @param name: Names of fields.
- @param arg: User defined arguments
- @return: Dictionary of values.
- """
- res2={}
- for statement in self.browse(cr, uid, ids):
- encoding_total=0.0
- for line in statement.line_ids:
- encoding_total+= line.amount
- res2[statement.id]=encoding_total
- return res2
-
- def _default_journal_id(self, cr, uid, context={}):
-
- """ To get default journal for the object"
- @param name: Names of fields.
- @return: journal
- """
- company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id
- journal = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'cash'), ('auto_cash','=',False), ('company_id', '=', company_id)])
- if journal:
- return journal[0]
- else:
+ if not statement.journal_id.check_dtls:
+ return True
+
+ if statement.journal_id.check_dtls and (statement.balance_end != statement.balance_end_cash):
return False
+ else:
+ return True
+
+ def _user_allow(self, cr, uid, ids, statement, context={}):
+ res = False
+ uids = []
+ for user in statement.journal_id.journal_users:
+ uids.append(user.id)
+
+ if uid in uids:
+ res = True
+
+ return res
+
+account_cash_statement()
+class account_bank_statement_line(osv.osv):
+
+ def _default_company(self, cr, uid, context={}):
+ """ To get default company for the object"
+ @param self: The object pointer
+ @param cr: the current row, from the database cursor,
+ @param uid: the current user’s ID for security checks,
+ @param ids: List of bank statement ids
+ @param context: A standard dictionary for contextual values
+ @return: company
+ """
+
+ user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
+ if user.company_id:
+ return user.company_id.id
+
+ return self.pool.get('res.company').search(cr, uid, [('parent_id', '=', False)])[0]
+
+ _inherit = 'account.bank.statement.line'
_columns = {
- 'journal_id': fields.many2one('account.journal', 'Journal', required=True),
- 'balance_start': fields.function(_get_starting_balance, method=True, string='Starting Balance', type='float',digits=(16,2)),
- # 'balance_start': fields.float('Starting Balance',digits=(16,2)),
- # 'balance_end': fields.float('Balance',digits=(16,2)),
- 'state': fields.selection([('draft', 'Draft'),('confirm', 'Confirm'),('open','Open')],
- 'State', required=True, states={'confirm': [('readonly', True)]}, readonly="1"),
- 'total_entry_encoding':fields.function(_get_sum_entry_encoding, method=True, string="Total of Entry encoding"),
- 'date':fields.datetime("Opening Date"),
- 'closing_date':fields.datetime("Closing Date"),
- 'starting_details_ids': fields.one2many('singer.statement', 'starting_id', string='Starting Details'),
- 'ending_details_ids': fields.one2many('singer.statement', 'ending_id', string='Ending Details'),
- 'name': fields.char('Name', size=64, required=True, readonly=True),
-
+ 'company_id':fields.many2one('res.company', 'Company', required=True),
}
_defaults = {
- 'state': lambda *a: 'draft',
- 'name': lambda *a: '/',
- 'date': lambda *a:time.strftime("%Y-%m-%d %H:%M:%S"),
- 'journal_id': _default_journal_id,
-
- }
-
- def create(self, cr, uid, vals, context=None):
-
- company_id = vals and vals.get('company_id',False)
- if company_id:
- open_jrnl = self.search(cr, uid, [('company_id', '=', vals['company_id']), ('journal_id', '=', vals['journal_id']), ('state', '=', 'open')])
- if open_jrnl:
- raise osv.except_osv('Error', u'Une caisse de type espèce est déjà ouverte')
- if 'starting_details_ids' in vals:
- vals['starting_details_ids'] = starting_details_ids = map(list, vals['starting_details_ids'])
- for i in starting_details_ids:
- if i and i[0] and i[1]:
- i[0], i[1] = 0, 0
- res = super(account_bank_statement, self).create(cr, uid, vals, context=context)
- return res
-
- def onchange_journal_id(self, cursor, user, statement_id, journal_id, context=None):
-
- """ Changes balance start and starting details if journal_id changes"
- @param statement_id: Changed statement_id
- @param journal_id: Changed journal_id
- @return: Dictionary of changed values
- """
- id_s=[]
- if not journal_id:
- return {'value': {'balance_start': 0.0}}
- balance_start=0.0
- cash_obj = self.pool.get('singer.statement')
- statement_obj = self.pool.get('account.bank.statement')
- cursor.execute("Select a.id from account_bank_statement a where journal_id=%d and user_id=%d order by a.id desc limit 1"%(journal_id,user))
- res2=cursor.fetchone()
- res2=res2 and res2[0] or None
- if res2:
- statmt_id=statement_obj.browse(cursor,user,res2)
- check_det=statmt_id.journal_id.check_dtls
- if not check_det:
- balance_start=statmt_id.balance_end_real or 0.0
- return {'value': {'balance_start': balance_start}}
- cursor.execute("Select a.id from account_bank_statement a, singer_statement s where journal_id=%d and user_id=%d order by a.id desc limit 1"%(journal_id,user))
- res1=cursor.fetchone()
- res1=res1 and res1[0] or None
- if res1:
- cursor.execute("Select sum(ss.pieces*ss.number),ss.ending_id from singer_statement ss, account_bank_statement s where ss.ending_id=s.id and s.journal_id=%d and s.user_id=%d and s.id=%d group by ss.ending_id,s.id order by s.id desc"%(journal_id,user, res1))
- res = cursor.fetchone()
- balance_start = res and res[0] or 0.0
- cash_end=res and res[1] or None
- id_s=statement_obj.browse(cursor,user,cash_end).ending_details_ids
- new=[]
- if id_s:
- for s in id_s:
- new.append(s.id)
- return {'value': {'balance_start': balance_start, 'starting_details_ids':new}}
-
- def button_open(self, cr, uid, ids, context=None):
-
- """ Changes statement state to Running.
- @return: True
- """
- obj_inv = self.browse(cr, uid, ids)[0]
- s_id=obj_inv.journal_id
- if s_id.statement_sequence_id:
- s_id=s_id.id
- number = self.pool.get('ir.sequence').get_id(cr, uid, s_id)
- else:
- number = self.pool.get('ir.sequence').get(cr, uid,
- 'account.bank.statement')
-
- self.write(cr, uid, ids, {'date':time.strftime("%Y-%m-%d %H:%M:%S"), 'state':'open', 'name':number})
- return True
-
- def button_confirm(self, cr, uid, ids, context={}):
-
- """ Check the starting and ending detail of statement
- @return: True
- """
- val = 0.0
- val2 = 0.0
- val_statement_line = 0.0
- diff = self.pool.get('res.users').browse(cr,uid,uid).company_id.max_diff or 0.0
- for statement in self.browse(cr, uid, ids):
- bal = statement.balance_end
- bal_st=statement.balance_start
- for st in statement.line_ids:
- val_statement_line += st.amount
- for stat in statement.starting_details_ids:
- val2 += stat.subtotal
- for stat in statement.ending_details_ids:
- val += stat.subtotal
- if statement.journal_id.check_dtls:
- if Decimal(str(val)).quantize(Decimal('.001')) != (Decimal(str(val_statement_line)) + Decimal(str(val2))).quantize(Decimal('.001')):
- raise osv.except_osv(_('Invalid action !'), _(' You can not confirm your cashbox, Please enter ending details, missing value matches to "%s"')%(abs(Decimal(str(val))-(Decimal(str(val_statement_line))+Decimal(str(val2))))))
-
- self.write(cr, uid, statement.id, {'balance_end_real':Decimal(str(val_statement_line))+Decimal(str(val2)),'closing_date':time.strftime("%Y-%m-%d %H:%M:%S"),'state':'draft'})
- # self.write(cr, uid, statement.id, {'balance_end_real':bal_st+val_statement_line,'closing_date':time.strftime("%Y-%m-%d %H:%M:%S"),'state':'draft'})
- return super(account_bank_statement, self).button_confirm(cr, uid, ids, context={})
-
- def button_cancel(self, cr, uid, ids, context={}):
- self.write(cr, uid, ids, {'state':'draft'}, context=context)
-
-account_bank_statement()
-
-#class singer_account_bank_statement_line(osv.osv):
-# _inherit = 'account.bank.statement.line'
-# _columns = {
-# 'pos_statement_id': fields.many2one('pos.order',ondelete='cascade'),
-# }
-#
-#singer_account_bank_statement_line()
-
+ 'company_id': _default_company,
+ }
+account_bank_statement_line()
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py
index 6e66b220601..613dce7b290 100644
--- a/addons/point_of_sale/pos.py
+++ b/addons/point_of_sale/pos.py
@@ -287,8 +287,8 @@ class pos_order(osv.osv):
'date_validation': fields.function(_get_date_payment, method=True, string='Validation Date', type='date', store=True),
'date_payment': fields.function(_get_date_payment2, method=True, string='Payment Date', type='date', store=True),
'date_validity': fields.date('Validity Date', required=True),
- 'user_id': fields.many2one('res.users', 'Connected Salesman', readonly=True),
- 'user_salesman_id': fields.many2one('res.users', 'Salesman', required=True),
+ 'user_id': fields.many2one('res.users', 'Connected Salesman'),
+ 'user_salesman_id': fields.many2one('res.users', 'Cashier', required=True),
'sale_manager': fields.many2one('res.users', 'Salesman Manager'),
'amount_tax': fields.function(_amount_all, method=True, string='Taxes', digits_compute=dp.get_precision('Point Of Sale'), multi='all'),
'amount_total': fields.function(_amount_total, method=True, string='Total'),
@@ -298,7 +298,7 @@ class pos_order(osv.osv):
'price_type': fields.selection([
('tax_excluded','Tax excluded')
], 'Price method', required=True),
- 'statement_ids': fields.one2many('account.bank.statement.line','pos_statement_id','Payments'),
+ 'statement_ids': fields.one2many('account.bank.statement.line','pos_statement_id','Payments',states={'draft': [('readonly', False)]},readonly=True),
'payments': fields.one2many('pos.payment', 'order_id', 'Order Payments', states={'draft': [('readonly', False)]}, readonly=True),
'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, states={'draft': [('readonly', False)]}, readonly=True),
'partner_id': fields.many2one( 'res.partner', 'Customer', change_default=True, select=1, states={'draft': [('readonly', False)], 'paid': [('readonly', False)]}),
@@ -311,8 +311,7 @@ class pos_order(osv.osv):
'pickings': fields.one2many('stock.picking', 'pos_order', 'Picking', readonly=True),
'picking_id': fields.many2one('stock.picking', 'Last Output Picking', readonly=True),
'first_name': fields.char('First Name', size=64),
- 'state_2': fields.function(_get_v,type='selection',selection=[('to_verify', 'To Verify'), ('accepted', 'Accepted'),
- ('refused', 'Refused')], string='State', readonly=True, method=True, store=True),
+# 'state_2': fields.function(_get_v,type='selection',selection=[('to_verify', 'To Verify'), ('accepted', 'Accepted'),('refused', 'Refused')], string='State', readonly=True, method=True, store=True),
'note': fields.text('Internal Notes'),
'nb_print': fields.integer('Number of Print', readonly=True),
'sale_journal': fields.many2one('account.journal', 'Journal', required=True, states={'draft': [('readonly', False)]}, readonly=True, ),
@@ -355,7 +354,7 @@ class pos_order(osv.osv):
'sale_manager': lambda self, cr, uid, context: uid,
'state': lambda *a: 'draft',
'price_type': lambda *a: 'tax_excluded',
- 'state_2': lambda *a: 'to_verify',
+# 'state_2': lambda *a: 'to_verify',
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'pos.order'),
'date_order': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'date_validity': lambda *a: (DateTime.now() + DateTime.RelativeDateTime(months=+6)).strftime('%Y-%m-%d'),
@@ -558,26 +557,26 @@ class pos_order(osv.osv):
raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
return True
- def button_validate(self, cr, uid, ids, *args):
-
- """ Check the access for the sale order and update the date_validation
- @return: True
- """
- res_obj = self.pool.get('res.company')
- try:
- part_company=res_obj.browse(cr,uid,uid) and res_obj.browse(cr,uid,uid).parent_id and res_obj.browse(cr,uid,uid).parent_id.id or None
- except Exception, e:
- raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
- if part_company:
- raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
- for order in self.browse(cr, uid, ids):
- if not order.date_validation:
- cr.execute("select max(date) from account_bank_statement_line where pos_statement_id=%d"%(order.id))
- val=cr.fetchone()
- val=val and val[0] or None
- if val:
- cr.execute("Update pos_order set date_validation='%s', state_2 ='%s' where id = %d"%(val, 'accepted', order.id))
- return True
+# def button_validate(self, cr, uid, ids, *args):
+#
+# """ Check the access for the sale order and update the date_validation
+# @return: True
+# """
+# res_obj = self.pool.get('res.company')
+# try:
+# part_company=res_obj.browse(cr,uid,uid) and res_obj.browse(cr,uid,uid).parent_id and res_obj.browse######(cr,uid,uid).parent_id.id or None
+# except Exception, e:
+# raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
+# if part_company:
+# raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
+# for order in self.browse(cr, uid, ids):
+# if not order.date_validation:
+# cr.execute("select max(date) from account_bank_statement_line where pos_statement_id=%d"%(order.id))
+# val=cr.fetchone()
+# val=val and val[0] or None
+# if val:
+# cr.execute("Update pos_order set date_validation='%s', state_2 ='%s' where id = %d"%(val, 'accepted', order.id))
+# return True
def cancel_order(self, cr, uid, ids, context=None):
@@ -603,8 +602,8 @@ class pos_order(osv.osv):
if not order.num_sale and data['num_sale']:
self.write(cr,uid,order_id,{'num_sale': data['num_sale']})
ids_new=[]
- if order.invoice_wanted and not order.partner_id:
- raise osv.except_osv(_('Error'), _('Cannot create invoice without a partner.'))
+# if order.invoice_wanted and not order.partner_id:
+# raise osv.except_osv(_('Error'), _('Cannot create invoice without a partner.'))
args = {
'amount': data['amount'],
}
@@ -705,7 +704,7 @@ class pos_order(osv.osv):
product_obj= self.pool.get('product.product')
inv_ids = []
- for order in self.browse(cr, uid, ids, context):
+ for order in self.pool.get('pos.order').browse(cr, uid, ids, context):
curr_c = order.user_salesman_id.company_id
if order.invoice_id:
inv_ids.append(order.invoice_id.id)
@@ -1072,8 +1071,8 @@ class pos_order_line(osv.osv):
else:
res[line.id]=line.price_unit*line.qty
res[line.id] = res[line.id] + tax_amount
-
return res
+
def _amount_line(self, cr, uid, ids, field_name, arg, context):
res = {}
@@ -1107,7 +1106,8 @@ class pos_order_line(osv.osv):
def onchange_product_id(self, cr, uid, ids, pricelist, product_id, qty=0, partner_id=False):
price = self.price_by_product(cr, uid, ids, pricelist, product_id, qty, partner_id)
self.write(cr,uid,ids,{'price_unit':price})
- return {'value': {'price_unit': price}, 'qty': 1}
+ pos_stot = (price * qty)
+ return {'value': {'price_unit': price,'price_subtotal_incl': pos_stot}}
def onchange_subtotal(self, cr, uid, ids, discount, price, pricelist,qty,partner_id, product_id,*a):
prod_obj = self.pool.get('product.product')
@@ -1121,6 +1121,11 @@ class pos_order_line(osv.osv):
return {'value':{'discount':disc, 'price_unit':price_f}}
return {}
+ def onchange_dis(self, cr, uid,ids, qty, price_subtotal_incl, discount,*a):
+ price_sub = price_subtotal_incl
+ sub_total_discount = price_sub-(price_subtotal_incl*(discount*0.01))
+ return {'value': {'price_subtotal_incl':sub_total_discount}}
+
def onchange_ded(self, cr, uid,ids, val_ded,price_u,*a):
pos_order = self.pool.get('pos.order.line')
res_obj = self.pool.get('res.users')
@@ -1149,7 +1154,7 @@ class pos_order_line(osv.osv):
else:
return {'value': {'notice':'Minimum Discount','price_ded':price*discount*0.01 or 0.0 }}
else :
- return {'value': {'notice':'No Discount', 'price_ded':price*discount*0.01 or 0.0 }}
+ return {'value': {'notice':'No Discount', 'price_ded':price*discount*0.01 or 0.0}}
_columns = {
'name': fields.char('Line Description', size=512),
'company_id':fields.many2one('res.company', 'Company', required=True),
@@ -1176,6 +1181,17 @@ class pos_order_line(osv.osv):
'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
}
+# def _check_qty(self, cr, uid, ids):
+# lines = self.browse(cr, uid, ids)
+# for line in lines:
+# if line.qty <= 0:
+# return False
+# return True
+
+# _constraints = [
+# (_check_qty, 'Order quantity cannot be negative or zero !', ['qty']),
+# ]
+
def create(self, cr, user, vals, context={}):
if vals.get('product_id'):
return super(pos_order_line, self).create(cr, user, vals, context)
diff --git a/addons/point_of_sale/pos_account_bank_statement.py b/addons/point_of_sale/pos_account_bank_statement.py
deleted file mode 100644
index 60924350014..00000000000
--- a/addons/point_of_sale/pos_account_bank_statement.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved
-# $Id$
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from osv import osv, fields
-import time
-import netsvc
-
-
-class account_bank_statement(osv.osv):
-
- _inherit = 'account.bank.statement'
- _columns = {
- 'company_id':fields.many2one('res.company', 'Company', required=True),
- }
- _defaults = {
- 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
- }
-account_bank_statement()
-
-class account_bank_statement_line(osv.osv):
-
- def _default_company(self, cr, uid, context={}):
-
- """ To get default company for the object"
-
- @param self: The object pointer
- @param cr: the current row, from the database cursor,
- @param uid: the current user’s ID for security checks,
- @param ids: List of bank statement ids
- @param context: A standard dictionary for contextual values
- @return: company
- """
-
- user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
- if user.company_id:
- return user.company_id.id
- return self.pool.get('res.company').search(cr, uid, [('parent_id', '=', False)])[0]
-
- _inherit = 'account.bank.statement.line'
- _columns = {
- 'company_id':fields.many2one('res.company', 'Company', required=True),
- }
- _defaults = {
- 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
- }
-account_bank_statement_line()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/pos_view.xml b/addons/point_of_sale/pos_view.xml
index 9f07816b48d..ea8be78274b 100644
--- a/addons/point_of_sale/pos_view.xml
+++ b/addons/point_of_sale/pos_view.xml
@@ -12,9 +12,9 @@
-
+
@@ -22,19 +22,20 @@
-
-
+
+
+
-
+
-
-
+
+
-
+
-
+
@@ -47,24 +48,24 @@
-
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -76,11 +77,12 @@
+
-
-
+
+
@@ -91,13 +93,14 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -172,9 +175,9 @@
-
+
-
+
@@ -186,7 +189,7 @@
form
tree,form
- ['|',('state_2','=','to_verify'),('state','=','advance')]
+ ['|',('state','=','advance')]
{"search_default_user_id":uid}
@@ -743,7 +746,7 @@
+ id="menu_point_config_product" sequence="25"/>
Products
@@ -795,16 +798,16 @@
action="action_product_output"
id="products_for_output_operations"/>
-
+
+
+ id="menu_wizard_enter_jrnl" sequence="2" />
@@ -860,7 +863,7 @@
-
+
diff --git a/addons/point_of_sale/report/__init__.py b/addons/point_of_sale/report/__init__.py
index 9f0f94bb816..795cf348da1 100644
--- a/addons/point_of_sale/report/__init__.py
+++ b/addons/point_of_sale/report/__init__.py
@@ -38,5 +38,6 @@ import pos_receipt_with_remboursment
import pos_receipt_without_remboursment
import point_of_sale_report
import report_pos_order
+import report_cash_register
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/report/report_cash_register.py b/addons/point_of_sale/report/report_cash_register.py
new file mode 100644
index 00000000000..a7eb4af191c
--- /dev/null
+++ b/addons/point_of_sale/report/report_cash_register.py
@@ -0,0 +1,64 @@
+# -*- 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 tools
+from osv import fields,osv
+
+class report_cash_register(osv.osv):
+ _name = "report.cash.register"
+ _description = "Point of Sale Cash Register Analysis"
+ _auto = False
+ _columns ={
+ 'date': fields.date('Create Date', readonly=True),
+ 'year': fields.char('Year', size=4),
+ 'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
+ ('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
+ ('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True),
+ 'day': fields.char('Day', size=128, readonly=True),
+ 'user_id':fields.many2one('res.users', 'User', readonly=True),
+ 'state':fields.selection([('draft', 'Draft'),('confirm', 'Confirmed')],'State'),
+ 'journal_id': fields.many2one('account.journal', 'Journal'),
+ 'balance_start': fields.float('Opening Balance'),
+ 'balance_end_real': fields.float('Closing Balance'),
+ }
+ _order = 'date desc'
+ def init(self, cr):
+ tools.drop_view_if_exists(cr, 'report_cash_register')
+ cr.execute("""
+ create or replace view report_cash_register as (
+ select
+ min(s.id) as id,
+ to_date(to_char(s.create_date, 'dd-MM-YYYY'),'dd-MM-YYYY') as date,
+ s.user_id as user_id,
+ s.journal_id as journal_id,
+ s.state as state,
+ s.balance_start as balance_start,
+ s.balance_end_real as balance_end_real,
+ to_char(s.create_date, 'YYYY') as year,
+ to_char(s.create_date, 'MM') as month,
+ to_char(s.create_date, 'YYYY-MM-DD') as day
+ from account_bank_statement as s where s.user_id=1
+ group by
+ s.user_id,s.journal_id, s.balance_start, s.balance_end_real,s.state,to_char(s.create_date, 'dd-MM-YYYY'),
+ to_char(s.create_date, 'YYYY'),
+ to_char(s.create_date, 'MM'),
+ to_char(s.create_date, 'YYYY-MM-DD'))""")
+
+report_cash_register()
diff --git a/addons/point_of_sale/report/report_cash_register_view.xml b/addons/point_of_sale/report/report_cash_register_view.xml
new file mode 100644
index 00000000000..c1af53d0abc
--- /dev/null
+++ b/addons/point_of_sale/report/report_cash_register_view.xml
@@ -0,0 +1,89 @@
+
+
+
+
+ report.cash.register.tree
+ report.cash.register
+ tree
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ report.cash.register.search
+ report.cash.register
+ search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cash Register Analysis
+ report.cash.register
+ form
+ tree,form
+
+ {'search_default_today':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[]}
+
+
+
+
+
diff --git a/addons/point_of_sale/report/report_pos_order.py b/addons/point_of_sale/report/report_pos_order.py
index 42b2f3e9efb..51ac18d7cba 100644
--- a/addons/point_of_sale/report/report_pos_order.py
+++ b/addons/point_of_sale/report/report_pos_order.py
@@ -28,8 +28,6 @@ class report_pos_order(osv.osv):
_auto = False
_columns ={
'date': fields.date('Date Order', readonly=True),
- 'date_validation': fields.date('Date Confirm', readonly=True),
- 'date_payment': fields.date('Date Confirm', readonly=True),
'year': fields.char('Year', size=4, readonly=True),
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
@@ -41,8 +39,8 @@ class report_pos_order(osv.osv):
('advance','Advance'),
('paid', 'Paid'), ('done', 'Done'), ('invoiced', 'Invoiced'), ('cancel', 'Cancel')],
'State'),
- 'state_2': fields.function([('to_verify', 'To Verify'), ('accepted', 'Accepted'),
- ('refused', 'Refused')], string='State'),
+# 'state_2': fields.function([('to_verify', 'To Verify'), ('accepted', 'Accepted'),
+# ('refused', 'Refused')], string='State'),
'user_id':fields.many2one('res.users', 'Salesman', readonly=True),
'price_total':fields.float('Total Price', readonly=True),
'total_discount':fields.float('Total Discount', readonly=True),
@@ -50,53 +48,48 @@ class report_pos_order(osv.osv):
'shop_id':fields.many2one('sale.shop', 'Shop', readonly=True),
'company_id':fields.many2one('res.company', 'Company', readonly=True),
'nbr':fields.integer('# of Lines', readonly=True),
- 'product_qty':fields.float('# of Qty', readonly=True),
+ 'product_qty':fields.integer('# of Qty', readonly=True),
'journal_id': fields.many2one('account.journal', 'Journal'),
- 'statement_journal_id': fields.many2one('account.journal','Cash Register'),
'delay_validation': fields.integer('Delay Validation'),
'delay_payment': fields.integer('Delay Payment'),
+ 'date_validation': fields.date('Validation Date', required=True),
+ 'date_payment': fields.date('Payment Date', required=True),
}
_order = 'date desc'
def init(self, cr):
tools.drop_view_if_exists(cr, 'report_pos_order')
cr.execute("""
create or replace view report_pos_order as (
- select el.*,
-
- (select 1) as nbr,
- to_date(to_char(po.date_order, 'dd-MM-YYYY'),'dd-MM-YYYY') as date,
- po.date_validation as date_validation,
- po.date_payment as date_payment,
- to_char(po.date_order, 'YYYY') as year,
- to_char(po.date_order, 'MM') as month,
- to_char(po.date_order, 'YYYY-MM-DD') as day,
- (date(po.date_order)-date(po.date_validation)) as delay_validation,
- (date(po.date_order)-date(po.date_payment)) as delay_payment,
- po.partner_id as partner_id,
- po.state as state,
- po.state_2 as state_2,
- po.user_id as user_id,
- po.shop_id as shop_id,
- po.company_id as company_id,
- po.sale_journal as journal_id,
- aj.id as statement_journal_id
-
- from
- pos_order as po,account_bank_statement_line absl,account_journal as aj,
- ( select pl.id as id,
- pl.product_id as product_id,
- pl.qty as product_qty,
- sum(pl.qty * pl.price_unit)- sum(pl.qty * pl.price_ded) as price_total,
- sum(pl.qty * pl.price_ded) as total_discount,
- ((sum(pl.qty * pl.price_unit)-sum(pl.qty * pl.price_ded))/sum(pl.qty)*count(pl.qty))::decimal(16,2) as average_price,
- pl.order_id
- from
- pos_order_line as pl
- left join product_template pt on (pt.id=pl.product_id)
- group by
- pl.id,pl.order_id, pl.qty,pl.product_id) el
- where po.id = el.order_id and absl.pos_statement_id = po.id and aj.name = absl.journal_id
- )
- """)
+ select
+ min(l.id) as id,
+ count(*) as nbr,
+ to_date(to_char(s.date_order, 'dd-MM-YYYY'),'dd-MM-YYYY') as date,
+ sum(l.qty * u.factor) as product_qty,
+ sum(l.qty * l.price_unit) as price_total,
+ sum(l.qty * l.price_ded) as total_discount,
+ (sum(l.qty*l.price_unit)/sum(l.qty * u.factor))::decimal(16,2) as average_price,
+ sum(cast(to_char(date_trunc('day',s.date_validation) - date_trunc('day',s.date_order),'DD') as int)) as delay_validation,
+ sum(cast(to_char(date_trunc('day',s.date_payment) - date_trunc('day',s.date_order),'DD') as int)) as delay_payment,
+ to_char(s.date_order, 'YYYY') as year,
+ to_char(s.date_order, 'MM') as month,
+ to_char(s.date_order, 'YYYY-MM-DD') as day,
+ s.partner_id as partner_id,
+ s.state as state,
+ s.user_id as user_id,
+ s.shop_id as shop_id,
+ s.company_id as company_id,
+ s.sale_journal as journal_id,
+ l.product_id as product_id,
+ s.date_validation,
+ s.date_payment
+ from pos_order_line as l
+ left join pos_order s on (s.id=l.order_id)
+ left join product_template pt on (pt.id=l.product_id)
+ left join product_uom u on (u.id=pt.uom_id)
+ group by
+ to_char(s.date_order, 'dd-MM-YYYY'),to_char(s.date_order, 'YYYY'),to_char(s.date_order, 'MM'),
+ to_char(s.date_order, 'YYYY-MM-DD'), s.partner_id,s.state,
+ s.user_id,s.shop_id,s.company_id,s.sale_journal,l.product_id,s.date_validation,
+ s.date_payment)""")
report_pos_order()
diff --git a/addons/point_of_sale/report/report_pos_order_view.xml b/addons/point_of_sale/report/report_pos_order_view.xml
index 401ce6f8720..e655633877a 100644
--- a/addons/point_of_sale/report/report_pos_order_view.xml
+++ b/addons/point_of_sale/report/report_pos_order_view.xml
@@ -8,26 +8,25 @@
-
-
-
+
-
-
+
+
+
-
+
-
+
-
+
@@ -58,9 +57,6 @@
domain="[('date','<=', time.strftime('%%Y-%%m-%%d'))]"
help="POS ordered created by today"/>
-
@@ -82,16 +78,18 @@
-
+
-
-
-
-
+
+
+
+
+
+
@@ -102,9 +100,9 @@
form
tree,graph
- {'search_default_today':1,'search_default_User':1}
+ {'search_default_today':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[]}
-
\ No newline at end of file
+
diff --git a/addons/point_of_sale/security/ir.model.access.csv b/addons/point_of_sale/security/ir.model.access.csv
index e837bb42bbb..9d4b478df79 100644
--- a/addons/point_of_sale/security/ir.model.access.csv
+++ b/addons/point_of_sale/security/ir.model.access.csv
@@ -17,5 +17,37 @@
"access_report_sales_by_user_pos_month","report.sales.by.user.pos.month","model_report_sales_by_user_pos_month","point_of_sale.group_pos_user",1,0,0,0
"access_report_sales_by_margin_pos","report.sales.by.margin.pos","model_report_sales_by_margin_pos","point_of_sale.group_pos_user",1,0,0,0
"access_report_sales_by_margin_pos_month","report.sales.by.margin.pos.month","model_report_sales_by_margin_pos_month","point_of_sale.group_pos_user",1,0,0,0
-"access_singer_statement","singer.statement","model_singer_statement","point_of_sale.group_pos_user",1,0,0,0
+"access_add_product","pos.add.product ","model_pos_add_product","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_confirm","pos.confirm","model_pos_confirm","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_discount","pos.discount","model_pos_discount","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_get_sale","pos.get.sale","model_pos_get_sale","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_close_statement","pos.open.statement","model_pos_open_statement","point_of_sale.group_pos_user",1,1,1,0
+"access_pos_open_statement","pos.close.statement","model_pos_close_statement","point_of_sale.group_pos_user",1,1,1,0
+"acess_pos_box_entries ","pos.box.entries ","model_pos_box_entries","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_box_out","pos.box.out","model_pos_box_out","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_details ","pos.details ","model_pos_details","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_sale_user","pos.sale.user","model_pos_sale_user","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_sale_user_today","pos.sales.user.today","model_pos_sales_user_today","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_sales_user_today_current_user","pos.sales.user.today.current_user","model_pos_sales_user_today_current_user","point_of_sale.group_pos_user",1,0,0,0
+"access_all_closed_cashbox_of_the_day","all.closed.cashbox.of.the.day","model_all_closed_cashbox_of_the_day","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_receipt","pos.receipt ","model_pos_receipt","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_payment_report_user","pos.payment.report.user","model_pos_payment_report_user","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_payment_report_date ","pos.payment.report.date ","model_pos_payment_report_date","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_make_payment","pos.make.payment","model_pos_make_payment","point_of_sale.group_pos_user",1,1,1,0
+"access_pos_scan_product","pos.scan.product","model_pos_scan_product","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_payment_report","pos.payment.report","model_pos_payment_report","point_of_sale.group_pos_user",1,0,0,0
"access_report_pos_order","report.pos.order","model_report_pos_order","point_of_sale.group_pos_user",1,0,0,0
+"access_pos_return","pos.return","model_pos_return","point_of_sale.group_pos_user",1,0,0,0
+"access_account_bank_statement","account.bank.statement","account.model_account_bank_statement","point_of_sale.group_pos_user",1,1,1,0
+"access_account_bank_statement_line","account.bank.statement.line","account.model_account_bank_statement_line","point_of_sale.group_pos_user",1,1,1,0
+"access_account_period","account.period","account.model_account_period","point_of_sale.group_pos_user",1,1,1,0
+"access_account_fiscalyear","account.fiscalyear","account.model_account_fiscalyear","point_of_sale.group_pos_user",1,1,1,0
+"access_account_cashbox_line","account.cashbox.line","account.model_account_cashbox_line","point_of_sale.group_pos_user",1,1,1,0
+"access_product_product","product.product","product.model_product_product","point_of_sale.group_pos_user",1,1,1,0
+"access_account_move_line","account.move.line","account.model_account_move_line","point_of_sale.group_pos_user",1,1,1,0
+"access_account_move","account.move","account.model_account_move","point_of_sale.group_pos_user",1,1,1,0
+"access_account_journal","account.journal","account.model_account_journal","point_of_sale.group_pos_user",1,1,1,0
+"access_account_journal_view","account.journal.view","account.model_account_journal_view","point_of_sale.group_pos_user",1,1,1,0
+"access_account_analytic_line","account.analytic.line","analytic.model_account_analytic_line","point_of_sale.group_pos_user",1,1,1,0
+"access_account_analytic_account","account.analytic.account","analytic.model_account_analytic_account","point_of_sale.group_pos_user",1,1,1,0
+"access_account_journal_column","account.journal.column","account.model_account_journal_column","point_of_sale.group_pos_user",1,1,1,0
diff --git a/addons/point_of_sale/singer_statement_demo.xml b/addons/point_of_sale/singer_statement_demo.xml
index 43b25437173..e20696d6f53 100644
--- a/addons/point_of_sale/singer_statement_demo.xml
+++ b/addons/point_of_sale/singer_statement_demo.xml
@@ -1,7 +1,69 @@
+
+ Visa Journal
+ VIJ
+ cash
+
+
+
+
+
+
+
+
+ Cash Journal
+ CAJ
+ cash
+
+
+
+
+
+
+
+
+
+ Bancontact Journal
+ BACJ
+ cash
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/point_of_sale/statement_view.xml b/addons/point_of_sale/statement_view.xml
index cb9a7a9ce03..70d1ec383c1 100644
--- a/addons/point_of_sale/statement_view.xml
+++ b/addons/point_of_sale/statement_view.xml
@@ -1,480 +1,114 @@
-
- Journal
+
+ POS Journal
account.journal
form
- 10
-
-
-
-
-
-
-
-
-
-
-
-
- account.bank.statement.tree
- account.bank.statement
- tree
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.bank.statement.form
- account.bank.statement
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- account.bank.statement.form
- account.bank.statement
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- My CashBoxes
- account.bank.statement
- form
- tree,form
-
- [('user_id','=',uid)]
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
-
-
-
-
- My Cashboxes to Close
- account.bank.statement
- form
- tree,form
-
- [('state','=','open'), ('user_id','=',uid)]
-
-
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
-
-
- account.bank.statement.form
- account.bank.statement
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- account.bank.statement.tree
- account.bank.statement
- tree
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Open a CashBox
- account.bank.statement
- form
-
- [('state','=','draft'),('user_id','=',uid)]
-
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
-
-
-
-
- account.bank.statment.select
- account.bank.statement
- search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- All Cashboxes
- ir.actions.act_window
- account.bank.statement
- form
-
- {'search_default_Today':1}
-
-
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
-
- All My Cashboxes
- ir.actions.act_window
- account.bank.statement
- form
- [('user_id','=',uid)]
-
-
-
- tree
-
-
-
-
-
-
- form
-
-
-
-
-
-
-
- Cashboxes to Close
- ir.actions.act_window
- account.bank.statement
- form
- tree,form
- [('state','=','draft')]
-
-
-
- tree
-
-
-
-
-
- form
-
-
-
-
-
-
-
+
+
+
+ Cash Register
+ ir.actions.act_window
+ account.bank.statement
+ form
+ form,tree
+
+
+ [('journal_id.type', '=', 'cash')]
+
+
+
+ tree
+
+
+
+
+
+ form
+
+
+
+
+
+ All Register
+ ir.actions.act_window
+ account.bank.statement
+ form
+ form,tree
+
+
+
+
+
+ tree
+
+
+
+
+
+ form
+
+
+
+
+
+
+
+
+
+
-
+
-
-
diff --git a/addons/point_of_sale/wizard/pos_box_entries.py b/addons/point_of_sale/wizard/pos_box_entries.py
index fe57e6642f2..fce971fe2af 100644
--- a/addons/point_of_sale/wizard/pos_box_entries.py
+++ b/addons/point_of_sale/wizard/pos_box_entries.py
@@ -35,14 +35,16 @@ def get_journal(self, cr, uid, context):
"""
obj = self.pool.get('account.journal')
+ statement_obj = self.pool.get('account.bank.statement')
user = self.pool.get('res.users').browse(cr, uid, uid)
ids = obj.search(cr, uid, [('type', '=', 'cash'), ('company_id', '=', user.company_id.id)])
- res = obj.read(cr, uid, ids, ['id', 'name'], context)
- res = [(r['id'], r['name']) for r in res]
- res.insert(0, ('', ''))
+ obj_ids= statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', 'in', ids)])
+ res_obj = obj.read(cr, uid, ids, ['journal_id'], context)
+ res_obj = [(r1['id'])for r1 in res_obj]
+ res = statement_obj.read(cr, uid, obj_ids, ['journal_id'], context)
+ res = [(r['journal_id']) for r in res]
return res
-
class pos_box_entries(osv.osv_memory):
_name = 'pos.box.entries'
_description = 'Pos Box Entries'
@@ -62,15 +64,15 @@ class pos_box_entries(osv.osv_memory):
obj = self.pool.get('product.product')
ids = obj.search(cr, uid, [('income_pdt', '=', True)])
res = obj.read(cr, uid, ids, ['id', 'name'], context)
- res = [(r['id'], r['name']) for r in res]
+ res = [(r['id'],r['name']) for r in res]
res.insert(0, ('', ''))
return res
_columns = {
- 'name': fields.char('Name', size=32, required=True),
- 'journal_id': fields.selection(get_journal, "Journal", required=True),
+ 'name': fields.char('Description', size=32, required=True),
+ 'journal_id': fields.selection(get_journal, "Register", required=True),
'product_id': fields.selection(_get_income_product, "Operation", required=True),
'amount': fields.float('Amount', digits=(16, 2)),
'ref': fields.char('Ref', size=32),
diff --git a/addons/point_of_sale/wizard/pos_box_entries.xml b/addons/point_of_sale/wizard/pos_box_entries.xml
index e0f0a21402f..75dea51e4a2 100644
--- a/addons/point_of_sale/wizard/pos_box_entries.xml
+++ b/addons/point_of_sale/wizard/pos_box_entries.xml
@@ -1,8 +1,8 @@
-
+
-
+
Box Entries
pos.box.entries
@@ -14,11 +14,11 @@
-
+
-
@@ -31,8 +31,8 @@
pos.box.entries
form
form
- new
+ new
-
+
-
+
diff --git a/addons/point_of_sale/wizard/pos_box_out.py b/addons/point_of_sale/wizard/pos_box_out.py
index ea5768e5099..c4871a2f03a 100644
--- a/addons/point_of_sale/wizard/pos_box_out.py
+++ b/addons/point_of_sale/wizard/pos_box_out.py
@@ -49,8 +49,8 @@ class pos_box_out(osv.osv_memory):
return res
_columns = {
- 'name': fields.char('Name', size=32, required=True),
- 'journal_id': fields.selection(pos_box_entries.get_journal, "Journal", required=True),
+ 'name': fields.char('Description', size=32, required=True),
+ 'journal_id': fields.selection(pos_box_entries.get_journal, "Register", required=True),
'product_id': fields.selection(_get_expense_product, "Operation", required=True),
'amount': fields.float('Amount', digits=(16, 2)),
'ref': fields.char('Ref', size=32),
@@ -62,12 +62,12 @@ class pos_box_out(osv.osv_memory):
def get_out(self, cr, uid, ids, context):
"""
- Create the entries in the CashBox .
- @param self: The object pointer.
- @param cr: A database cursor
- @param uid: ID of the user currently logged in
- @param context: A standard dictionary
- @return :Return of operation of product
+ Create the entries in the CashBox .
+ @param self: The object pointer.
+ @param cr: A database cursor
+ @param uid: ID of the user currently logged in
+ @param context: A standard dictionary
+ @return :Return of operation of product
"""
args = {}
statement_obj = self.pool.get('account.bank.statement')
diff --git a/addons/point_of_sale/wizard/pos_box_out.xml b/addons/point_of_sale/wizard/pos_box_out.xml
index c634b4cf997..9922f211c6e 100644
--- a/addons/point_of_sale/wizard/pos_box_out.xml
+++ b/addons/point_of_sale/wizard/pos_box_out.xml
@@ -1,8 +1,8 @@
-
+
-
+
Box Out
pos.box.out
@@ -14,11 +14,11 @@
-
+
-
@@ -31,8 +31,8 @@
pos.box.out
form
form
- new
+ new
-
+
-
+
diff --git a/addons/point_of_sale/wizard/pos_close_statement.py b/addons/point_of_sale/wizard/pos_close_statement.py
index ca07180974b..22c3e77ad63 100644
--- a/addons/point_of_sale/wizard/pos_close_statement.py
+++ b/addons/point_of_sale/wizard/pos_close_statement.py
@@ -22,7 +22,6 @@
from osv import osv
from tools.translate import _
-
class pos_close_statement(osv.osv_memory):
_name = 'pos.close.statement'
_description = 'Close Statements'
@@ -38,27 +37,55 @@ class pos_close_statement(osv.osv_memory):
"""
company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id
list_statement = []
+ mod_obj = self.pool.get('ir.model.data')
statement_obj = self.pool.get('account.bank.statement')
journal_obj = self.pool.get('account.journal')
- journal_lst = journal_obj.search(cr, uid, [('company_id', '=', company_id), ('auto_cash', '=', True), ('check_dtls', '=', False)])
- journal_ids = journal_obj.browse(cr, uid, journal_lst)
+ user_obj="""select DISTINCT journal_id from pos_journal_users where user_id=%d"""%(uid)
+ cr.execute(user_obj)
+ user_journals1= cr.fetchall()
+ lst1=map(lambda x1:x1[0],user_journals1)
+ journal_ids = journal_obj.browse(cr, uid, lst1)
+
for journal in journal_ids:
ids = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', '=', journal.id)])
- list_statement = ids
- statement_obj.button_confirm(cr, uid, ids, context)
- if not list_statement:
- return {}
+ sql = """ select id from account_journal
+ where auto_cash = 'True'
+ and company_id =%d and id =%d"""%(company_id,journal.id)
+ cr.execute(sql)
+ user_journals= cr.fetchall()
+ lst=map(lambda x1:x1[0],user_journals)
+ journal_ids1 = journal_obj.browse(cr, uid, lst)
+ #list_statement=[]
+
+ for journal1 in journal_ids1:
+ ids = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', '=', journal.id)])
+ if not ids:
+ raise osv.except_osv(_('Message'), _('Journals are allready closed'))
+ else:
+ list_statement.append(ids[0])
+ if not journal.check_dtls:
+ statement_obj.button_confirm_bank(cr, uid, ids, context)
+ # if not list_statement:
+ # return {}
+ # model_data_ids = mod_obj.search(cr, uid,[('model','=','ir.ui.view'),('name','=','view_bank_statement_tree')], context=context)
+ # resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
+
+ data_obj = self.pool.get('ir.model.data')
+ id2 = data_obj._get_id(cr, uid, 'account', 'view_bank_statement_tree')
+ id3 = data_obj._get_id(cr, uid, 'account', 'view_bank_statement_form2')
+ if id2:
+ id2 = data_obj.browse(cr, uid, id2, context=context).res_id
+ if id3:
+ id3 = data_obj.browse(cr, uid, id3, context=context).res_id
return {
- 'domain': "[('id','in', list_statement)]",
+ 'domain': "[('id','in'," + str(list_statement) + ")]",
'name': 'Close Statements',
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'account.bank.statement',
- 'view_id': False,
- 'type': 'ir.actions.act_window'
-}
+ 'views': [(id2, 'tree'),(id3, 'form')],
+ 'type': 'ir.actions.act_window'}
pos_close_statement()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/point_of_sale/wizard/pos_open_statement.py b/addons/point_of_sale/wizard/pos_open_statement.py
index 7fb33ba7f09..8db05d32f53 100644
--- a/addons/point_of_sale/wizard/pos_open_statement.py
+++ b/addons/point_of_sale/wizard/pos_open_statement.py
@@ -23,7 +23,6 @@ from osv import osv
from tools.translate import _
import time
-
class pos_open_statement(osv.osv_memory):
_name = 'pos.open.statement'
_description = 'Open Statements'
@@ -38,67 +37,91 @@ class pos_open_statement(osv.osv_memory):
@return : Blank Directory
"""
list_statement = []
+ mod_obj = self.pool.get('ir.model.data')
company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id
statement_obj = self.pool.get('account.bank.statement')
singer_obj = self.pool.get('singer.statement')
sequence_obj = self.pool.get('ir.sequence')
journal_obj = self.pool.get('account.journal')
- journal_lst = journal_obj.search(cr, uid, [('company_id', '=', company_id), ('auto_cash', '=', True)])
- journal_ids = journal_obj.browse(cr, uid, journal_lst)
+ user_obj="""select DISTINCT journal_id from pos_journal_users where user_id=%d"""%(uid)
+ cr.execute(user_obj)
+ user_journals1= cr.fetchall()
+ lst1=map(lambda x1:x1[0],user_journals1)
+ journal_ids = journal_obj.browse(cr, uid, lst1)
+
for journal in journal_ids:
ids = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', '=', journal.id)])
- if len(ids):
- raise osv.except_osv(_('Message'), _('You can not open a Cashbox for "%s". \n Please close the cashbox related to. ' % (journal.name)))
- sql = """ Select id from account_bank_statement
- where journal_id=%d
- and company_id =%d
- order by id desc limit 1""" % (journal.id, company_id)
+ sql = """ select id from account_journal
+ where auto_cash = 'True'
+ and company_id =%d and id =%d"""%(company_id,journal.id)
cr.execute(sql)
- st_id = cr.fetchone()
- number = ''
- if journal.statement_sequence_id:
- number = sequence_obj.get_id(cr, uid, journal.id)
- else:
- number = sequence_obj.get(cr, uid,
- 'account.bank.statement')
+ user_journals= cr.fetchall()
+ lst=map(lambda x1:x1[0],user_journals)
+ journal_ids1 = journal_obj.browse(cr, uid, lst)
- # statement_id=statement_obj.create(cr,uid,{'journal_id':journal.id,
- # 'company_id':company_id,
- # 'user_id':uid,
- # 'state':'open',
- # 'name':number
- # })
- period = statement_obj._get_period(cr, uid, context) or None
- cr.execute("INSERT INTO account_bank_statement(journal_id,company_id,user_id,state,name, period_id,date) VALUES(%d,%d,%d,'open','%s',%d,'%s')"%(journal.id, company_id, uid, number, period, time.strftime('%Y-%m-%d %H:%M:%S')))
- cr.execute("select id from account_bank_statement where journal_id=%d and company_id=%d and user_id=%d and state='open' and name='%s'"%(journal.id, company_id, uid, number))
- statement_id = cr.fetchone()[0]
- if st_id:
- statemt_id = statement_obj.browse(cr, uid, st_id[0])
- list_statement.append(statemt_id.id)
- if statemt_id and statemt_id.ending_details_ids:
- statement_obj.write(cr, uid, [statement_id], {
- 'balance_start': statemt_id.balance_end,
- 'state': 'open',
- })
- if statemt_id.ending_details_ids:
- for i in statemt_id.ending_details_ids:
- c = singer_obj.create(cr, uid, {
- 'pieces': i.pieces,
- 'number': i.number,
- 'starting_id': statement_id,
- })
- return {
- 'domain': "[('id','in', ["+','.join(map(str,list_statement))+"])]",
- 'name': 'Open Statement',
- 'view_type': 'form',
- 'view_mode': 'tree,form',
- 'res_model': 'account.bank.statement',
- 'view_id': False, # TODO: REFERENCE RIGHT VIEWS
- 'type': 'ir.actions.act_window'
-}
- return {}
+ for journal1 in journal_ids1:
+ ids1 = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', '=', journal.id)])
+ if len(ids):
+ raise osv.except_osv(_('Message'), _('You can not open a Cashbox for "%s". \n Please close the cashbox related to. ' %(journal.name)))
+ sql = """ Select id from account_bank_statement
+ where journal_id =%d
+ and company_id =%d
+ order by id desc limit 1""" %(journal.id, company_id)
+ cr.execute(sql)
+ st_id = cr.fetchone()
+ number = ''
+ if journal.sequence_id:
+ number = sequence_obj.get_id(cr, uid, journal.id)
+ else:
+ number = sequence_obj.get(cr, uid,
+ 'account.bank.statement')
+ statement_id=statement_obj.create(cr,uid,{'journal_id':journal.id,
+ 'company_id':company_id,
+ 'user_id':uid,
+ 'state':'open',
+ 'name':number
+ })
+ statement_obj.button_open(cr,uid,[statement_id],context)
+ # period = statement_obj._get_period(cr, uid, context) or None
+ # cr.execute("INSERT INTO account_bank_statement(journal_id,company_id,user_id,state,name, period_id,date) VALUES(%d,%d,%d,'open','%s',%d,'%s')"%(journal.id, company_id, uid, number, period, time.strftime('%Y-%m-%d %H:%M:%S')))
+ # cr.commit()
+ # cr.execute("select id from account_bank_statement where journal_id=%d and company_id=%d and user_id=%d and state='open' and name='%s'"%(journal.id, company_id, uid, number))
+ # statement_id = cr.fetchone()[0]
+ # print "statement_id",statement_id
+ # if st_id:
+ # statemt_id = statement_obj.browse(cr, uid, st_id[0])
+ # list_statement.append(statemt_id.id)
+ # if statemt_id and statemt_id.ending_details_ids:
+ # statement_obj.write(cr, uid, [statement_id], {
+ # 'balance_start': statemt_id.balance_end,
+ # 'state': 'open',
+ # })
+ # if statemt_id.ending_details_ids:
+ # for i in statemt_id.ending_details_ids:
+ # c = statement_obj.create(cr, uid, {
+ # 'pieces': i.pieces,
+ # 'number': i.number,
+ # 'starting_id': statement_id,
+ # })
+ data_obj = self.pool.get('ir.model.data')
+ id2 = data_obj._get_id(cr, uid, 'account', 'view_bank_statement_tree')
+ id3 = data_obj._get_id(cr, uid, 'account', 'view_bank_statement_form2')
+ if id2:
+ id2 = data_obj.browse(cr, uid, id2, context=context).res_id
+ if id3:
+ id3 = data_obj.browse(cr, uid, id3, context=context).res_id
+
+ return {
+# 'domain': "[('id','in', ["+','.join(map(str,list_statement))+"])]",
+ 'domain': "[('state','=','open')]",
+ 'name': 'Open Statement',
+ 'view_type': 'form',
+ 'view_mode': 'tree,form',
+ 'res_model': 'account.bank.statement',
+ 'views': [(id2, 'tree'),(id3, 'form')],
+ 'type': 'ir.actions.act_window'
+}
pos_open_statement()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/point_of_sale/wizard/pos_payment.py b/addons/point_of_sale/wizard/pos_payment.py
index cd8a85ea8c2..403e92b11b8 100644
--- a/addons/point_of_sale/wizard/pos_payment.py
+++ b/addons/point_of_sale/wizard/pos_payment.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 .
#
##############################################################################
@@ -31,31 +31,31 @@ import pos_receipt
class pos_make_payment(osv.osv_memory):
_name = 'pos.make.payment'
_description = 'Point of Sale Payment'
-
+
def default_get(self, cr, uid, fields, context):
- """
+ """
To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param fields: List of fields for which we want default values
- @param context: A standard dictionary
- @return: A dictionary which of fields with values.
+ @param fields: List of fields for which we want default values
+ @param context: A standard dictionary
+ @return: A dictionary which of fields with values.
"""
res = super(pos_make_payment, self).default_get(cr, uid, fields, context=context)
-
- active_id = context and context.get('active_id',False)
- if active_id:
+
+ active_id = context and context.get('active_id',False)
+ if active_id:
j_obj = self.pool.get('account.journal')
company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id
journal = j_obj.search(cr, uid, [('type', '=', 'cash'), ('company_id', '=', company_id)])
-
+
if journal:
journal = journal[0]
else:
journal = None
wf_service = netsvc.LocalService("workflow")
-
+
order_obj=self.pool.get('pos.order')
order = order_obj.browse(cr, uid, active_id, context)
#get amount to pay
@@ -66,50 +66,50 @@ class pos_make_payment(osv.osv_memory):
elif order.amount_paid > 0.0:
order_obj.write(cr, uid, [active_id], {'state': 'advance'})
invoice_wanted_checked = False
-
+
current_date = time.strftime('%Y-%m-%d')
-
+
if 'journal' in fields:
- res.update({'journal':journal})
+ res.update({'journal':journal})
if 'amount' in fields:
- res.update({'amount':amount})
+ res.update({'amount':amount})
if 'invoice_wanted' in fields:
- res.update({'invoice_wanted':invoice_wanted_checked})
+ res.update({'invoice_wanted':invoice_wanted_checked})
if 'payment_date' in fields:
res.update({'payment_date':current_date})
- if 'payment_name' in fields:
- res.update({'payment_name':'Payment'})
+ if 'payment_name' in fields:
+ res.update({'payment_name':'Payment'})
return res
-
+
def view_init(self, cr, uid, fields_list, context=None):
res = super(pos_make_payment, self).view_init(cr, uid, fields_list, context=context)
- active_id = context and context.get('active_id', False) or False
+ active_id = context and context.get('active_id', False) or False
if active_id:
order = self.pool.get('pos.order').browse(cr, uid, active_id)
if not order.lines:
raise osv.except_osv('Error!','No order lines defined for this sale ')
return True
-
+
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
- """
+ """
Changes the view dynamically
-
+
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
-
+ @param context: A standard dictionary
+
@return: New arch of view.
-
+
"""
-
-
+
+
result = super(pos_make_payment, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False)
active_model = context.get('active_model')
active_id = context.get('active_id', False)
if not active_id or (active_model and active_model != 'pos.order'):
- return result
-
+ return result
+
order = self.pool.get('pos.order').browse(cr, uid, active_id)
if order.amount_total == order.amount_paid:
result['arch'] = """
@@ -120,22 +120,23 @@ class pos_make_payment(osv.osv_memory):
- """
+ """
return result
def check(self, cr, uid, ids, context):
-
+
"""Check the order:
if the order is not paid: continue payment,
if the order is paid print invoice (if wanted) or ticket.
"""
- active_id = context and context.get('active_id',False)
+ active_id = context and context.get('active_id',False)
order_obj = self.pool.get('pos.order')
- jrnl_obj = self.pool.get('account.journal')
+ jrnl_obj = self.pool.get('account.journal')
order = order_obj.browse(cr, uid, active_id, context)
+ order_name = order.name
amount = order.amount_total - order.amount_paid
data = self.read(cr, uid, ids)[0]
-
+
# Todo need to check ...
if amount !=0.0:
invoice_wanted = data['invoice_wanted']
@@ -143,61 +144,140 @@ class pos_make_payment(osv.osv_memory):
if data.get('journal',False):
jrnl_used=jrnl_obj.browse(cr, uid, data['journal'])
order_obj.write(cr, uid, [active_id], {'invoice_wanted': invoice_wanted})
- order_obj.add_payment(cr, uid, active_id, data, context=context)
+ order_obj.add_payment(cr, uid, active_id, data, context=context)
+
+ res_obj = self.pool.get('res.company')
+ inv_ref = self.pool.get('account.invoice')
+ inv_line_ref = self.pool.get('account.invoice.line')
+ product_obj= self.pool.get('product.product')
+ inv_ids = []
+ for order in self.pool.get('pos.order').browse(cr, uid, ids, context):
+# curr_c = order.user_salesman_id.company_id
+ make_obj = self.pool.get('pos.make.payment').browse(cr, uid, uid)
+ if invoice_wanted:
+ if order.invoice_id:
+ inv_ids.append(order.invoice_id.id)
+# continue
+# if not make_obj.partner_id:
+# raise osv.except_osv(_('Error'), _('Please provide a partner for the sale.'))
+ acc= make_obj.partner_id.property_account_receivable.id
+ inv = {
+ 'name': 'Invoice from POS: '+order_name,
+ 'origin': order_name,
+ 'account_id':acc,
+ 'journal_id':order.sale_journal.id or None,
+ 'type': 'out_invoice',
+ 'reference': order.name,
+ 'partner_id': make_obj.partner_id.id,
+ 'comment': order.note or '',
+ }
+ inv.update(inv_ref.onchange_partner_id(cr, uid, [], 'out_invoice', make_obj.partner_id.id)['value'])
+ if not inv.get('account_id', None):
+ inv['account_id'] = acc
+ inv_id = inv_ref.create(cr, uid, inv, context)
+ self.write(cr, uid, [order.id], {'invoice_id': inv_id, 'state': 'invoiced'})
+ inv_ids.append(inv_id)
+ for line in order.lines:
+ inv_line = {
+ 'invoice_id': inv_id,
+ 'product_id': line.product_id.id,
+ 'quantity': line.qty,
+ }
+ inv_name = product_obj.name_get(cr, uid, [line.product_id.id], context=context)[0][1]
+
+ inv_line.update(inv_line_ref.product_id_change(cr, uid, [],
+ line.product_id.id,
+ line.product_id.uom_id.id,
+ line.qty, partner_id = make_obj.partner_id.id, fposition_id=make_obj.partner_id.property_account_position.id)['value'])
+# inv_line['price_unit'] = line.price_unit
+# inv_line['discount'] = line.discount
+# inv_line['account_id'] = acc
+# inv_line['name'] = inv_name
+ inv_line['price_unit'] = amount
+ inv_line['discount'] = line.discount
+ inv_line['account_id'] = acc
+ inv_line['name'] = inv_name
+ inv_line['invoice_line_tax_id'] = ('invoice_line_tax_id' in inv_line)\
+ and [(6, 0, inv_line['invoice_line_tax_id'])] or []
+ inv_line_ref.create(cr, uid, inv_line, context)
+ for i in inv_ids:
+ wf_service = netsvc.LocalService("workflow")
+ wf_service.trg_validate(uid, 'account.invoice', i, 'invoice_open', cr)
+# return inv_ids
# Todo need to check
# if amount<=0.0:
# context.update({'flag':True})
# order_obj.action_paid(cr,uid,[active_id],context)
- if order_obj.test_paid(cr, uid, [active_id]):
- if order.partner_id and order.invoice_wanted:
- return self.create_invoice(cr, uid, ids, context)
- else:
- context.update({'flag': True})
- order_obj.action_paid(cr, uid, [active_id], context)
+
+# def test_paid(self, cr, uid, ids, context=None):
+# """ Test all amount is paid for this order
+# @return: True
+# """
+# for order in self.browse(cr, uid, ids, context):
+# if order.lines and not order.amount_total:
+# return True
+# if (not order.lines) or (not order.statement_ids) or \
+# Decimal(str(order.amount_total))!=Decimal(str(order.amount_paid)):
+# return False
+# return True
+# if order_obj.test_paid(cr, uid, [active_id]):
+ if order_obj.browse(cr, uid, [active_id]):
+ if make_obj.partner_id and make_obj.invoice_wanted:
+ order_obj.write(cr, uid, [active_id],{'state':'paid'})
if context.get('return'):
- order_obj.write(cr, uid, [active_id],{'state':'done'})
+ order_obj.write(cr, uid, [active_id],{'state':'done'})
else:
- order_obj.write(cr, uid, [active_id],{'state':'paid'})
- return self.print_report(cr, uid, ids, context)
+ order_obj.write(cr, uid, [active_id],{'state':'paid'})
+ return self.print_report(cr, uid, ids, context)
+# return self.create_invoice(cr, uid, ids, context)
+ else:
+ context.update({'flag': True})
+ order_obj.action_paid(cr, uid, [active_id], context)
+ if context.get('return'):
+ order_obj.write(cr, uid, [active_id],{'state':'done'})
+ else:
+ order_obj.write(cr, uid, [active_id],{'state':'paid'})
+ return self.print_report(cr, uid, ids, context)
if order.amount_paid > 0.0:
context.update({'flag': True})
# Todo need to check
- order_obj.action_paid(cr, uid, [active_id], context)
+ order_obj.action_paid(cr, uid, [active_id], context)
self.pool.get('pos.order').write(cr, uid, [active_id],{'state':'advance'})
- return self.print_report(cr, uid, ids, context)
- return {}
+ return self.print_report(cr, uid, ids, context)
+# return {}
+ return inv_ids
+
-
def create_invoice(self, cr, uid, ids, context):
-
+
+ """
+ Create a invoice
"""
- Create a invoice
- """
wf_service = netsvc.LocalService("workflow")
- active_ids = [context and context.get('active_id',False)]
+ active_ids = [context and context.get('active_id',False)]
for i in active_ids:
wf_service.trg_validate(uid, 'pos.order', i, 'invoice', cr)
- datas = {'ids' : context.get('active_id', [])}
- return {
+ datas = {'ids' : context.get('active_id', [])}
+ return {
'type' : 'ir.actions.report.xml',
'report_name':'pos.invoice',
- 'datas' : datas,
- }
-
+ 'datas' : datas,
+ }
+
def print_report(self, cr, uid, ids, context=None):
- """
- @summary: To get the date and print the report
+ """
+ @summary: To get the date and print the report
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return : retrun report
- """
+ """
if not context:
context={}
- active_id=context.get('active_id',[])
+ active_id=context.get('active_id',[])
datas = {'ids' : [active_id]}
- res = {}
+ res = {}
datas['form'] = res
return {
@@ -207,7 +287,7 @@ class pos_make_payment(osv.osv_memory):
}
_columns = {
- 'journal':fields.selection(pos_box_entries.get_journal, "Journal",required=True),
+ 'journal':fields.selection(pos_box_entries.get_journal, "Cash Register",required=True),
'product_id': fields.many2one('product.product', "Acompte"),
'amount':fields.float('Amount', digits=(16,2) ,required= True),
'payment_name': fields.char('Payment name', size=32, required=True),
@@ -215,8 +295,15 @@ class pos_make_payment(osv.osv_memory):
'is_acc': fields.boolean('Accompte'),
'invoice_wanted': fields.boolean('Invoice'),
'num_sale':fields.char('Num.File', size=32),
+ 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist'),
+ 'partner_id': fields.many2one('res.partner', 'Customer'),
+ 'invoice_id': fields.many2one('account.invoice', 'Invoice'),
+ 'state': fields.selection([('draft', 'Draft'), ('payment', 'Payment'),
+ ('advance','Advance'),
+ ('paid', 'Paid'), ('done', 'Done'), ('invoiced', 'Invoiced'), ('cancel', 'Cancel')],
+ 'State', readonly=True, ),
}
-
+
pos_make_payment()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/wizard/pos_payment.xml b/addons/point_of_sale/wizard/pos_payment.xml
index 6608f837a63..ad71d177357 100644
--- a/addons/point_of_sale/wizard/pos_payment.xml
+++ b/addons/point_of_sale/wizard/pos_payment.xml
@@ -12,11 +12,11 @@
form
-
-
+
+
-
+
@@ -24,6 +24,11 @@
+
+
+
+
+
@@ -42,4 +47,4 @@
-
\ No newline at end of file
+
diff --git a/addons/point_of_sale/wizard/pos_receipt.py b/addons/point_of_sale/wizard/pos_receipt.py
index daf63fd6674..33252f20606 100644
--- a/addons/point_of_sale/wizard/pos_receipt.py
+++ b/addons/point_of_sale/wizard/pos_receipt.py
@@ -41,10 +41,10 @@ class pos_receipt(osv.osv_memory):
@return: New arch of view with new columns.
"""
order_lst = self. pool.get('pos.order').browse(cr, uid, context['active_id'])
- for order in order_lst:
- if order.state_2 in ('to_verify'):
- raise osv.except_osv(_('Error!', 'Can not print the receipt because of discount and/or payment '))
- True
+# for order in order_lst:
+# if order.state_2 in ('to_verify'):
+# raise osv.except_osv(_('Error!', 'Can not print the receipt because of discount and/or payment '))
+# True
def print_report(self, cr, uid, ids, context=None):
diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py
index 840c5f74d67..4aad723b2f9 100644
--- a/addons/procurement/procurement.py
+++ b/addons/procurement/procurement.py
@@ -291,8 +291,7 @@ class procurement_order(osv.osv):
if not procurement.product_id.seller_ids:
cr.execute('update procurement_order set message=%s where id=%s', (_('No supplier defined for this product !'), procurement.id))
return False
- partner_list = sorted([(partner_id.sequence, partner_id) for partner_id in procurement.product_id.seller_ids if partner_id and partner_id.sequence])
- partner = partner_list and partner_list[0] and partner_list[0][1] and partner_list[0][1].name or False
+ partner = procurement.product_id.seller_id #Taken Main Supplier of Product of Procurement.
if user.company_id and user.company_id.partner_id:
if partner.id == user.company_id.partner_id.id:
diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml
index fff13e36330..11c1287152c 100644
--- a/addons/procurement/procurement_view.xml
+++ b/addons/procurement/procurement_view.xml
@@ -70,7 +70,7 @@
-
+
@@ -119,6 +119,7 @@
{'search_default_current':1}
{'search_default_Current':1}
+ The procurement order will schedule a proposal for automatic procurement for the product concerned. This procurement will start a task, a purchase order form for the supplier or a production depending on the product configuration.
@@ -139,6 +140,7 @@
form
tree,form
[('state','=','exception')]
+ For each customer order line or raw materials in a manufacturing order, there is a procurement form . In normal system use, procurement orders are automatically generated by Open ERP. But if there are configuration problems, the system can remain blocked by a procurement without generating a corresponding document. It is a procurement exception. Some problems are link to timing and will be correct automatically by the system. If there is no procurement rule, the exception must be corrected manually.
@@ -255,18 +257,18 @@
-
+
+
+
+
+
+
diff --git a/addons/product/product.py b/addons/product/product.py
index cbb2ffefd67..8029f8309d3 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -59,7 +59,7 @@ class product_uom(osv.osv):
def _factor_inv_write(self, cursor, user, id, name, value, arg, context):
return self.write(cursor, user, id, {'factor': self._compute_factor_inv(value)}, context=context)
-
+
def create(self, cr, uid, data, context={}):
if 'factor_inv' in data:
if data['factor_inv'] <> 1:
@@ -180,7 +180,7 @@ class product_category(osv.osv):
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of product categories."),
'type': fields.selection([('view','View'), ('normal','Normal')], 'Category Type'),
}
-
+
_defaults = {
'type' : lambda *a : 'normal',
@@ -212,14 +212,18 @@ product_category()
class product_template(osv.osv):
_name = "product.template"
_description = "Product Template"
- def _calc_seller_delay(self, cr, uid, ids, name, arg, context={}):
+ def _calc_seller(self, cr, uid, ids, fields, arg, context={}):
result = {}
for product in self.browse(cr, uid, ids, context):
+ for field in fields:
+ result[product.id] = {field:False}
+ result[product.id]['seller_delay'] = 1
if product.seller_ids:
partner_list = sorted([(partner_id.sequence, partner_id) for partner_id in product.seller_ids if partner_id and partner_id.sequence])
- result[product.id] = partner_list and partner_list[0] and partner_list[0][1] and partner_list[0][1].delay or False
- else:
- result[product.id] = 1
+ main_supplier = partner_list and partner_list[0] and partner_list[0][1] or False
+ result[product.id]['seller_delay'] = main_supplier and main_supplier.delay or 1
+ result[product.id]['seller_qty'] = main_supplier and main_supplier.qty or 0.0
+ result[product.id]['seller_id'] = main_supplier and main_supplier.name.id or False
return result
_columns = {
@@ -230,8 +234,8 @@ class product_template(osv.osv):
'description_sale': fields.text('Sale Description',translate=True),
'type': fields.selection([('product','Stockable Product'),('consu', 'Consumable'),('service','Service')], 'Product Type', required=True, help="Will change the way procurements are processed. Consumables are stockable products with infinite stock, or for use when you have no inventory management in the system."),
'supply_method': fields.selection([('produce','Produce'),('buy','Buy')], 'Supply method', required=True, help="Produce will generate production order or tasks, according to the product type. Purchase will trigger purchase orders when requested."),
- 'sale_delay': fields.float('Customer Lead Time', help="This is the average time between the confirmation of the customer order and the delivery of the finished products. It's the time you promise to your customers."),
- 'produce_delay': fields.float('Manufacturing Lead Time', help="Average time to produce this product. This is only for the production order and, if it is a multi-level bill of material, it's only for the level of this product. Different lead times will be summed for all levels and purchase orders."),
+ 'sale_delay': fields.float('Customer Lead Time', help="This is the average delay in days between the confirmation of the customer order and the delivery of the finished products. It's the time you promise to your customers."),
+ 'produce_delay': fields.float('Manufacturing Lead Time', help="Average delay in days to produce this product. This is only for the production order and, if it is a multi-level bill of material, it's only for the level of this product. Different lead times will be summed for all levels and purchase orders."),
'procure_method': fields.selection([('make_to_stock','Make to Stock'),('make_to_order','Make to Order')], 'Procurement Method', required=True, help="'Make to Stock': When needed, take from the stock or wait until re-supplying. 'Make to Order': When needed, purchase or produce for the procurement request."),
'rental': fields.boolean('Can be Rent'),
'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]" ,help="Select category for the current product"),
@@ -254,7 +258,9 @@ class product_template(osv.osv):
help='Coefficient to convert UOM to UOS\n'
' uos = uom * coeff'),
'mes_type': fields.selection((('fixed', 'Fixed'), ('variable', 'Variable')), 'Measure Type', required=True),
- 'seller_delay': fields.function(_calc_seller_delay, method=True, type='integer', string='Supplier Lead Time', help="This is the average delay in days between the purchase order confirmation and the reception of goods for this product and for the default supplier. It is used by the scheduler to order requests based on reordering delays."),
+ 'seller_delay': fields.function(_calc_seller, method=True, type='integer', string='Supplier Lead Time', multi="seller_delay", help="This is the average delay in days between the purchase order confirmation and the reception of goods for this product and for the default supplier. It is used by the scheduler to order requests based on reordering delays."),
+ 'seller_qty': fields.function(_calc_seller, method=True, type='float', string='Supplier Quantity', multi="seller_qty", help="This is minimum quantity to purchase from Main Supplier."),
+ 'seller_id': fields.function(_calc_seller, method=True, type='many2one', relation="res.partner", string='Main Supplier', help="Main Supplier who has highest priority in Supplier List.", multi="seller_id"),
'seller_ids': fields.one2many('product.supplierinfo', 'product_id', 'Partners'),
'loc_rack': fields.char('Rack', size=16),
'loc_row': fields.char('Row', size=16),
@@ -616,12 +622,32 @@ product_packaging()
class product_supplierinfo(osv.osv):
_name = "product.supplierinfo"
_description = "Information about a product supplier"
+ def _calc_qty(self, cr, uid, ids, fields, arg, context={}):
+ result = {}
+ product_uom_pool = self.pool.get('product.uom')
+ for supplier_info in self.browse(cr, uid, ids, context):
+ for field in fields:
+ result[supplier_info.id] = {field:False}
+ if supplier_info.product_uom.id:
+ qty = product_uom_pool._compute_qty(cr, uid, supplier_info.product_uom.id, supplier_info.min_qty, to_uom_id=supplier_info.product_id.uom_id.id)
+ else:
+ qty = supplier_info.min_qty
+ result[supplier_info.id]['qty'] = qty
+ return result
+
+ def _get_uom_id(self, cr, uid, *args):
+ cr.execute('select id from product_uom order by id limit 1')
+ res = cr.fetchone()
+ return res and res[0] or False
+
_columns = {
'name' : fields.many2one('res.partner', 'Supplier', required=True, ondelete='cascade', help="Supplier of this product"),
'product_name': fields.char('Supplier Product Name', size=128, help="This supplier's product name will be used when printing a request for quotation. Keep empty to use the internal one."),
'product_code': fields.char('Supplier Product Code', size=64, help="This supplier's product code will be used when printing a request for quotation. Keep empty to use the internal one."),
'sequence' : fields.integer('Sequence', help="Assigns the priority to the list of product supplier."),
- 'qty' : fields.float('Minimal Quantity', required=True, help="The minimal quantity to purchase to this supplier, expressed in the default unit of measure."),
+ 'product_uom': fields.many2one('product.uom', string="UOM", help="Supplier Product UoM."),
+ 'min_qty': fields.float('Minimal Quantity', required=True, help="The minimal quantity to purchase to this supplier, expressed in the default unit of measure."),
+ 'qty': fields.function(_calc_qty, method=True, store=True, type='float', string='Quantity', multi="qty", help="This is a quantity which is converted into Default Uom."),
'product_id' : fields.many2one('product.template', 'Product', required=True, ondelete='cascade', select=True),
'delay' : fields.integer('Delivery Lead Time', required=True, help="Lead time in days between the confirmation of the purchase order and the reception of the products in your warehouse. Used by the scheduler for automatic computation of the purchase order planning."),
'pricelist_ids': fields.one2many('pricelist.partnerinfo', 'suppinfo_id', 'Supplier Pricelist'),
@@ -633,6 +659,55 @@ class product_supplierinfo(osv.osv):
'delay': lambda *a: 1,
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'product.supplierinfo', context=c)
}
+ def _check_uom(self, cr, uid, ids):
+ for supplier_info in self.browse(cr, uid, ids):
+ if supplier_info.product_uom and supplier_info.product_uom.category_id.id <> supplier_info.product_id.uom_id.category_id.id:
+ return False
+ return True
+
+ _constraints = [
+ (_check_uom, 'Error: The default UOM and the Supplier Product UOM must be in the same category.', ['product_uom']),
+ ]
+ def price_get(self, cr, uid, supplier_ids, product_id, product_qty=1, context=None):
+ """
+ Calculate price from supplier pricelist.
+ @param supplier_ids: Ids of res.partner object.
+ @param product_id: Id of product.
+ @param product_qty: specify quantity to purchase.
+ """
+ if not context:
+ context = {}
+ if type(supplier_ids) in (int,long,):
+ supplier_ids = [supplier_ids]
+ res = {}
+ product_pool = self.pool.get('product.product')
+ partner_pool = self.pool.get('res.partner')
+ pricelist_pool = self.pool.get('product.pricelist')
+ currency_pool = self.pool.get('res.currency')
+ currency_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.currency_id.id
+ for supplier in partner_pool.browse(cr, uid, supplier_ids, context=context):
+ # Compute price from standard price of product
+ price = product_pool.price_get(cr, uid, [product_id], 'standard_price')[product_id]
+
+ # Compute price from Purchase pricelist of supplier
+ pricelist_id = supplier.property_product_pricelist_purchase.id
+ if pricelist_id:
+ price = pricelist_pool.price_get(cr, uid, [pricelist_id], product_id, product_qty).setdefault(pricelist_id, 0)
+ price = currency_pool.compute(cr, uid, pricelist_pool.browse(cr, uid, pricelist_id).currency_id.id, currency_id, price)
+
+ # Compute price from supplier pricelist which are in Supplier Information
+ supplier_info_ids = self.search(cr, uid, [('name','=',supplier.id),('product_id','=',product_id)])
+ if supplier_info_ids:
+ cr.execute('SELECT * ' \
+ 'FROM pricelist_partnerinfo ' \
+ 'WHERE suppinfo_id IN %s' \
+ 'AND min_quantity <= %s ' \
+ 'ORDER BY min_quantity DESC LIMIT 1', (tuple(supplier_info_ids),product_qty,))
+ res2 = cr.dictfetchone()
+ if res2:
+ price = res2['price']
+ res[supplier.id] = price
+ return res
_order = 'sequence'
product_supplierinfo()
diff --git a/addons/product/product_demo.xml b/addons/product/product_demo.xml
index a2405f33b52..1dd0bca9d00 100644
--- a/addons/product/product_demo.xml
+++ b/addons/product/product_demo.xml
@@ -356,114 +356,133 @@
10
+ 1
5
10
+ 1
5
1
+ 1
1
1
+ 1
1
1
+ 1
2
1
+ 1
2
1
+ 1
2
1
+ 1
1
1
+ 1
1
1
+ 1
1
1
+ 1
1
1
+ 1
1
1
+ 1
1
1
+ 1
10
1
+ 1
10
1
+ 1
10
10
+ 1
10
10
+ 1
10
10
+ 1
10
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index f8620931b5e..7b95054a4b7 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -149,6 +149,8 @@
+
+
@@ -453,8 +455,10 @@
-
+
+
+
diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py
index 328d8d5707f..76bf07ad96a 100644
--- a/addons/product/report/product_pricelist.py
+++ b/addons/product/report/product_pricelist.py
@@ -23,7 +23,7 @@ import time
from report import report_sxw
from osv import osv
import pooler
-
+from tools.translate import _
class product_pricelist(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(product_pricelist, self).__init__(cr, uid, name, context=context)
diff --git a/addons/product/wizard/product_price.py b/addons/product/wizard/product_price.py
index e5d73945c13..efca2fb6cc1 100644
--- a/addons/product/wizard/product_price.py
+++ b/addons/product/wizard/product_price.py
@@ -44,18 +44,14 @@ class product_price_list(osv.osv_memory):
}
def print_report(self, cr, uid, ids, context=None):
-
"""
- To get the date and print the report
- @param self: The object pointer.
- @param cr: A database cursor
- @param uid: ID of the user currently logged in
- @param context: A standard dictionary
- @return : return report
+ To get the date and print the report
+ @return : return report
"""
datas = {'ids': context.get('active_ids', [])}
res = self.read(cr, uid, ids, ['price_list','qty1', 'qty2','qty3','qty4','qty5'], context)
res = res and res[0] or {}
+ price_dict = self.pool.get('product.pricelist').price_get(cr, uid, [res['price_list']], 1, 1.0)
datas['form'] = res
return {
'type': 'ir.actions.report.xml',
diff --git a/addons/product/wizard/product_price_view.xml b/addons/product/wizard/product_price_view.xml
index a253a0e00af..bd5b06e30a1 100644
--- a/addons/product/wizard/product_price_view.xml
+++ b/addons/product/wizard/product_price_view.xml
@@ -5,11 +5,12 @@
- Price List
+ Price per unit
product.price_list
form
-
+
+
@@ -19,15 +20,17 @@
-
+
diff --git a/addons/product_manufacturer/i18n/fr.po b/addons/product_manufacturer/i18n/fr.po
new file mode 100644
index 00000000000..20ab19206f6
--- /dev/null
+++ b/addons/product_manufacturer/i18n/fr.po
@@ -0,0 +1,105 @@
+# 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-25 13:27+0000\n"
+"PO-Revision-Date: 2010-07-22 09:16+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-07-23 04:08+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: product_electronic
+#: model:ir.module.module,description:product_electronic.module_meta_information
+msgid "A module that add manufacturers and attributes on the product form"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.product,manufacturer_pref:0
+msgid "Manufacturer product code"
+msgstr ""
+
+#. module: product_electronic
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.electronic.attribute:0
+msgid "Product Template Name"
+msgstr ""
+
+#. module: product_electronic
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+
+#. module: product_electronic
+#: model:ir.model,name:product_electronic.model_product_electronic_attribute
+msgid "Product attributes"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.product:0
+msgid "Manufacturing data"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.product:0
+msgid "Product reference"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.electronic.attribute,name:0
+msgid "Attribute"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.electronic.attribute,product_id:0
+msgid "Product"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.electronic.attribute,value:0
+msgid "Value"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.product:0
+msgid "Manufacturing Data"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.product:0
+msgid "Product name"
+msgstr ""
+
+#. module: product_electronic
+#: view:product.product:0
+#: field:product.product,attribute_ids:0
+msgid "Attributes"
+msgstr ""
+
+#. module: product_electronic
+#: model:ir.module.module,shortdesc:product_electronic.module_meta_information
+msgid "Products Attributes & Manufacturers"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.product,manufacturer_pname:0
+msgid "Manufacturer product name"
+msgstr ""
+
+#. module: product_electronic
+#: field:product.product,manufacturer:0
+msgid "Manufacturer"
+msgstr ""
diff --git a/addons/product_visible_discount/i18n/pl.po b/addons/product_visible_discount/i18n/pl.po
new file mode 100644
index 00000000000..d26d4e09b6b
--- /dev/null
+++ b/addons/product_visible_discount/i18n/pl.po
@@ -0,0 +1,59 @@
+# Polish 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-03-25 12:11+0000\n"
+"PO-Revision-Date: 2010-07-26 14:58+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"Language-Team: Polish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: product_visible_discount
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr "Niewłaściwy XML dla architektury widoku!"
+
+#. module: product_visible_discount
+#: model:ir.module.module,description:product_visible_discount.module_name_translation
+msgid ""
+"\n"
+" This module lets you calculate discounts on Sale Order lines and Invoice "
+"lines base on the partner's pricelist.\n"
+" To this end, a new check box named \"Visible Discount\" is added to the "
+"pricelist form.\n"
+" Example:\n"
+" For the product PC1 and the partner \"Asustek\": if listprice=450, "
+"and the price calculated using Asustek's pricelist is 225\n"
+" If the check box is checked, we will have on the sale order line: "
+"Unit price=450, Discount=50,00, Net price=225\n"
+" If the check box is unchecked, we will have on Sale Order and "
+"Invoice lines: Unit price=225, Discount=0,00, Net price=225\n"
+" "
+msgstr ""
+"\n"
+" Ten moduł pozwala obliczać upusty przy pozycjach zamówień sprzedaży i "
+"pozycjach faktur bazując na cenniku partnera.\n"
+" Nowa opcja \"Widoczny upust\" jest dodana do formularza cennika.\n"
+" Przykład:\n"
+" Dla produktu PC1 i partnera \"Asustek\": jeśli cena cennikowa=450 i "
+"cena wg cennika dla Asustek jest 225\n"
+" Jeśli opcja jest włączona, to w pozycji zamówienia będzie: Cena "
+"jedn.=450, Upust=50,00, Cena netto=225\n"
+" Jeśli opcja jest wyłączona, to w pozycji zamówienia będzie: Unit "
+"jedn.=225, Upust=0,00, Cena netto=225\n"
+" "
+
+#. module: product_visible_discount
+#: model:ir.module.module,shortdesc:product_visible_discount.module_name_translation
+#: field:product.pricelist,visible_discount:0
+msgid "Visible Discount"
+msgstr "Widoczny upust"
diff --git a/addons/profile_tools/misc_tools_installer.xml b/addons/profile_tools/misc_tools_installer.xml
index 84b47128fff..69250f0dcf1 100644
--- a/addons/profile_tools/misc_tools_installer.xml
+++ b/addons/profile_tools/misc_tools_installer.xml
@@ -8,7 +8,7 @@
- Tools Modules Installation
+ Tools Modules Configuration
diff --git a/addons/project/board_project_view.xml b/addons/project/board_project_view.xml
index a6c489a528d..db2f09963e8 100644
--- a/addons/project/board_project_view.xml
+++ b/addons/project/board_project_view.xml
@@ -136,7 +136,6 @@
diff --git a/addons/project/project.py b/addons/project/project.py
index 816e85c29b4..b05423e00dd 100644
--- a/addons/project/project.py
+++ b/addons/project/project.py
@@ -22,6 +22,7 @@
from lxml import etree
import time
from datetime import date, datetime
+
from tools.translate import _
from osv import fields, osv
@@ -38,21 +39,21 @@ class project_task_type(osv.osv):
_defaults = {
'sequence': 1
}
-
+
project_task_type()
class project(osv.osv):
_name = "project.project"
_description = "Project"
- _inherits = {'account.analytic.account':"category_id"}
+ _inherits = {'account.analytic.account': "analytic_account_id"}
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
if user == 1:
return super(project, self).search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
if context and context.has_key('user_prefence') and context['user_prefence']:
cr.execute("""SELECT project.id FROM project_project project
- LEFT JOIN account_analytic_account account ON account.id = project.category_id
- LEFT JOIN project_user_rel rel ON rel.project_id = project.category_id
+ LEFT JOIN account_analytic_account account ON account.id = project.analytic_account_id
+ LEFT JOIN project_user_rel rel ON rel.project_id = project.analytic_account_id
WHERE (account.user_id = %s or rel.uid = %s)"""%(user, user))
res = cr.fetchall()
return [(r[0]) for r in res]
@@ -78,36 +79,64 @@ class project(osv.osv):
pricelist_id = pricelist.get('property_product_pricelist', False) and pricelist.get('property_product_pricelist')[0] or False
return {'value':{'contact_id': addr['contact'], 'pricelist_id': pricelist_id}}
+ def get_all_child_projects(self, cr, uid, ids, context=None):
+ cr.execute('''select prpc.id as id from account_analytic_account as p
+join account_analytic_account as c on p.id = c.parent_id
+join project_project as prp on prp.analytic_account_id = p.id
+join project_project as prpc on prpc.analytic_account_id = c.id
+where prp.id in %s''',(tuple(ids),))
+
+ child_ids = cr.fetchall()
+ if child_ids:
+ child_ids = [x[0] for x in child_ids]
+ child_ids = self.get_all_child_projects(cr, uid, child_ids)
+
+ return ids+child_ids
+
def _progress_rate(self, cr, uid, ids, names, arg, context=None):
res = {}.fromkeys(ids, 0.0)
progress = {}
if not ids:
return res
- ids2 = self.search(cr, uid, [('parent_id','child_of',ids)], context=context)
- if ids2:
- cr.execute('''SELECT
- project_id, sum(planned_hours), sum(total_hours), sum(effective_hours)
- FROM
- project_task
- WHERE
- project_id IN %s AND
- state<>'cancelled'
- GROUP BY
- project_id''',(tuple(ids2),))
- progress = dict(map(lambda x: (x[0], (x[1], x[2], x[3])), cr.fetchall()))
- for project in self.browse(cr, uid, ids, context=context):
+
+ par_child_projects={}
+ all_projects = list(ids)
+
+ for id in ids:
+ child_projects = self.get_all_child_projects(cr, uid, [id], context)
+ child_projects = [x for x in child_projects]
+ par_child_projects[id] = child_projects
+ all_projects.extend(child_projects)
+
+ all_projects = dict.fromkeys(all_projects).keys()
+ cr.execute('''SELECT
+ project_id, sum(planned_hours), sum(total_hours), sum(effective_hours)
+ FROM
+ project_task
+ WHERE
+ project_id IN %s AND
+ state<>'cancelled'
+ GROUP BY
+ project_id''',(tuple(all_projects),))
+ progress = dict(map(lambda x: (x[0], (x[1], x[2], x[3])), cr.fetchall()))
+
+ for project in self.browse(cr, uid, par_child_projects.keys(), context=context):
s = [0.0, 0.0, 0.0]
- tocompute = [project]
+ tocompute = par_child_projects[project.id]
while tocompute:
p = tocompute.pop()
- tocompute += p.child_ids
for i in range(3):
- s[i] += progress.get(p.id, (0.0, 0.0, 0.0))[i]
+ s[i] += progress.get(p, (0.0, 0.0, 0.0))[i]
+ if project.state == 'close':
+ progress_rate = 100.0
+ else:
+ progress_rate = s[1] and round(min(100.0 * s[2] / s[1], 99.99), 2)
+
res[project.id] = {
'planned_hours': s[0],
'effective_hours': s[2],
'total_hours': s[1],
- 'progress_rate': s[1] and (100.0 * s[2] / s[1]) or 0.0
+ 'progress_rate': progress_rate
}
return res
@@ -121,31 +150,30 @@ class project(osv.osv):
'complete_name': fields.function(_complete_name, method=True, string="Project Name", type='char', size=250),
'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the project without removing it."),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of Projects."),
- 'category_id': fields.many2one('account.analytic.account', 'Analytic Account', help="Link this project to an analytic account if you need financial management on projects. It enables you to connect projects with budgets, planning, cost and revenue analysis, timesheets on projects, etc."),
+ 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account', help="Link this project to an analytic account if you need financial management on projects. It enables you to connect projects with budgets, planning, cost and revenue analysis, timesheets on projects, etc."),
'priority': fields.integer('Sequence', help="Gives the sequence order when displaying a list of task"),
'warn_manager': fields.boolean('Warn Manager', help="If you check this field, the project manager will receive a request each time a task is completed by his team."),
'members': fields.many2many('res.users', 'project_user_rel', 'project_id', 'uid', 'Project Members', help="Project's member. Not used in any computation, just for information purpose."),
'tasks': fields.one2many('project.task', 'project_id', "Project tasks"),
- 'planned_hours': fields.function(_progress_rate, multi="progress", method=True, string='Planned Time', help="Sum of planned hours of all tasks related to this project."),
- 'effective_hours': fields.function(_progress_rate, multi="progress", method=True, string='Time Spent', help="Sum of spent hours of all tasks related to this project."),
- 'total_hours': fields.function(_progress_rate, multi="progress", method=True, string='Total Time', help="Sum of total hours of all tasks related to this project."),
+ 'planned_hours': fields.function(_progress_rate, multi="progress", method=True, string='Planned Time', help="Sum of planned hours of all tasks related to this project and its child projects."),
+ 'effective_hours': fields.function(_progress_rate, multi="progress", method=True, string='Time Spent', help="Sum of spent hours of all tasks related to this project and its child projects."),
+ 'total_hours': fields.function(_progress_rate, multi="progress", method=True, string='Total Time', help="Sum of total hours of all tasks related to this project and its child projects."),
'progress_rate': fields.function(_progress_rate, multi="progress", method=True, string='Progress', type='float', help="Percent of tasks closed according to the total of tasks todo."),
'warn_customer': fields.boolean('Warn Partner', help="If you check this, the user will have a popup when closing a task that propose a message to send by email to the customer."),
'warn_header': fields.text('Mail Header', help="Header added at the beginning of the email for the warning message sent to the customer when a task is closed."),
'warn_footer': fields.text('Mail Footer', help="Footer added at the beginning of the email for the warning message sent to the customer when a task is closed."),
'type_ids': fields.many2many('project.task.type', 'project_task_type_rel', 'project_id', 'type_id', 'Tasks Stages'),
- 'project_escalation_id': fields.many2one('project.project','Project Escalation', help='If any issue is escalated from the current Project, it will be listed under the project selected here.'),
}
-
+
_order = "sequence"
-
+
_defaults = {
'active': True,
'priority': 1,
'sequence': 10,
'warn_manager': True,
}
-
+
def _check_dates(self, cr, uid, ids):
leave = self.read(cr, uid, ids[0], ['date_start', 'date'])
if leave['date_start'] and leave['date']:
@@ -153,18 +181,10 @@ class project(osv.osv):
return False
return True
- def _check_escalation(self, cr, uid, ids):
- project_obj = self.browse(cr, uid, ids[0])
- if project_obj.project_escalation_id:
- if project_obj.project_escalation_id.id == project_obj.id:
- return False
- return True
-
_constraints = [
- (_check_dates, 'Error! project start-date must be lower then project end-date.', ['date_start', 'date']),
- (_check_escalation, 'Error! You cannot assign escalation to the same project!', ['project_escalation_id'])
+ (_check_dates, 'Error! project start-date must be lower then project end-date.', ['date_start', 'date'])
]
-
+
def set_template(self, cr, uid, ids, context=None):
res = self.setActive(cr, uid, ids, value=False, context=context)
return res
@@ -204,16 +224,16 @@ class project(osv.osv):
def copy(self, cr, uid, id, default={}, context=None):
if context is None:
context = {}
-
+
task_obj = self.pool.get('project.task')
proj = self.browse(cr, uid, id, context=context)
default = default or {}
context['active_test'] = False
default['state'] = 'open'
if not default.get('name', False):
- default['name'] = proj.name+_(' (copy)')
+ default['name'] = proj.name+_(' (copy)')
res = super(project, self).copy(cr, uid, id, default, context)
-
+
task_ids = task_obj.search(cr, uid, [('project_id','=', res), ('active','=',False)])
tasks = task_obj.browse(cr, uid, task_ids)
for task in tasks:
@@ -225,11 +245,11 @@ class project(osv.osv):
dd = date(*time.strptime(task.date_deadline,'%Y-%m-%d')[:3])
diff = dd-ds
date_deadline = (datetime.now()+diff).strftime('%Y-%m-%d %H:%M:%S')
- task_obj.write(cr, uid, task.id, {'active':True,
+ task_obj.write(cr, uid, task.id, {'active':True,
'date_start':time.strftime('%Y-%m-%d %H:%M:%S'),
'date_deadline':date_deadline,
'date_end':date_end})
-
+
ids = self.search(cr, uid, [('parent_id','child_of', [res])])
return res
@@ -250,8 +270,8 @@ class project(osv.osv):
result.append(new_id)
cr.execute('select id from project_task where project_id=%s', (proj.id,))
res = cr.fetchall()
- child_ids = self.search(cr, uid, [('parent_id','=', proj.category_id.id)], context=context)
- parent_id = self.read(cr, uid, new_id, ['category_id'])['category_id'][0]
+ child_ids = self.search(cr, uid, [('parent_id','=', proj.analytic_account_id.id)], context=context)
+ parent_id = self.read(cr, uid, new_id, ['analytic_account_id'])['analytic_account_id'][0]
if child_ids:
self.duplicate_template(cr, uid, child_ids, context={'parent_id': parent_id})
@@ -285,11 +305,11 @@ class project(osv.osv):
tasks_id = [x[0] for x in cr.fetchall()]
if tasks_id:
task_obj.write(cr, uid, tasks_id, {'active': value}, context=context)
- child_ids = self.search(cr, uid, [('parent_id','=', proj.id)])
+ child_ids = self.search(cr, uid, [('parent_id','=', proj.analytic_account_id.id)])
if child_ids:
self.setActive(cr, uid, child_ids, value, context=None)
return True
-
+
project()
class task(osv.osv):
@@ -346,13 +366,6 @@ class task(osv.osv):
if task['date_start'] > task['date_end']:
return False
return True
-
- def _check_deadline_date(self, cr, uid, ids, context=None):
- task = self.read(cr, uid, ids[0], ['date_start', 'date_deadline'])
- if task['date_start'] and task['date_deadline']:
- if task['date_deadline'] < task['date_start']:
- return False
- return True
def _is_template(self, cr, uid, ids, field_name, arg, context=None):
res = {}
@@ -373,6 +386,7 @@ class task(osv.osv):
'state': fields.selection([('draft', 'Draft'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
\n If the task is over, the states is set to \'Done\'.'),
+ 'create_date': fields.datetime('Create Date', readonly=True),
'date_start': fields.datetime('Starting Date'),
'date_end': fields.datetime('Ending Date'),
'date_deadline': fields.date('Deadline'),
@@ -392,21 +406,20 @@ class task(osv.osv):
'delegated_user_id': fields.related('child_ids', 'user_id', type='many2one', relation='res.users', string='Delegated To'),
'partner_id': fields.many2one('res.partner', 'Partner'),
'work_ids': fields.one2many('project.task.work', 'task_id', 'Work done'),
- 'manager_id': fields.related('project_id', 'category_id', 'user_id', type='many2one', relation='res.users', string='Project Manager'),
+ 'manager_id': fields.related('project_id', 'analytic_account_id', 'user_id', type='many2one', relation='res.users', string='Project Manager'),
'company_id': fields.many2one('res.company', 'Company'),
}
-
+
_defaults = {
'state': 'draft',
'priority': '2',
'progress': 0,
'sequence': 10,
'active': True,
- 'date_start': time.strftime('%Y-%m-%d %H:%M:%S'),
'project_id': _default_project,
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=c)
}
-
+
_order = "sequence, priority, date_start, id"
_constraints = [
@@ -415,7 +428,7 @@ class task(osv.osv):
#
# Override view according to the company definition
#
-
+
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
users_obj = self.pool.get('res.users')
obj_tm = users_obj.browse(cr, uid, uid, context).company_id.project_time_mode_id
@@ -467,11 +480,11 @@ class task(osv.osv):
'ref_doc1': 'project.task,%d'% (task.id,),
'ref_doc2': 'project.project,%d'% (project.id,),
})
- elif project.warn_manager and cntx.get('mail_send',False):
+ elif project.warn_manager and cntx.get('mail_send',True):
mail_send = True
message = _('Task ') + " '" + task.name + "' "+ _("is Done.")
self.log(cr, uid, task.id, message)
- self.write(cr, uid, [task.id], {'state': 'done', 'date_end':time.strftime('%Y-%m-%d %H:%M:%S'), 'remaining_hours': 0.0})
+
for parent_id in task.parent_ids:
if parent_id.state in ('pending','draft'):
reopen = True
@@ -541,7 +554,7 @@ class task(osv.osv):
def do_open(self, cr, uid, ids, *args):
tasks= self.browse(cr,uid,ids)
for t in tasks:
- self.write(cr, uid, [t.id], {'state': 'open'})
+ self.write(cr, uid, [t.id], {'state': 'open', 'date_start': time.strftime('%Y-%m-%d %H:%M:%S'),})
message = _('Task ') + " '" + t.name + "' "+ _("is Open.")
self.log(cr, uid, t.id, message)
return True
@@ -593,14 +606,14 @@ class project_work(osv.osv):
'user_id': fields.many2one('res.users', 'Done by', required=True),
'company_id': fields.related('task_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True)
}
-
+
_defaults = {
'user_id': lambda obj, cr, uid, context: uid,
'date': time.strftime('%Y-%m-%d %H:%M:%S')
}
-
+
_order = "date desc"
-
+
def create(self, cr, uid, vals, *args, **kwargs):
if 'hours' in vals and (not vals['hours']):
vals['hours'] = 0.00
@@ -622,12 +635,12 @@ class project_work(osv.osv):
for work in self.browse(cr, uid, ids):
cr.execute('update project_task set remaining_hours=remaining_hours + %s where id=%s', (work.hours, work.task_id.id))
return super(project_work,self).unlink(cr, uid, ids, *args, **kwargs)
-
+
project_work()
class config_compute_remaining(osv.osv_memory):
_name='config.compute.remaining'
-
+
def _get_remaining(self,cr, uid, ctx):
task_obj = self.pool.get('project.task')
if 'active_id' in ctx:
@@ -637,12 +650,12 @@ class config_compute_remaining(osv.osv_memory):
_columns = {
'remaining_hours' : fields.float('Remaining Hours', digits=(16,2), help="Put here the remaining hours required to close the task."),
}
-
+
def _get_analytic_account(self, cr, uid, context={}):
if context.get('account_id', False):
return context.get('account_id')
return False
-
+
_defaults = {
'account_id' : _get_analytic_account,
}
@@ -683,7 +696,7 @@ config_compute_remaining()
class message(osv.osv):
_name = "project.message"
_description = "Message"
-
+
_columns = {
'subject': fields.char('Subject', size=128, required="True"),
'project_id': fields.many2one('project.project', 'Project', ondelete='cascade'),
@@ -713,7 +726,7 @@ class users(osv.osv):
_columns = {
'context_project_id': fields.many2one('project.project', 'Project')
}
-
+
users()
class account_analytic_account(osv.osv):
diff --git a/addons/project/project_data.xml b/addons/project/project_data.xml
index 7c5b40f3ddf..dd6708337e8 100644
--- a/addons/project/project_data.xml
+++ b/addons/project/project_data.xml
@@ -14,6 +14,15 @@
Project task
project.task
-
+
+
+
+ Projects
+ 3
+
+
+
diff --git a/addons/project/project_demo.xml b/addons/project/project_demo.xml
index 13127969409..0ce0e37a327 100644
--- a/addons/project/project_demo.xml
+++ b/addons/project/project_demo.xml
@@ -31,6 +31,7 @@
1
Open ERP Integration
+
diff --git a/addons/project/project_installer.xml b/addons/project/project_installer.xml
index 6c760bc65d1..320b3302241 100644
--- a/addons/project/project_installer.xml
+++ b/addons/project/project_installer.xml
@@ -9,7 +9,7 @@
- Project Modules Installation
+ Project Modules Configuration
Project Management
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index ce92e9875fa..7df69fbbd40 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -40,14 +40,13 @@
-
-
+
@@ -131,7 +130,7 @@
-
+
@@ -166,7 +165,7 @@
{'search_default_Current':1}
- Consult and define yours projects here. A project content a set of related activities that will be performed by your company. Any project can be put into a hierarchy, as a child of a Parent Project. This allows you to design large project structure very useful for work organization.
+ Consult and define your projects here. A project contains a set of related activities that will be performed by your company. Any project can be put into a hierarchy, as a child of a Parent Project. This allows you to design large project structure very useful for work organization.
@@ -246,7 +245,7 @@
-
+
@@ -317,6 +316,7 @@
+
@@ -419,7 +419,7 @@
@@ -538,7 +538,6 @@ Issues like bugs in a system, client complain, materials breakdown are collected
''' % (len(tt)+7,_('Getting Things Done'))
- search_extended += ''' ''' % (_('Inbox'),)
- search_extended += ''' ''' % (_('Editable'),)
+ search_extended += ''' ''' % (_('Inbox'),)
+# search_extended += ''' ''' % (_('Editable'),)
search_extended += ''' '''
for time in tt:
if time.icon:
icon = time.icon
else :
icon=""
- search_extended += ''' '''
+ search_extended += ''' '''
search_extended += '''
diff --git a/addons/project_gtd/project_gtd_view.xml b/addons/project_gtd/project_gtd_view.xml
index 66a7cca01e3..8527b480955 100644
--- a/addons/project_gtd/project_gtd_view.xml
+++ b/addons/project_gtd/project_gtd_view.xml
@@ -9,7 +9,6 @@
-
@@ -22,7 +21,6 @@
-
@@ -80,9 +78,9 @@
-
-
-
+
+
+
@@ -100,5 +98,6 @@
+
diff --git a/addons/project_issue/board_project_issue_view.xml b/addons/project_issue/board_project_issue_view.xml
index 8fe05eddebe..343d0e98b35 100644
--- a/addons/project_issue/board_project_issue_view.xml
+++ b/addons/project_issue/board_project_issue_view.xml
@@ -86,6 +86,6 @@
+ action="open_board_project_issue"/>
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py
index 4b070a6682b..b61c4a03c0b 100644
--- a/addons/project_issue/project_issue.py
+++ b/addons/project_issue/project_issue.py
@@ -181,7 +181,7 @@ class project_issue(osv.osv, crm.crm_case):
method=True, multi='day_open', type="float", store=True),
'day_close': fields.function(_compute_day, string='Days to Close', \
method=True, multi='day_close', type="float", store=True),
- 'assigned_to': fields.related('task_id', 'user_id', type='many2one', relation='res.users', string='Assigned to', help='This is the current user to whom the related task have been assigned', readonly=True),
+ 'assigned_to': fields.many2one('res.users', 'Assigned to', help='This is the current user to whom the related task have been assigned'),
'working_hours_open': fields.function(_compute_day, string='Working Hours to Open the Issue', \
method=True, multi='working_days_open', type="float", store=True),
'working_hours_close': fields.function(_compute_day, string='Working Hours to Close the Issue', \
@@ -406,8 +406,21 @@ project_issue()
class project(osv.osv):
_inherit = "project.project"
_columns = {
- 'resource_calendar_id': fields.many2one('resource.calendar', 'Working Time', help="Timetable working hours to adjust the gantt diagram report"),
+ 'resource_calendar_id' : fields.many2one('resource.calendar', 'Working Time', help="Timetable working hours to adjust the gantt diagram report"),
+ 'project_escalation_id' : fields.many2one('project.project','Project Escalation', help='If any issue is escalated from the current Project, it will be listed under the project selected here.'),
+ 'reply_to' : fields.char('Reply-To Email Address', size=256)
}
+
+ def _check_escalation(self, cr, uid, ids):
+ project_obj = self.browse(cr, uid, ids[0])
+ if project_obj.project_escalation_id:
+ if project_obj.project_escalation_id.id == project_obj.id:
+ return False
+ return True
+
+ _constraints = [
+ (_check_escalation, 'Error! You cannot assign escalation to the same project!', ['project_escalation_id'])
+ ]
project()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml
index 766850038c6..3845cf6bce0 100644
--- a/addons/project_issue/project_issue_view.xml
+++ b/addons/project_issue/project_issue_view.xml
@@ -286,5 +286,23 @@
+ # ------------------------------------------------------
+ # Project
+ # ------------------------------------------------------
+
+
+ project.project.form.inherited
+ project.project
+ form
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/project_issue_sheet/project_issue_sheet.py b/addons/project_issue_sheet/project_issue_sheet.py
index d4c9240cae1..f5e7d776436 100644
--- a/addons/project_issue_sheet/project_issue_sheet.py
+++ b/addons/project_issue_sheet/project_issue_sheet.py
@@ -27,7 +27,7 @@ class project_issue(osv.osv):
_description = 'project issue'
_columns = {
'timesheet_ids': fields.one2many('hr.analytic.timesheet', 'issue_id', 'Timesheets'),
- 'analytic_account_id': fields.related('project_id', 'category_id', string='Analytic Account')
+ 'analytic_account_id': fields.related('project_id', 'analytic_account_id', string='Analytic Account')
}
project_issue()
@@ -48,15 +48,6 @@ class hr_analytic_issue(osv.osv):
_columns = {
'issue_id' : fields.many2one('project.issue', 'Issue'),
}
-
- def _get_analytic_account(self, cr, uid, context={}):
- if context.get('account_id', False):
- return context.get('account_id')
- return False
-
- _defaults = {
- 'account_id' : _get_analytic_account,
- }
hr_analytic_issue()
diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml
index 4e224ee0428..13aed4eb129 100644
--- a/addons/project_issue_sheet/project_issue_sheet_view.xml
+++ b/addons/project_issue_sheet/project_issue_sheet_view.xml
@@ -10,7 +10,7 @@
-
+
diff --git a/addons/project_long_term/project_long_term_demo.xml b/addons/project_long_term/project_long_term_demo.xml
index fd965e4c792..abd59e506ef 100644
--- a/addons/project_long_term/project_long_term_demo.xml
+++ b/addons/project_long_term/project_long_term_demo.xml
@@ -249,14 +249,14 @@
- 2010-02-25
+
open
normal
Develop an OpenERP Website.
- 2010-04-30
+
@@ -269,14 +269,14 @@
Information Gathering and Understanding
- 2010-03-11 15:37:00
- 2010-02-25 15:33:00
+
+
draft
-
+
- 2010-02-24 15:37:00
- 2010-03-10 15:33:00
+
+
@@ -284,14 +284,14 @@
Planning
- 2010-03-25 15:49:00
- 2010-02-18 15:48:00
+
+
draft
-
+
- 2010-02-12 15:49:00
- 2010-03-11 15:48:00
+
+
@@ -299,14 +299,14 @@
Web Design
- 2010-04-15 16:08:00
- 2010-04-01 16:02:00
+
+
draft
-
+
- 2010-03-09 16:00:00
- 2010-04-10 16:02:00
+
+
@@ -314,14 +314,14 @@
Development, Integration and Testing
- 2010-04-27 17:29:00
- 2010-04-12 16:10:00
+
+
draft
-
+
- 2010-03-10 16:11:00
- 2010-04-26 16:10:00
+
+
@@ -329,14 +329,14 @@
Website Deployment
- 2010-04-30 16:35:00
- 2010-04-26 16:35:00
+
+
draft
-
+
- 2010-03-10 16:35:00
- 2010-04-27 16:34:00
+
+
@@ -396,11 +396,11 @@
-
- 2010-03-02 11:00:00
-
+
+
- 2010-02-24 05:00:00
+ open
+
2
@@ -408,17 +408,18 @@
Prepare Requirements Document
- 2010-03-08
-
-
+
+
+
-
+
- 2010-02-25 15:38:08
+ open
+
2
@@ -426,17 +427,18 @@
Define Website Goals, Purposes and Target Audience
- 2010-03-04
-
-
+
+
+
-
-
+
+
- 2010-02-25 15:42:42
+ open
+
2
@@ -444,9 +446,9 @@
Use Cases
- 2010-03-10
-
-
+
+
+
@@ -454,7 +456,8 @@
- 2010-02-25 15:51:00
+ open
+
2
@@ -462,7 +465,7 @@
Budget Planning
- 2010-03-31
+
@@ -472,7 +475,8 @@
- 2010-02-25 15:54:42
+ open
+
2
@@ -480,7 +484,7 @@
Quality Planning
- 2010-03-31
+
@@ -490,7 +494,8 @@
- 2010-02-25 15:55:11
+ open
+
2
@@ -498,7 +503,7 @@
Risk Management Planning
- 2010-03-31
+
@@ -508,7 +513,8 @@
- 2010-02-25 15:57:48
+ open
+
2
@@ -516,7 +522,7 @@
Create Project Schedules
- 2010-03-31
+
@@ -526,7 +532,8 @@
- 2010-02-25 16:04:16
+ open
+
2
@@ -534,7 +541,7 @@
Dataflow Design
- 2010-04-02
+
@@ -544,7 +551,8 @@
- 2010-02-25 16:05:43
+ open
+
2
@@ -552,9 +560,9 @@
User Interface Design
- 2010-04-10
-
-
+
+
+
@@ -562,7 +570,8 @@
- 2010-02-25 16:06:52
+ open
+
2
@@ -570,7 +579,7 @@
Task Level WBS
- 2010-04-07
+
@@ -580,7 +589,8 @@
- 2010-02-25 16:11:40
+ open
+
2
@@ -588,16 +598,18 @@
Modular Programming
- 2010-04-22
+
+
- 2010-02-25 16:13:10
+ open
+
2
@@ -605,16 +617,18 @@
Integrate Modules
- 2010-04-24
+
+
-
+
- 2010-02-25 16:14:32
+ open
+
2
@@ -622,16 +636,18 @@
Unit Testing
- 2010-04-24
-
-
+
+
+
+
- 2010-02-25 16:15:38
+ open
+
2
@@ -639,16 +655,18 @@
Regression Test
- 2010-04-24
+
+
- 2010-02-25 16:17:04
+ open
+
2
@@ -656,16 +674,18 @@
Documentation
- 2010-04-24
+
+
- 2010-02-25 16:17:42
+ open
+
2
@@ -673,16 +693,18 @@
Performance Tuning
- 2010-04-24
+
+
- 2010-02-25 16:21:15
+ open
+
2
@@ -690,171 +712,29 @@
Deploy Website
- 2010-04-26
+
+
-
-
-
- 2010-02-25 16:22:09
-
- 2
-
-
-
-
- Presentation
- 2010-04-28
-
-
-
-
-
-
-
-
- 2010-02-25 16:36:02
-
- 2
-
-
-
-
- Deployment
- 2010-04-28
-
-
-
-
-
-
-
-
-
- 2010-02-25 16:36:43
-
- 2
-
-
-
-
- Presentation
- 2010-04-29
-
-
-
-
-
-
-
-
-
- 2010-02-25 17:22:46
-
- 2
-
-
-
-
- Modules Integration
- 2010-04-24
-
-
-
-
-
-
-
-
-
- 2010-02-25 17:34:32
-
- 2
-
-
-
-
- Unit Testing
- 2010-04-24
-
-
-
-
-
-
-
-
-
- 2010-02-25 17:35:46
-
- 2
-
-
-
-
- Modular Testing
- 2010-04-24
-
-
-
-
-
-
- 2010-02-25 17:36:27
+ open
+
2
- Documentation
- 2010-04-28
+ Presentation
+
-
-
-
-
-
-
-
- 2010-02-25 17:37:03
-
- 2
-
-
-
-
- Performance Tuning
- 2010-04-27
-
-
-
-
-
-
-
- 2010-03-12 18:00:00
-
-
- 2010-03-01 12:00:00
-
- 2
-
-
-
-
- Modular Programming
- 2010-04-22
-
-
-
+
diff --git a/addons/project_planning/project_planning.py b/addons/project_planning/project_planning.py
index 38fadb88f5d..e248fe1c050 100644
--- a/addons/project_planning/project_planning.py
+++ b/addons/project_planning/project_planning.py
@@ -215,7 +215,7 @@ class project_task(osv.osv):
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
if not context:
context = {}
- if not context.get('planning'):
+ if not context.get('planning', False):
return super(project_task,self).search(cr, user, args, offset, limit, order, context)
cr.execute(" SELECT t.id, t.name \
from project_task t \
@@ -529,7 +529,7 @@ WHERE user_id=%s and account_id=%s and date>=%s and date<=%s''', (line.user_id.i
project_task
WHERE
''' + where + '''
- project_id IN (select id from project_project where category_id=%s) AND
+ project_id IN (select id from project_project where analytic_account_id=%s) AND
date_end>=%s AND
date_end<=%s''', (
line.account_id.id,
diff --git a/addons/project_planning/project_planning_view.xml b/addons/project_planning/project_planning_view.xml
index b081b582742..b72aa69c011 100644
--- a/addons/project_planning/project_planning_view.xml
+++ b/addons/project_planning/project_planning_view.xml
@@ -87,7 +87,7 @@
-
+
@@ -123,7 +123,7 @@
-
+
diff --git a/addons/project_scrum/board_project_scrum_view.xml b/addons/project_scrum/board_project_scrum_view.xml
index 3889e8f7af3..f0a29ffe7e4 100644
--- a/addons/project_scrum/board_project_scrum_view.xml
+++ b/addons/project_scrum/board_project_scrum_view.xml
@@ -58,6 +58,6 @@
+ action="open_board_project_scrum"/>
diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py
index 6fd2beb8475..53ae2bac620 100644
--- a/addons/project_timesheet/project_timesheet.py
+++ b/addons/project_timesheet/project_timesheet.py
@@ -69,7 +69,7 @@ class project_work(osv.osv):
vals_line['product_id'] = result['product_id']
vals_line['date'] = vals['date'][:10]
vals_line['unit_amount'] = vals['hours']
- acc_id = obj_task.project_id.category_id.id
+ acc_id = obj_task.project_id.analytic_account_id.id
vals_line['account_id'] = acc_id
res = obj_timesheet.on_change_account_id(cr, uid, False, acc_id)
if res.get('value'):
@@ -165,7 +165,7 @@ class task(osv.osv):
task_obj_l = self.browse(cr, uid, ids, context)
if (vals.has_key('project_id') and vals['project_id']):
project_obj = self.pool.get('project.project').browse(cr, uid, vals['project_id'])
- acc_id = project_obj.category_id.id
+ acc_id = project_obj.analytic_account_id.id
for task_obj in task_obj_l:
if len(task_obj.work_ids):
@@ -188,7 +188,7 @@ class project_project(osv.osv):
context = {}
result = []
for project in self.browse(cr, user, ids, context):
- name = "[%s] %s" % (project.category_id and project.category_id.code or '?', project.name)
+ name = "[%s] %s" % (project.analytic_account_id and project.analytic_account_id.code or '?', project.name)
result.append((project.id, name))
return result
diff --git a/addons/purchase/board_purchase_view.xml b/addons/purchase/board_purchase_view.xml
index 10e35e0e04c..1a90dc49e92 100644
--- a/addons/purchase/board_purchase_view.xml
+++ b/addons/purchase/board_purchase_view.xml
@@ -5,7 +5,6 @@
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index dfdf85080fe..2ffdd78e284 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -311,7 +311,7 @@ class purchase_order(osv.osv):
'product_id': ol.product_id.id or False,
'uos_id': ol.product_uom.id or False,
'invoice_line_tax_id': [(6, 0, [x.id for x in ol.taxes_id])],
- 'account_analytic_id': ol.account_analytic_id.id,
+ 'account_analytic_id': ol.account_analytic_id.id or False,
})
def action_cancel_draft(self, cr, uid, ids, *args):
@@ -344,7 +344,7 @@ class purchase_order(osv.osv):
if not a:
raise osv.except_osv(_('Error !'), _('There is no expense account defined for this product: "%s" (id:%d)') % (ol.product_id.name, ol.product_id.id,))
else:
- a = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category')
+ a = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category').id
fpos = o.fiscal_position or False
a = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, a)
il.append(self.inv_line_create(cr, uid, a, ol))
@@ -746,23 +746,24 @@ class procurement_order(osv.osv):
po_obj = self.pool.get('purchase.order')
for procurement in self.browse(cr, uid, ids):
res_id = procurement.move_id.id
- partner = procurement.product_id.seller_ids[0].name
+ partner = procurement.product_id.seller_id # Taken Main Supplier of Product of Procurement.
+ seller_qty = procurement.product_id.seller_qty
+ seller_delay = int(procurement.product_id.seller_delay)
partner_id = partner.id
- partner_rec = procurement.product_id.seller_ids[0]
address_id = partner_obj.address_get(cr, uid, [partner_id], ['delivery'])['delivery']
pricelist_id = partner.property_product_pricelist_purchase.id
uom_id = procurement.product_id.uom_po_id.id
qty = uom_obj._compute_qty(cr, uid, procurement.product_uom.id, procurement.product_qty, uom_id)
- if procurement.product_id.seller_ids[0].qty:
- qty = max(qty,partner_rec.qty)
+ if seller_qty:
+ qty = max(qty,seller_qty)
price = pricelist_obj.price_get(cr, uid, [pricelist_id], procurement.product_id.id, qty, False, {'uom': uom_id})[pricelist_id]
newdate = DateTime.strptime(procurement.date_planned, '%Y-%m-%d %H:%M:%S')
newdate = newdate - DateTime.RelativeDateTime(days=company.po_lead)
- newdate = newdate - partner_rec.delay
+ newdate = newdate - seller_delay
#Passing partner_id to context for purchase order line integrity of Line name
context.update({'lang': partner.lang, 'partner_id': partner_id})
diff --git a/addons/resource/resource_view.xml b/addons/resource/resource_view.xml
index e84fa6fc34d..98afe8f5a03 100644
--- a/addons/resource/resource_view.xml
+++ b/addons/resource/resource_view.xml
@@ -78,8 +78,7 @@
-
-
+
diff --git a/addons/sale/board_sale_view.xml b/addons/sale/board_sale_view.xml
index 0e25af519b4..b25e7e5b1b2 100644
--- a/addons/sale/board_sale_view.xml
+++ b/addons/sale/board_sale_view.xml
@@ -50,7 +50,7 @@
form
-
+
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index b726b05a19f..9b0f555fc80 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -561,13 +561,12 @@ class sale_order(osv.osv):
wf_service.trg_validate(uid, 'account.invoice', inv, 'invoice_cancel', cr)
sale_order_line_obj.write(cr, uid, [l.id for l in sale.order_line],
{'state': 'cancel'})
+ message = _('Sale order') + " '" + sale.name + _(" is cancelled")
+ self.log(cr, uid, sale.id, message)
self.write(cr, uid, ids, {'state': 'cancel'})
- message = _('Sale order') + " '" + sale.name + "' "+ _("created on")+" '" +sale.create_date + _(" is cancelled")
- self.log(cr, uid, id, message)
return True
def action_wait(self, cr, uid, ids, *args):
- product=[]
product_obj = self.pool.get('product.product')
for o in self.browse(cr, uid, ids):
if (o.order_policy == 'manual'):
@@ -575,11 +574,8 @@ class sale_order(osv.osv):
else:
self.write(cr, uid, [o.id], {'state': 'progress', 'date_confirm': time.strftime('%Y-%m-%d')})
self.pool.get('sale.order.line').button_confirm(cr, uid, [x.id for x in o.order_line])
- for line in o.order_line:
- product.append(line.product_id.default_code)
- params = ', '.join(map(lambda x : str(x),product))
- message = _('Sale order ') + " '" + o.name + "' "+ _("created on")+" '" +o.create_date + "' "+_("for")+" '" +params + "' "+_("is confirmed")
- self.log(cr, uid, id, message)
+ message = _('Quotation') + " '" + o.name + "' "+ _("is converted to Sale order")
+ self.log(cr, uid, o.id, message)
return True
def procurement_lines_get(self, cr, uid, ids, *args):
@@ -951,9 +947,6 @@ class sale_order_line(osv.osv):
def button_confirm(self, cr, uid, ids, context=None):
if context is None:
context = {}
- for (id,name) in self.name_get(cr, uid, ids):
- message = _('Sale order line') + " '" + name + "' "+ _("is confirmed")
- self.log(cr, uid, id, message)
return self.write(cr, uid, ids, {'state': 'confirmed'})
def button_done(self, cr, uid, ids, context=None):
@@ -963,8 +956,6 @@ class sale_order_line(osv.osv):
res = self.write(cr, uid, ids, {'state': 'done'})
for line in self.browse(cr, uid, ids, context=context):
wf_service.trg_write(uid, 'sale.order', line.order_id.id, cr)
- message = _('Sale order line') + " '" + line.name + "' "+_("is done")
- self.log(cr, uid, id, message)
return res
def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):
diff --git a/addons/sale_margin/i18n/pl.po b/addons/sale_margin/i18n/pl.po
new file mode 100644
index 00000000000..ba7e650faad
--- /dev/null
+++ b/addons/sale_margin/i18n/pl.po
@@ -0,0 +1,371 @@
+# Polish 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-25 14:28+0000\n"
+"PO-Revision-Date: 2010-07-26 15:12+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"Language-Team: Polish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: sale_margin
+#: selection:report.account.invoice,type:0
+#: selection:report.account.invoice.category,type:0
+#: selection:report.account.invoice.partner,type:0
+#: selection:report.account.invoice.partner.product,type:0
+#: selection:report.account.invoice.product,type:0
+msgid "Customer Refund"
+msgstr "Korekta dla klienta"
+
+#. module: sale_margin
+#: model:ir.model,name:sale_margin.model_report_account_invoice_product
+msgid "report.account.invoice.product"
+msgstr ""
+
+#. module: sale_margin
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Nazwa obiektu musi zaczynać się od x_ oraz nie może zawierać znaków "
+"specjalnych !"
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_product
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_product
+msgid "Invoices by Product"
+msgstr "Faktury wg produktów"
+
+#. module: sale_margin
+#: selection:report.account.invoice,type:0
+#: selection:report.account.invoice.category,type:0
+#: selection:report.account.invoice.partner,type:0
+#: selection:report.account.invoice.partner.product,type:0
+#: selection:report.account.invoice.product,type:0
+msgid "Customer Invoice"
+msgstr "Faktura dla klienta"
+
+#. module: sale_margin
+#: wizard_view:stock.invoice_onshipping,init:0
+msgid "Create invoices"
+msgstr "Utwórz faktury"
+
+#. module: sale_margin
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr "Niewłaściwy XML dla architektury widoku!"
+
+#. module: sale_margin
+#: model:ir.model,name:sale_margin.model_report_account_invoice_partner_product
+msgid "report.account.invoice.partner.product"
+msgstr ""
+
+#. module: sale_margin
+#: selection:report.account.invoice,type:0
+#: selection:report.account.invoice.category,type:0
+#: selection:report.account.invoice.partner,type:0
+#: selection:report.account.invoice.partner.product,type:0
+#: selection:report.account.invoice.product,type:0
+msgid "Supplier Invoice"
+msgstr "Faktura Dostawcy"
+
+#. module: sale_margin
+#: field:report.account.invoice,state:0
+#: field:report.account.invoice.category,state:0
+#: field:report.account.invoice.partner,state:0
+#: field:report.account.invoice.partner.product,state:0
+#: field:report.account.invoice.product,state:0
+msgid "State"
+msgstr "Stan"
+
+#. module: sale_margin
+#: view:stock.picking:0
+msgid "Create Invoice"
+msgstr "Utwórz fakturę"
+
+#. module: sale_margin
+#: selection:report.account.invoice,state:0
+#: selection:report.account.invoice.category,state:0
+#: selection:report.account.invoice.partner,state:0
+#: selection:report.account.invoice.partner.product,state:0
+#: selection:report.account.invoice.product,state:0
+msgid "Draft"
+msgstr "Projekt"
+
+#. module: sale_margin
+#: constraint:ir.actions.act_window:0
+msgid "Invalid model name in the action definition."
+msgstr "Nieprawidłowa nazwa modelu w definicji akcji."
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_month_product
+msgid "All Months"
+msgstr "Wszystkie miesiące"
+
+#. module: sale_margin
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_product_tree
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_product_tree_all
+msgid "report.account.invoice.partner.product.tree"
+msgstr ""
+
+#. module: sale_margin
+#: field:report.account.invoice,type:0
+#: field:report.account.invoice.category,type:0
+#: field:report.account.invoice.partner,type:0
+#: field:report.account.invoice.partner.product,type:0
+#: field:report.account.invoice.product,type:0
+#: wizard_field:stock.invoice_onshipping,init,type:0
+msgid "Type"
+msgstr "Typ"
+
+#. module: sale_margin
+#: wizard_field:stock.invoice_onshipping,init,journal_id:0
+msgid "Destination Journal"
+msgstr "Dziennik docelowy"
+
+#. module: sale_margin
+#: view:stock.picking:0
+msgid "Supplier Invoices"
+msgstr "Faktury od dostawców"
+
+#. module: sale_margin
+#: field:report.account.invoice.partner.product,product_id:0
+#: field:report.account.invoice.product,product_id:0
+msgid "Product"
+msgstr "Produkt"
+
+#. module: sale_margin
+#: view:report.account.invoice.partner:0
+msgid "Invoices by partner"
+msgstr "Faktury wg partnerów"
+
+#. module: sale_margin
+#: view:report.account.invoice.category:0
+msgid "Invoices by category"
+msgstr "Faktury wg kategorii"
+
+#. module: sale_margin
+#: selection:report.account.invoice,state:0
+#: selection:report.account.invoice.category,state:0
+#: selection:report.account.invoice.partner,state:0
+#: selection:report.account.invoice.partner.product,state:0
+#: selection:report.account.invoice.product,state:0
+msgid "Paid"
+msgstr "Zapłacono"
+
+#. module: sale_margin
+#: model:ir.actions.wizard,name:sale_margin.wizard_picking_invoice_create
+#: wizard_button:stock.invoice_onshipping,init,create_invoice:0
+msgid "Create invoice"
+msgstr "Utwórz fakturę"
+
+#. module: sale_margin
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_category_tree
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_category_tree_all
+msgid "report.account.invoice.category.tree"
+msgstr ""
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_partner_product
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_partner_product
+msgid "Invoices by Partner and Product"
+msgstr "Faktury wg partnerów i produktów"
+
+#. module: sale_margin
+#: model:ir.model,name:sale_margin.model_report_account_invoice_category
+msgid "report.account.invoice.category"
+msgstr ""
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_this_month_product
+msgid "This Month"
+msgstr "Bieżący miesiąc"
+
+#. module: sale_margin
+#: field:report.account.invoice.category,categ_id:0
+msgid "Categories"
+msgstr "Kategorie"
+
+#. module: sale_margin
+#: field:account.invoice.line,cost_price:0
+#: field:report.account.invoice,cost_price:0
+#: field:report.account.invoice.category,cost_price:0
+#: field:report.account.invoice.partner,cost_price:0
+#: field:report.account.invoice.partner.product,cost_price:0
+#: field:report.account.invoice.product,cost_price:0
+#: field:sale.order.line,purchase_price:0
+msgid "Cost Price"
+msgstr "Cena (koszt)"
+
+#. module: sale_margin
+#: wizard_field:stock.invoice_onshipping,init,group:0
+msgid "Group by partner"
+msgstr "Grupuj wg partnera"
+
+#. module: sale_margin
+#: model:ir.model,name:sale_margin.model_report_account_invoice_partner
+msgid "report.account.invoice.partner"
+msgstr ""
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_partner
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_partner
+msgid "Invoices by Partner"
+msgstr "Faktury wg partnerów"
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_category
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_category
+msgid "Invoices by Category"
+msgstr "Faktury wg kategorii"
+
+#. module: sale_margin
+#: view:report.account.invoice.partner.product:0
+msgid "Invoices by partner and product"
+msgstr "Faktury wg partnerów i produktów"
+
+#. module: sale_margin
+#: field:report.account.invoice,amount:0
+#: field:report.account.invoice.category,amount:0
+#: field:report.account.invoice.partner,amount:0
+#: field:report.account.invoice.partner.product,amount:0
+#: field:report.account.invoice.product,amount:0
+msgid "Amount"
+msgstr "Kwota"
+
+#. module: sale_margin
+#: wizard_field:stock.invoice_onshipping,init,invoice_date:0
+msgid "Invoiced date"
+msgstr "Data fakturowania"
+
+#. module: sale_margin
+#: selection:report.account.invoice,type:0
+#: selection:report.account.invoice.category,type:0
+#: selection:report.account.invoice.partner,type:0
+#: selection:report.account.invoice.partner.product,type:0
+#: selection:report.account.invoice.product,type:0
+msgid "Supplier Refund"
+msgstr "Korekta od dostawcy"
+
+#. module: sale_margin
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_tree
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_tree_all
+msgid "report.account.invoice.partner.tree"
+msgstr ""
+
+#. module: sale_margin
+#: field:report.account.invoice,margin:0
+#: field:report.account.invoice.category,margin:0
+#: field:report.account.invoice.partner,margin:0
+#: field:report.account.invoice.partner.product,margin:0
+#: field:report.account.invoice.product,margin:0
+#: field:sale.order,margin:0
+#: field:sale.order.line,margin:0
+msgid "Margin"
+msgstr "Marża"
+
+#. module: sale_margin
+#: field:report.account.invoice,quantity:0
+#: field:report.account.invoice.category,quantity:0
+#: field:report.account.invoice.partner,quantity:0
+#: field:report.account.invoice.partner.product,quantity:0
+#: field:report.account.invoice.product,quantity:0
+msgid "Quantity"
+msgstr "Ilość"
+
+#. module: sale_margin
+#: view:report.account.invoice.product:0
+msgid "Invoices by product"
+msgstr "Faktury wg produktów"
+
+#. module: sale_margin
+#: model:ir.module.module,shortdesc:sale_margin.module_meta_information
+msgid "Margins in Sale Orders"
+msgstr "Marże w zamówieniach sprzedaży"
+
+#. module: sale_margin
+#: model:ir.model,name:sale_margin.model_report_account_invoice
+msgid "report.account.invoice"
+msgstr ""
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_invoices
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_invoices
+#: view:report.account.invoice:0
+#: view:stock.picking:0
+#: field:stock.picking,invoice_ids:0
+msgid "Invoices"
+msgstr "Faktury"
+
+#. module: sale_margin
+#: selection:report.account.invoice,state:0
+#: selection:report.account.invoice.category,state:0
+#: selection:report.account.invoice.partner,state:0
+#: selection:report.account.invoice.partner.product,state:0
+#: selection:report.account.invoice.product,state:0
+msgid "Pro-forma"
+msgstr ""
+
+#. module: sale_margin
+#: field:report.account.invoice,name:0
+#: field:report.account.invoice.category,name:0
+#: field:report.account.invoice.partner,name:0
+#: field:report.account.invoice.partner.product,name:0
+#: field:report.account.invoice.product,name:0
+msgid "Month"
+msgstr "Miesiąc"
+
+#. module: sale_margin
+#: selection:report.account.invoice,state:0
+#: selection:report.account.invoice.category,state:0
+#: selection:report.account.invoice.partner,state:0
+#: selection:report.account.invoice.partner.product,state:0
+#: selection:report.account.invoice.product,state:0
+msgid "Canceled"
+msgstr "Anulowano"
+
+#. module: sale_margin
+#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_product
+msgid "Invoice"
+msgstr "Faktura"
+
+#. module: sale_margin
+#: wizard_button:stock.invoice_onshipping,init,end:0
+msgid "Cancel"
+msgstr "Anuluj"
+
+#. module: sale_margin
+#: field:report.account.invoice.partner,partner_id:0
+#: field:report.account.invoice.partner.product,partner_id:0
+msgid "Partner"
+msgstr "Partner"
+
+#. module: sale_margin
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_tree
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_tree_all
+msgid "report.account.invoice.tree"
+msgstr ""
+
+#. module: sale_margin
+#: selection:report.account.invoice,state:0
+#: selection:report.account.invoice.category,state:0
+#: selection:report.account.invoice.partner,state:0
+#: selection:report.account.invoice.partner.product,state:0
+#: selection:report.account.invoice.product,state:0
+msgid "Open"
+msgstr "Otwarte"
+
+#. module: sale_margin
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_product_tree
+#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_product_tree_all
+msgid "report.account.invoice.product.tree"
+msgstr ""
diff --git a/addons/sale_mrp/i18n/pl.po b/addons/sale_mrp/i18n/pl.po
new file mode 100644
index 00000000000..d4c0866d194
--- /dev/null
+++ b/addons/sale_mrp/i18n/pl.po
@@ -0,0 +1,81 @@
+# Polish 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: 2010-06-28 09:21+0000\n"
+"PO-Revision-Date: 2010-07-26 15:04+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"Language-Team: Polish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: sale_mrp
+#: help:mrp.production,sale_ref:0
+msgid "Indicate the Customer Reference from sale order."
+msgstr "Określ odnośnik klienta z zamówienia sprzedaży"
+
+#. module: sale_mrp
+#: help:mrp.production,sale_name:0
+msgid "Indicate the name of sale order."
+msgstr "Określ nazwę zamówienia sprzedaży"
+
+#. module: sale_mrp
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr "Niewłaściwy XML dla architektury widoku!"
+
+#. module: sale_mrp
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Nazwa obiektu musi zaczynać się od x_ oraz nie może zawierać znaków "
+"specjalnych !"
+
+#. module: sale_mrp
+#: field:mrp.production,sale_name:0
+msgid "Sale Name"
+msgstr "Nazwa sprzedaży"
+
+#. module: sale_mrp
+#: model:ir.model,name:sale_mrp.model_mrp_production
+msgid "Manufacturing Order"
+msgstr "Zamówienie produkcji"
+
+#. module: sale_mrp
+#: model:ir.module.module,description:sale_mrp.module_meta_information
+msgid ""
+"\n"
+" This module provides facility to the user to install mrp and sale "
+"modules\n"
+" at a time. It is basically used when we want to keep track of "
+"production\n"
+" orders generated from sale orders.\n"
+" It adds sale name and sale Reference on production order\n"
+" "
+msgstr ""
+"\n"
+" Ten moduł zwiększający funkcjonalność modułów mrp i sale. \n"
+" Jest on stosowany głównie kiedy chcemy losy zamówień \n"
+" produkcji tworzonych z zamówień sprzedaży.\n"
+" Moduł dodaje nazwę sprzedaży i odnośnik sprzedaży do \n"
+" zamówienia produkcji.\n"
+" "
+
+#. module: sale_mrp
+#: field:mrp.production,sale_ref:0
+msgid "Sale Reference"
+msgstr "Odnośnik sprzedaży"
+
+#. module: sale_mrp
+#: model:ir.module.module,shortdesc:sale_mrp.module_meta_information
+msgid "Sales and MRP Management"
+msgstr "Zarządzanie sprzedażą i MRP"
diff --git a/addons/sale_order_dates/sale_order_dates.py b/addons/sale_order_dates/sale_order_dates.py
index c58e68bdbe7..ad36d7c582d 100644
--- a/addons/sale_order_dates/sale_order_dates.py
+++ b/addons/sale_order_dates/sale_order_dates.py
@@ -21,7 +21,9 @@
from osv import fields, osv
import time
-from mx import DateTime
+from datetime import datetime
+from dateutil.relativedelta import relativedelta
+
class sale_order_dates(osv.osv):
_inherit = 'sale.order'
_name = 'sale.order'
@@ -45,7 +47,7 @@ class sale_order_dates(osv.osv):
for order in self.browse(cr, uid, ids):
dates_list = []
for line in order.order_line:
- dt=DateTime.strptime(order.date_order, '%Y-%m-%d') + DateTime.RelativeDateTime(days=line.delay or 0.0)
+ dt = datetime.strptime(order.date_order, '%Y-%m-%d') + relativedelta(days=line.delay or 0.0)
dt_s = dt.strftime('%Y-%m-%d')
dates_list.append(dt_s)
if dates_list:
diff --git a/addons/stock/board_warehouse_view.xml b/addons/stock/board_warehouse_view.xml
index e733c9496d8..df33d91a2a3 100644
--- a/addons/stock/board_warehouse_view.xml
+++ b/addons/stock/board_warehouse_view.xml
@@ -43,8 +43,8 @@
-
+
-
\ No newline at end of file
+
diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml
index ee19895b58d..10b7606533f 100644
--- a/addons/stock/product_view.xml
+++ b/addons/stock/product_view.xml
@@ -62,9 +62,8 @@
-
-
-
+
+
diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml
index 677cdfbcfc0..ebd4e0af226 100644
--- a/addons/stock/report/picking.rml
+++ b/addons/stock/report/picking.rml
@@ -150,10 +150,10 @@
- [[ picking.sale_id and picking.sale_id.partner_shipping_id and 'Shipping Address :' or removeParentNode('para') ]]
- [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]]
- [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.street) or '' ]]
- [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.zip) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.city) or '' ]] [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]]
+ [[ picking.address_id and 'Shipping Address :' or removeParentNode('para') ]]
+ [[ ( picking.address_id and picking.address_id.title) or '' ]] [[ (picking.address_id and picking.address_id.name) or '' ]]
+ [[ (picking.address_id and picking.address_id.street) or '' ]]
+ [[ (picking.address_id and picking.address_id.zip) or '' ]] [[ (picking.address_id and picking.address_id.city) or '' ]] [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]]
[[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]]
@@ -202,7 +202,7 @@
[[ picking.origin ]]
- [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]]
+ [[ (picking.address_id and picking.address_id.title) or '' ]] [[ (picking.address_id and and picking.address_id.name) or '' ]]
[[ formatLang(picking.min_date,date_time = True) ]]
@@ -241,7 +241,7 @@
- [[ repeatIn([line for line in picking.move_lines if (line.state == 'assigned' )],'move_lines') ]]
+ [[ repeatIn([line for line in picking.move_lines if (line.state == 'assigned' )],'move_lines') or removeParentNode('section') ]]
@@ -267,10 +267,11 @@
-
- [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('para') ]]
+
+ [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('s') ]]
Non Assigned Products: [[ ( move_lines.state == 'assigned' or move_lines.state == 'done' or move_lines.state == 'confirmed' ) and removeParentNode('para') ]]
[[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('para') ]]
+
[[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]]
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index 4e62e10f637..83f828203f6 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -536,16 +536,7 @@ class stock_picking(osv.osv):
if ('name' not in vals) or (vals.get('name')=='/'):
seq_obj_name = 'stock.picking.' + vals['type']
vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)
- type_list = {
- 'out':_('Picking List'),
- 'in':_('Reception'),
- 'internal': _('Internal Picking'),
- 'delivery': _('Delivery Order')
- }
new_id = super(stock_picking, self).create(cr, user, vals, context)
- if not vals.get('auto_picking', False):
- message = type_list.get(vals.get('type', False), _('Picking')) + " '" + (vals['name'] or "n/a") + _(" with origin")+" '" + (vals.get('origin') or "n/a") + "' "+ _("is created.")
- self.log(cr, user, new_id, message)
return new_id
_columns = {
@@ -626,6 +617,9 @@ class stock_picking(osv.osv):
for r in picking.move_lines:
if r.state == 'draft':
todo.append(r.id)
+
+ self.log_picking(cr, uid, ids, context=context)
+
todo = self.action_explode(cr, uid, todo, context)
if len(todo):
self.pool.get('stock.move').action_confirm(cr, uid, todo, context=context)
@@ -710,16 +704,8 @@ class stock_picking(osv.osv):
""" Changes picking state to assigned.
@return: True
"""
- for pick in self.browse(cr, uid, ids, context=context):
- type_list = {
- 'out':'Picking List',
- 'in':'Reception',
- 'internal': 'Internal picking',
- 'delivery': 'Delivery order'
- }
- message = type_list.get(pick.type, _('Document')) + " '" + (pick.name or 'n/a') + "' "+ _("is ready to be processed.")
- self.log(cr, uid, id, message)
self.write(cr, uid, ids, {'state': 'assigned'})
+ self.log_picking(cr, uid, ids, context=context)
return True
def test_finnished(self, cr, uid, ids):
@@ -758,8 +744,7 @@ class stock_picking(osv.osv):
ids2 = [move.id for move in pick.move_lines]
self.pool.get('stock.move').action_cancel(cr, uid, ids2, context)
self.write(cr, uid, ids, {'state': 'cancel', 'invoice_state': 'none'})
- message = _('Picking') + " '" + pick.name + "' "+_("is cancelled")
- self.log(cr, uid, id, message)
+ self.log_picking(cr, uid, ids, context=context)
return True
#
@@ -1190,6 +1175,31 @@ class stock_picking(osv.osv):
return res
+ def log_picking(self, cr, uid, ids, context=None):
+ """ This function will create log messages for picking.
+ @param cr: the database cursor
+ @param uid: the current user's ID for security checks,
+ @param ids: List of Picking Ids
+ @param context: A standard dictionary for contextual values
+ """
+ for pick in self.browse(cr, uid, ids, context=context):
+ type_list = {
+ 'out':'Picking List',
+ 'in':'Reception',
+ 'internal': 'Internal picking',
+ 'delivery': 'Delivery order'
+ }
+ message = type_list.get(pick.type, _('Document')) + " '" + (pick.name or 'n/a') + "' "
+ state_list = {
+ 'confirmed': "is scheduled for the '" + datetime.strptime(pick.min_date, '%Y-%m-%d %H:%M:%S').strftime('%Y-%m-%d') + "'.",
+ 'assigned': 'is ready to process.',
+ 'cancel': 'is Cancelled.',
+ 'done': 'is processed.',
+ }
+ message += state_list[pick.state]
+ self.log(cr, uid, pick.id, message)
+ return True
+
stock_picking()
class stock_production_lot(osv.osv):
@@ -1844,8 +1854,6 @@ class stock_move(osv.osv):
'ref': move.picking_id and move.picking_id.name,
})
- message = _('Move line') + " '" + move.name + "' "+ _("is processed.")
- self.log(cr, uid, move.id, message)
# This can be removed
#tracking_lot = False
#if context:
@@ -1865,9 +1873,7 @@ class stock_move(osv.osv):
for pick_id in picking_ids:
wf_service.trg_write(uid, 'stock.picking', pick_id, cr)
- for (id,name) in picking_obj.name_get(cr, uid, picking_ids):
- message = _('Document') + " '" + name + "' "+ _("is processed.")
- self.log(cr, uid, id, message)
+ picking_obj.log_picking(cr, uid, picking_ids, context=context)
return True
def create_account_move(self, cr, uid, move,account_id, account_variation, amount, context=None):
@@ -1940,8 +1946,11 @@ class stock_move(osv.osv):
new_move = self.copy(cr, uid, move.id, default_val)
#self.write(cr, uid, [new_move], {'move_history_ids':[(4,move.id)]}) #TODO : to track scrap moves
res += [new_move]
- message = _('Product ') + " '" + move.product_id.name + "' "+ _("is scraped with") + " '" + str(move.product_qty) + "' "+ _("quantity.")
+ product_obj = self.pool.get('product.product')
+ for (id, name) in product_obj.name_get(cr, uid, [move.product_id.id]):
+ message = _('Product ') + " '" + name + "' "+ _("is scraped with") + " '" + str(move.product_qty) + "' "+ _("quantity.")
self.log(cr, uid, move.id, message)
+
self.action_done(cr, uid, res)
return res
@@ -2068,8 +2077,12 @@ class stock_move(osv.osv):
}
self.write(cr, uid, [move.id], update_val)
- message = _('Product ') + " '" + move.product_id.name + "' "+ _("is consumed with") + " '" + str(move.product_qty) + "' "+ _("quantity.")
- self.log(cr, uid, move.id, message)
+
+ product_obj = self.pool.get('product.product')
+ for new_move in self.browse(cr, uid, res, context=context):
+ for (id, name) in product_obj.name_get(cr, uid, [new_move.product_id.id]):
+ message = _('Product ') + " '" + name + "' "+ _("is consumed with") + " '" + str(new_move.product_qty) + "' "+ _("quantity.")
+ self.log(cr, uid, new_move.id, message)
self.action_done(cr, uid, res)
return res
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 2eb218da275..5668ed673d4 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -896,7 +896,6 @@
-
diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py
index 2c9140fa767..cfc381d09b4 100644
--- a/addons/thunderbird/installer.py
+++ b/addons/thunderbird/installer.py
@@ -33,7 +33,7 @@ class thunderbird_installer(osv.osv_memory):
data = super(thunderbird_installer, self).default_get(cr, uid, fields, context)
pdf_file = open(config['addons_path'] + "/thunderbird/doc/Installation Guide to OpenERP Thunderbid Plug-in.pdf", 'r')
data['pdf_file'] = base64.encodestring(pdf_file.read())
- file = open(config['addons_path'] + "/thunderbird/plugin/tiny_plugin-2.0.xpi", 'r')
+ file = open(config['addons_path'] + "/thunderbird/plugin/OpenERP_plugin-2.0.xpi", 'r')
data['plugin_file'] = base64.encodestring(file.read())
return data
@@ -48,9 +48,9 @@ class thunderbird_installer(osv.osv_memory):
_defaults = {
'thunderbird' : True,
- 'name' : 'tiny_plugin-2.0.xpi',
+ 'name' : 'OpenERP_plugin-2.0.xpi',
'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf',
- 'description' : """ * Save the Thunderbird plugin. \n * Follows the step to install Thunderbird plugin. \n -> 1.From Menu Bar of Thunderbird, open Tools > Add ons. \n -> 2. Click on install button and a browser window appears. \n -> 3. Select the plug-in(.xpi file) and click Ok. \n -> 4. Software installation window appears and within a short time “Install Now” button will be enabled \n -> 5. Click "Install Now". \n -> 6. Restart Thunderbird."""
+ 'description' : """ * Save the Thunderbird plugin. \n * Follow the Steps to configure OpenERP in Thunderbird. \n -> 1. Go to Tools > OpenERP Synchronization. \n -> 2. check data (configured by default). \n -> 3. Click Test Connection. \n -> 4. A message appears with state of your connection. \n -> 5. If your connection failed, check if your database is open, and check your data. \n -> 6. If you have a good connection, click Ok and start to archive mail in OpenERP."""
}
thunderbird_installer()
diff --git a/addons/wiki/i18n/pl.po b/addons/wiki/i18n/pl.po
index f626f87107f..4157d7c4f7f 100644
--- a/addons/wiki/i18n/pl.po
+++ b/addons/wiki/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-09-08 12:13+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-07-26 19:55+0000\n"
+"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \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-06-22 04:17+0000\n"
+"X-Launchpad-Export-Date: 2010-07-27 03:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: wiki
@@ -37,12 +37,12 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,create_uid:0
msgid "Author"
-msgstr ""
+msgstr "Autor"
#. module: wiki
#: model:ir.actions.wizard,name:wiki.wizard_open_page
msgid "Open Page"
-msgstr ""
+msgstr "Otwórz stronę"
#. module: wiki
#: field:wiki.groups.link,action_id:0
@@ -52,66 +52,66 @@ msgstr ""
#. module: wiki
#: field:wiki.groups,child_ids:0
msgid "Child Groups"
-msgstr ""
+msgstr "Grupy podrzędne"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.act_wiki_group_open
#: model:ir.actions.act_window,name:wiki.action_wiki
#: model:ir.ui.menu,name:wiki.menu_action_wiki_wiki
msgid "Wiki Pages"
-msgstr ""
+msgstr "Strony Wiki"
#. module: wiki
#: field:wiki.groups,section:0
msgid "Make Section ?"
-msgstr ""
+msgstr "Utworzyć sekcję ?"
#. module: wiki
#: model:ir.model,name:wiki.model_wiki_wiki_history
#: view:wiki.wiki.history:0
msgid "Wiki History"
-msgstr ""
+msgstr "Historia wiki"
#. module: wiki
#: field:wiki.wiki,minor_edit:0
msgid "Minor edit"
-msgstr ""
+msgstr "Drobna edycja"
#. module: wiki
#: field:wiki.wiki,text_area:0
msgid "Content"
-msgstr ""
+msgstr "Zawartość"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document_configuration
msgid "Wiki Configuration"
-msgstr ""
+msgstr "Konfiguracja wiki"
#. module: wiki
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nieprawidłowa nazwa modelu w definicji akcji."
#. module: wiki
#: field:wiki.groups,name:0
#: field:wiki.wiki,group_id:0
msgid "Wiki Group"
-msgstr ""
+msgstr "Grupa wiki"
#. module: wiki
#: field:wiki.wiki,name:0
msgid "Title"
-msgstr ""
+msgstr "Tytuł"
#. module: wiki
#: field:wiki.wiki,history_id:0
msgid "History Lines"
-msgstr ""
+msgstr "Pozycje historii"
#. module: wiki
#: field:wiki.groups,template:0
msgid "Wiki Template"
-msgstr ""
+msgstr "Szablon wiki"
#. module: wiki
#: model:ir.module.module,shortdesc:wiki.module_meta_information
@@ -121,17 +121,17 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Create a Menu"
-msgstr ""
+msgstr "Utwórz menu"
#. module: wiki
#: field:wiki.groups,notes:0
msgid "Description"
-msgstr ""
+msgstr "Opis"
#. module: wiki
#: field:wiki.wiki,section:0
msgid "Section"
-msgstr ""
+msgstr "Sekcja"
#. module: wiki
#: view:wizard.wiki.history.show_diff:0
@@ -146,12 +146,12 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,write_uid:0
msgid "Last Author"
-msgstr ""
+msgstr "Ostatni autor"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.act_view_diff
msgid "Differences"
-msgstr ""
+msgstr "Różnice"
#. module: wiki
#: help:wiki.wiki,section:0
@@ -161,17 +161,17 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Page Template"
-msgstr ""
+msgstr "Szablon strony"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document2
msgid "Document Management"
-msgstr ""
+msgstr "Zarządzanie dokumentami"
#. module: wiki
#: field:wiki.wiki.history,create_date:0
msgid "Date"
-msgstr ""
+msgstr "Data"
#. module: wiki
#: wizard_view:wiki.make.index,init:0
@@ -181,13 +181,13 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Configuration"
-msgstr ""
+msgstr "Konfiguracja"
#. module: wiki
#: field:wiki.groups,home:0
#: field:wiki.groups,page_ids:0
msgid "Pages"
-msgstr ""
+msgstr "Strony"
#. module: wiki
#: constraint:ir.ui.view:0
@@ -197,22 +197,22 @@ msgstr "XML niewłaściwy dla tej architektury wyświetlania!"
#. module: wiki
#: field:wiki.wiki.history,text_area:0
msgid "Text area"
-msgstr ""
+msgstr "Obszar tekstu"
#. module: wiki
#: wizard_field:wiki.create.menu,init,menu_parent_id:0
msgid "Parent Menu"
-msgstr ""
+msgstr "Menu nadrzędne"
#. module: wiki
#: field:wiki.wiki,create_date:0
msgid "Created on"
-msgstr ""
+msgstr "Utworzono"
#. module: wiki
#: view:wiki.groups:0
msgid "Notes"
-msgstr ""
+msgstr "Uwagi"
#. module: wiki
#: wizard_view:wiki.create.menu,init:0
@@ -224,18 +224,18 @@ msgstr ""
#: field:wiki.groups,parent_id:0
#: field:wiki.groups.link,group_id:0
msgid "Parent Group"
-msgstr ""
+msgstr "Grupa nadrzędna"
#. module: wiki
#: field:wiki.wiki,summary:0
#: field:wiki.wiki.history,summary:0
msgid "Summary"
-msgstr ""
+msgstr "Podsumowanie"
#. module: wiki
#: field:wiki.groups,create_date:0
msgid "Created Date"
-msgstr ""
+msgstr "Data utworzenia"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.action_history
@@ -261,17 +261,17 @@ msgstr ""
#. module: wiki
#: wizard_field:wiki.create.menu,init,menu_name:0
msgid "Menu Name"
-msgstr ""
+msgstr "Nazwa menu"
#. module: wiki
#: view:wiki.wiki:0
msgid "Modifications"
-msgstr ""
+msgstr "Modyfikacje"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.act_wiki_wiki_history
msgid "History"
-msgstr ""
+msgstr "Historia"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document
@@ -282,18 +282,18 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,write_date:0
msgid "Modification Date"
-msgstr ""
+msgstr "Data modyfikacji"
#. module: wiki
#: model:ir.actions.wizard,name:wiki.wizard_make_index
#: wizard_button:wiki.make.index,init,yes:0
msgid "Create Index"
-msgstr ""
+msgstr "Utwórz indeks"
#. module: wiki
#: field:wiki.wiki.history,minor_edit:0
msgid "This is a major edit ?"
-msgstr ""
+msgstr "Czy jest to większa edycja ?"
#. module: wiki
#: model:ir.actions.wizard,name:wiki.wizard_group_menu_create
@@ -301,12 +301,12 @@ msgstr ""
#: wizard_button:wiki.create.menu,init,create_menu:0
#: wizard_view:wiki.make.index,init:0
msgid "Create Menu"
-msgstr ""
+msgstr "Utwórz menu"
#. module: wiki
#: field:wiki.wiki,tags:0
msgid "Tags"
-msgstr ""
+msgstr "Znaczniki"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.action_wiki_groups
@@ -316,7 +316,7 @@ msgstr ""
#: model:ir.ui.menu,name:wiki.menu_action_wiki_groups_browse
#: view:wiki.groups:0
msgid "Wiki Groups"
-msgstr ""
+msgstr "Grupy wiki"
#. module: wiki
#: field:wiki.wiki.history,write_uid:0
@@ -326,20 +326,20 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,toc:0
msgid "Table of Contents"
-msgstr ""
+msgstr "Spis treści"
#. module: wiki
#: wizard_button:wiki.create.menu,init,end:0
#: wizard_button:wiki.make.index,init,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Anuluj"
#. module: wiki
#: field:wizard.wiki.history.show_diff,diff:0
msgid "Diff"
-msgstr ""
+msgstr "Różnice"
#. module: wiki
#: field:wiki.wiki,review:0
msgid "Need Review"
-msgstr ""
+msgstr "Wymaga przejrzenia"