@@ -37,7 +37,7 @@ class journal_print(report_sxw.rml_parse):
|
||||
self.cr.execute('select sum(amount) from account_analytic_line where journal_id=%s', (journal_id,))
|
||||
return self.cr.fetchone()[0] or 0.0
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(journal_print, self).__init__(cr, uid, name, context)
|
||||
super(journal_print, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext = {
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -27,7 +27,7 @@ from report import report_sxw
|
||||
|
||||
class account_analytic_balance(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_balance, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_balance, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'get_objects': self._get_objects,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class account_analytic_analytic_check(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_analytic_check, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_analytic_check, self).__init__(cr, uid, name, context=context)
|
||||
self.sum_gen_deb = 0.0
|
||||
self.sum_gen_cred = 0.0
|
||||
self.sum_ana_deb = 0.0
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
#
|
||||
class account_analytic_journal(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_journal, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_journal, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines': self._lines,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class account_analytic_cost_ledger(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines_g': self._lines_g,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class account_inverted_analytic_balance(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_inverted_analytic_balance, self).__init__(cr, uid, name, context)
|
||||
super(account_inverted_analytic_balance, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines_g': self._lines_g,
|
||||
|
||||
@@ -26,8 +26,7 @@ from report import report_sxw
|
||||
|
||||
class account_analytic_quantity_cost_ledger(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_quantity_cost_ledger, self).__init__(cr, uid,
|
||||
name, context)
|
||||
super(account_analytic_quantity_cost_ledger, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines_g': self._lines_g,
|
||||
|
||||
@@ -30,7 +30,7 @@ from report import report_sxw
|
||||
class account_balance(report_sxw.rml_parse):
|
||||
_name = 'report.account.account.balance'
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_balance, self).__init__(cr, uid, name, context)
|
||||
super(account_balance, self).__init__(cr, uid, name, context=context)
|
||||
self.sum_debit = 0.00
|
||||
self.sum_credit = 0.00
|
||||
self.date_lst = []
|
||||
|
||||
@@ -29,7 +29,7 @@ from report import report_sxw
|
||||
#
|
||||
class journal_print(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(journal_print, self).__init__(cr, uid, name, context)
|
||||
super(journal_print, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -30,7 +30,7 @@ class account_tax_code_report(rml_parse.rml_parse):
|
||||
#_name = 'report.account.tax.code.entries'
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_tax_code_report, self).__init__(cr, uid, name, context)
|
||||
super(account_tax_code_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'get_line':self.get_line,
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
class aged_trial_report(rml_parse.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(aged_trial_report, self).__init__(cr, uid, name, context)
|
||||
super(aged_trial_report, self).__init__(cr, uid, name, context=context)
|
||||
self.line_query = ''
|
||||
self.total_account = []
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
#
|
||||
class journal_print(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(journal_print, self).__init__(cr, uid, name, context)
|
||||
super(journal_print, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -29,7 +29,7 @@ from report import report_sxw
|
||||
#
|
||||
class journal_print(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(journal_print, self).__init__(cr, uid, name, context)
|
||||
super(journal_print, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -53,7 +53,7 @@ class general_ledger(rml_parse.rml_parse):
|
||||
super(general_ledger, self).set_context(objects, data, new_ids, report_type)
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(general_ledger, self).__init__(cr, uid, name, context)
|
||||
super(general_ledger, self).__init__(cr, uid, name, context=context)
|
||||
self.date_borne = {}
|
||||
self.query = ""
|
||||
self.child_ids = ""
|
||||
|
||||
@@ -52,7 +52,7 @@ class general_ledger_landscape(rml_parse.rml_parse):
|
||||
super(general_ledger_landscape, self).set_context(objects, data, new_ids,report_type)
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(general_ledger_landscape, self).__init__(cr, uid, name, context)
|
||||
super(general_ledger_landscape, self).__init__(cr, uid, name, context=context)
|
||||
self.date_borne = {}
|
||||
self.query = ""
|
||||
self.child_ids = ""
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class account_invoice(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_invoice, self).__init__(cr, uid, name, context)
|
||||
super(account_invoice, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -233,7 +233,6 @@
|
||||
<images/>
|
||||
<story>
|
||||
<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
|
||||
<para style="terp_default_8">[[ o.partner_id.name ]]</para>
|
||||
<para style="terp_default_8">[[ setLang(o.partner_id.lang) ]] </para>
|
||||
<blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
|
||||
<tr>
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class partner_balance(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(partner_balance, self).__init__(cr, uid, name, context)
|
||||
super(partner_balance, self).__init__(cr, uid, name, context=context)
|
||||
self.date_lst = []
|
||||
self.date_lst_string = ''
|
||||
self.account_ids = ''
|
||||
|
||||
@@ -32,7 +32,7 @@ import sys
|
||||
|
||||
class rml_parse(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=None)
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'comma_me': self.comma_me,
|
||||
'format_date': self._get_and_change_date_format_for_swiss,
|
||||
|
||||
@@ -31,7 +31,7 @@ import re
|
||||
class tax_report(rml_parse.rml_parse):
|
||||
_name = 'report.account.vat.declaration'
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(tax_report, self).__init__(cr, uid, name, context)
|
||||
super(tax_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'get_period': self._get_period,
|
||||
|
||||
@@ -31,7 +31,7 @@ class third_party_ledger(rml_parse.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
self.date_lst = []
|
||||
self.date_lst_string = ''
|
||||
super(third_party_ledger, self).__init__(cr, uid, name, context)
|
||||
super(third_party_ledger, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -152,10 +152,10 @@ class wiz_refund(wizard.interface):
|
||||
invoice = invoice[0]
|
||||
del invoice['id']
|
||||
invoice_lines = pool.get('account.invoice.line').read(cr, uid, invoice['invoice_line'])
|
||||
invoice_lines = pool.get('account.invoice')._refund_cleanup_lines(invoice_lines)
|
||||
invoice_lines = pool.get('account.invoice')._refund_cleanup_lines(cr, uid, invoice_lines)
|
||||
tax_lines = pool.get('account.invoice.tax').read(
|
||||
cr, uid, invoice['tax_line'])
|
||||
tax_lines = pool.get('account.invoice')._refund_cleanup_lines(tax_lines)
|
||||
tax_lines = pool.get('account.invoice')._refund_cleanup_lines(cr, uid, tax_lines)
|
||||
|
||||
invoice.update({
|
||||
'type': inv.type,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class crossovered_analytic(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(crossovered_analytic, self).__init__(cr, uid, name, context)
|
||||
super(crossovered_analytic, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'lines': self._lines,
|
||||
|
||||
@@ -35,7 +35,7 @@ parents = {
|
||||
|
||||
class account_balance(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_balance, self).__init__(cr, uid, name, context)
|
||||
super(account_balance, self).__init__(cr, uid, name, context=context)
|
||||
self.flag=1
|
||||
self.dr_total= 0.00
|
||||
self.cr_total= 0.00
|
||||
|
||||
@@ -36,7 +36,7 @@ parents = {
|
||||
|
||||
class account_balance_landscape(rml_parse.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_balance_landscape, self).__init__(cr, uid, name, context)
|
||||
super(account_balance_landscape, self).__init__(cr, uid, name, context=context)
|
||||
self.flag=1
|
||||
self.dr_total= 0.00
|
||||
self.cr_total= 0.00
|
||||
|
||||
@@ -32,7 +32,7 @@ import sys
|
||||
|
||||
class rml_parse(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=None)
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'comma_me': self.comma_me,
|
||||
'format_date': self._get_and_change_date_format_for_swiss,
|
||||
|
||||
@@ -26,7 +26,7 @@ import datetime
|
||||
|
||||
class analytic_account_budget_report(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(analytic_account_budget_report, self).__init__(cr, uid, name, context)
|
||||
super(analytic_account_budget_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'funct': self.funct,
|
||||
'funct_total': self.funct_total,
|
||||
|
||||
@@ -27,7 +27,7 @@ import operator
|
||||
|
||||
class budget_report(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(budget_report, self).__init__(cr, uid, name, context)
|
||||
super(budget_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'lines': self.lines,
|
||||
'budget_total': self.budget_total,
|
||||
|
||||
@@ -29,7 +29,7 @@ import osv
|
||||
|
||||
class budget_report(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(budget_report, self).__init__(cr, uid, name, context)
|
||||
super(budget_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'funct': self.funct,
|
||||
'funct_total': self.funct_total,
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class report_rappel(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(report_rappel, self).__init__(cr, uid, name, context)
|
||||
super(report_rappel, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time' : time,
|
||||
'ids_to_objects': self._ids_to_objects,
|
||||
|
||||
@@ -162,7 +162,7 @@ class followup_all_print(wizard.interface):
|
||||
if (not dest) and adr.type=='default':
|
||||
if adr.email:
|
||||
dest = [adr.email]
|
||||
src = tools.config.options['smtp_user']
|
||||
src = tools.config.options['email_from']
|
||||
if not data['form']['partner_lang']:
|
||||
body = data['form']['email_body']
|
||||
else:
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class account_invoice_1(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_invoice_1, self).__init__(cr, uid, name, context)
|
||||
super(account_invoice_1, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'invoice_lines': self.invoice_lines,
|
||||
|
||||
@@ -26,7 +26,7 @@ import pooler
|
||||
|
||||
class account_invoice_with_message(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_invoice_with_message, self).__init__(cr, uid, name, context)
|
||||
super(account_invoice_with_message, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'spcl_msg': self.spcl_msg,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class payment_order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(payment_order, self).__init__(cr, uid, name, context)
|
||||
super(payment_order, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
class accounting_report(report_sxw.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(accounting_report, self).__init__(cr, uid, name, context)
|
||||
super(accounting_report, self).__init__(cr, uid, name, context=context)
|
||||
self.ret_list = []
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -76,7 +76,7 @@ import os
|
||||
class accounting_report_indicator(report_sxw.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(accounting_report_indicator, self).__init__(cr, uid, name, context)
|
||||
super(accounting_report_indicator, self).__init__(cr, uid, name, context=context)
|
||||
self.ret_list = []
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -36,7 +36,7 @@ parents = {
|
||||
|
||||
class account_report_bs(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_report_bs, self).__init__(cr, uid, name, context)
|
||||
super(account_report_bs, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'lines': self.lines,
|
||||
|
||||
@@ -1,598 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_voucher
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-05-19 14:36+0000\n"
|
||||
"PO-Revision-Date: 2009-05-19 17:10+0000\n"
|
||||
"Last-Translator: <>\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: 2009-08-28 11:00+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.act_account_acount_move_line_open1
|
||||
msgid "Opening Balance Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_bakreceipt_voucher_list
|
||||
msgid "Bank Receipts"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Particulars"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "State :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: constraint:ir.actions.act_window:0
|
||||
msgid "Invalid model name in the action definition."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Ref. :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_cont_voucher_form
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_cont_voucher_form
|
||||
msgid "Contra Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,company_id:0
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_jour_voucher_form
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_voucher_form
|
||||
msgid "Journal Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid ","
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Set to Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: wizard_button:account.voucher.open,init,open:0
|
||||
msgid "Open Voucher Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.model,name:account_voucher.model_account_voucher_line
|
||||
msgid "Voucher Line"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
msgid "Total Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,account_id:0
|
||||
#: field:account.voucher.line,account_id:0
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
msgid "D"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.account,level:0
|
||||
msgid "Level"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
msgid "Account Entry Line"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
msgid "Total Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,amount:0
|
||||
#: field:account.voucher.line,amount:0
|
||||
#: rml:voucher.cash_amount:0
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Receiver's Signature"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "No."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Amount (in words) :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher.line,account_analytic_id:0
|
||||
msgid "Analytic Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_jour_sale_voucher_form
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_sale_voucher_form
|
||||
msgid "Journal Sale Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_receipt_vou_voucher_list
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_vou_voucher_list
|
||||
msgid "Receipt Vouchers"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
msgid "Account :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "On Account of :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_payments_bankpay_voucher_list
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_payments_cashpay_voucher_list
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_payments_voucher_list
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_payments_voucher_list
|
||||
msgid "Payment Vouchers"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.account,type1:0
|
||||
#: selection:account.account.template,type1:0
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,number:0
|
||||
msgid "Number"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
#: field:account.voucher,state:0
|
||||
#: wizard_field:account.voucher.open,init,state:0
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.account,type1:0
|
||||
#: selection:account.account.template,type1:0
|
||||
#: selection:account.voucher.line,type:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,type:0
|
||||
#: field:account.voucher.line,type:0
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_voucher_list
|
||||
msgid "Voucher Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Authorised Signatory"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_voucher_list
|
||||
msgid "Vouchers"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
#: field:account.voucher.line,voucher_id:0
|
||||
#: model:res.request.link,name:account_voucher.req_link_voucher
|
||||
msgid "Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: wizard_view:account.voucher.open,init:0
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_wizard_account_voucher_open
|
||||
msgid "Open Vouchers"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: constraint:ir.ui.view:0
|
||||
msgid "Invalid XML for View Architecture!"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Dated :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_cashreceipt_voucher_list
|
||||
msgid "Cash Receipts"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,partner_id:0
|
||||
#: field:account.voucher.line,partner_id:0
|
||||
msgid "Partner"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_bank_pay_voucher_form
|
||||
msgid "New Bank Payment"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
#: field:account.voucher,payment_ids:0
|
||||
msgid "Voucher Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,currency_id:0
|
||||
msgid "Currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
#: field:account.move,narration:0
|
||||
#: view:account.voucher:0
|
||||
#: field:account.voucher,narration:0
|
||||
msgid "Narration"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,reference:0
|
||||
msgid "Voucher Reference"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_cash_rec_voucher_form
|
||||
msgid "New Cash Receipt"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.report.xml,name:account_voucher.report_account_voucher_amt
|
||||
msgid "Voucher Report"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.account,open_bal:0
|
||||
msgid "Opening Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.voucher,state:0
|
||||
#: selection:account.voucher.open,init,state:0
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "PRO-FORMA"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_receipt_cashreceipt_voucher_list
|
||||
msgid "Cash Receipt"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_cash_pay_voucher_form
|
||||
msgid "New Cash Payment"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
msgid "Optional Information"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "General Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,date:0
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid ":"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.account,type1:0
|
||||
#: field:account.account.template,type1:0
|
||||
msgid "Dr/Cr"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.report.xml,name:account_voucher.report_account_voucher
|
||||
msgid "Voucher Report (Cr/Dr)"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.move,voucher_type:0
|
||||
#: wizard_field:account.voucher.open,init,type:0
|
||||
msgid "Voucher Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.account,type1:0
|
||||
#: selection:account.account.template,type1:0
|
||||
#: selection:account.voucher.line,type:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Through :"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,reference_type:0
|
||||
msgid "Reference Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.model,name:account_voucher.model_account_voucher
|
||||
msgid "Accounting Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,period_id:0
|
||||
msgid "Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_payments_bankpay_voucher_list
|
||||
msgid "Bank Payments"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.move:0
|
||||
msgid "General Information"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: wizard_field:account.voucher.open,init,period_ids:0
|
||||
msgid "Periods"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
#: selection:account.voucher,state:0
|
||||
#: wizard_button:account.voucher.open,init,end:0
|
||||
#: selection:account.voucher.open,init,state:0
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
#: selection:account.voucher,state:0
|
||||
#: selection:account.voucher.open,init,state:0
|
||||
msgid "Pro-forma"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: constraint:ir.model:0
|
||||
msgid ""
|
||||
"The Object name must start with x_ and not contain any special character !"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Other Info"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.module.module,shortdesc:account_voucher.module_meta_information
|
||||
msgid "Accounting Voucher Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:res.currency,sub_name:0
|
||||
msgid "Sub Currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_other_voucher_list
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_other_voucher_list
|
||||
msgid "Other Vouchers"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher.line,name:0
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Canceled"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_cash_pay_voucher_form
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Cash Payment Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_receipt_bakreceipt_voucher_list
|
||||
msgid "Bank Receipt"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "-"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_jour_pur_voucher_form
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_pur_voucher_form
|
||||
msgid "Journal Purchase Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.account:0
|
||||
msgid "Closing Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher.line,ref:0
|
||||
msgid "Ref."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.voucher,state:0
|
||||
#: selection:account.voucher.open,init,state:0
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Posted"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,name:0
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,move_ids:0
|
||||
msgid "Real Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.wizard,name:account_voucher.wizard_account_voucher_open
|
||||
msgid "Open a Voucher Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,move_id:0
|
||||
msgid "Account Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Entry Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_view_bank_rec_voucher_form
|
||||
msgid "New Bank Receipt"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_payments_cashpay_voucher_list
|
||||
msgid "Cash Payments"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_cash_rec_voucher_form
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Cash Receipt Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_bank_pay_voucher_form
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Bank Payment Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.move,voucher_type:0
|
||||
#: selection:account.voucher,type:0
|
||||
#: selection:account.voucher.open,init,type:0
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_view_bank_rec_voucher_form
|
||||
#: rml:voucher.cash_amount:0
|
||||
#: rml:voucher.cash_receipt.drcr:0
|
||||
msgid "Bank Receipt Voucher"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.account,journal_id:0
|
||||
#: field:account.voucher,journal_id:0
|
||||
msgid "Journal"
|
||||
msgstr ""
|
||||
@@ -32,7 +32,7 @@ from tools import amount_to_text_en
|
||||
|
||||
class report_voucher(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(report_voucher, self).__init__(cr, uid, name, context)
|
||||
super(report_voucher, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'convert':self.convert,
|
||||
|
||||
@@ -32,7 +32,7 @@ from tools import amount_to_text_en
|
||||
|
||||
class report_voucher_amount(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(report_voucher_amount, self).__init__(cr, uid, name, context)
|
||||
super(report_voucher_amount, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'convert':self.convert
|
||||
@@ -48,4 +48,4 @@ report_sxw.report_sxw(
|
||||
'account.voucher',
|
||||
'addons/account_voucher/report/report_voucher_amount.rml',
|
||||
parser=report_voucher_amount,header=False
|
||||
)
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@ import sys
|
||||
|
||||
class rml_parse(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=None)
|
||||
super(rml_parse, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'comma_me': self.comma_me,
|
||||
'format_date': self._get_and_change_date_format_for_swiss,
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class auction_artists(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_artists, self).__init__(cr, uid, name, context)
|
||||
super(auction_artists, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class auction_bids(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_bids, self).__init__(cr, uid, name, context)
|
||||
super(auction_bids, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class auction_buyer_result(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_buyer_result, self).__init__(cr, uid, name, context)
|
||||
super(auction_buyer_result, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class auction_catelog(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_catelog, self).__init__(cr, uid, name, context)
|
||||
super(auction_catelog, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class auction_objects(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_objects, self).__init__(cr, uid, name, context)
|
||||
super(auction_objects, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
#'lines': self.lines
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class auction_result(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_result, self).__init__(cr, uid, name, context)
|
||||
super(auction_result, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ from report import report_sxw
|
||||
class auction_total_rml(report_sxw.rml_parse):
|
||||
total_obj=[]
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_total_rml, self).__init__(cr, uid, name, context)
|
||||
super(auction_total_rml, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'sum_taxes':self.sum_taxes,
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class bids_lots(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(bids_lots, self).__init__(cr, uid, name, context)
|
||||
super(bids_lots, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class bids_phones_details(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(bids_phones_details, self).__init__(cr, uid, name, context)
|
||||
super(bids_phones_details, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -30,7 +30,7 @@ class buyer_form_report(report_sxw.rml_parse):
|
||||
count=0
|
||||
c=0
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(buyer_form_report, self).__init__(cr, uid, name, context)
|
||||
super(buyer_form_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'sum_taxes': self.sum_taxes,
|
||||
|
||||
@@ -34,7 +34,7 @@ class buyer_list(report_sxw.rml_parse):
|
||||
sum_buyer_price_val=0.0
|
||||
sum_lot_val=0.0
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(buyer_list, self).__init__(cr, uid, name, context)
|
||||
super(buyer_list, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'lines_lots_from_auction' : self.lines_lots_from_auction,
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class catelogwithpictures(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(catelogwithpictures, self).__init__(cr, uid, name, context)
|
||||
super(catelogwithpictures, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import report_sxw
|
||||
|
||||
class deposit_seller(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(deposit_seller, self).__init__(cr, uid, name, context)
|
||||
super(deposit_seller, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class lots_list(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lots_list, self).__init__(cr, uid, name, context)
|
||||
super(lots_list, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'bid_line' : self.bid_line
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class lots_list_inventory(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lots_list_inventory, self).__init__(cr, uid, name, context)
|
||||
super(lots_list_inventory, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'bid_line' : self.bid_line
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class lots_list_llandscape(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lots_list_landscape, self).__init__(cr, uid, name, context)
|
||||
super(lots_list_landscape, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class auction_code_produit(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(auction_code_produit, self).__init__(cr, uid, name, context)
|
||||
super(auction_code_produit, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -28,7 +28,7 @@ from osv import osv
|
||||
|
||||
class seller_form_report(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(seller_form_report, self).__init__(cr, uid, name, context)
|
||||
super(seller_form_report, self).__init__(cr, uid, name, context=context)
|
||||
lot=self.pool.get('auction.lots').browse(cr,uid,uid)
|
||||
#address=lot.bord_vnd_id.address_get(self.cr,self.uid,[partner.id])
|
||||
# partner=lot.bord_vnd_id.partner_id
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
"access_audittrail_rule_group_system","audittrail rule system","model_audittrail_rule","base.group_system",1,1,1,1
|
||||
"access_audittrail_log_group_system","audittrail log system","model_audittrail_log","base.group_system",1,1,1,1
|
||||
"access_audittrail_logline_group_system","audittrail log line system","model_audittrail_log_line","base.group_system",1,1,1,1
|
||||
"access_audittrail_rule_all_users","audittrail rule all","model_audittrail_rule","base.group_user",1,0,0,0
|
||||
"access_audittrail_log_all_users","audittrail log all","model_audittrail_log","base.group_user",1,0,1,0
|
||||
"access_audittrail_log_line_all_users","audittrail log line all","model_audittrail_log_line","base.group_user",1,0,1,0
|
||||
|
||||
|
@@ -378,10 +378,10 @@ class res_partner(osv.osv):
|
||||
22: 'K',
|
||||
23: 'E',
|
||||
}
|
||||
|
||||
if vat[0] in ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'):
|
||||
#Legal persons with profit aim
|
||||
if vat[0] in ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'U', 'V'):
|
||||
try:
|
||||
int(vat[1:])
|
||||
int(vat[1:8])
|
||||
except:
|
||||
return False
|
||||
sum = mult_add(2, int(vat[1])) + int(vat[2]) + \
|
||||
@@ -391,10 +391,11 @@ class res_partner(osv.osv):
|
||||
check = 10 - (sum % 10)
|
||||
if check == 10:
|
||||
check = 0
|
||||
if check != int(vat[8]):
|
||||
return False
|
||||
# if check != int(vat[8]):
|
||||
# return False
|
||||
return True
|
||||
elif vat[0] in ('N', 'P', 'Q', 'S'):
|
||||
#Legal persons with non-profit aim
|
||||
elif vat[0] in ('N', 'P', 'Q', 'R', 'S', 'W'):
|
||||
try:
|
||||
int(vat[1:8])
|
||||
except:
|
||||
@@ -408,17 +409,26 @@ class res_partner(osv.osv):
|
||||
if check != vat[8]:
|
||||
return False
|
||||
return True
|
||||
elif vat[0] in ('K', 'L', 'M', 'X'):
|
||||
#Foreign natural persons, under age 14 or non-residents
|
||||
elif vat[0] in ('K', 'L', 'M', 'X', 'Y', 'Z'):
|
||||
if vat[0] == 'Y':
|
||||
check_value = '1' + vat[1:8]
|
||||
elif vat[0] == 'Z':
|
||||
check_value = '2' + vat[1:8]
|
||||
else:
|
||||
check_value = vat[1:8]
|
||||
|
||||
try:
|
||||
int(vat[1:8])
|
||||
int(check_value)
|
||||
except:
|
||||
return False
|
||||
check = 1 + (int(vat[1:8]) % 23)
|
||||
check = 1 + (int(check_value) % 23)
|
||||
|
||||
check = conv[check]
|
||||
if check != vat[8]:
|
||||
return False
|
||||
return True
|
||||
#Spanish natural persons
|
||||
else:
|
||||
try:
|
||||
int(vat[:8])
|
||||
|
||||
@@ -62,8 +62,8 @@ class rpc_proxy(object):
|
||||
return self.rpc.execute(self.dbname, self.user_id, self.passwd, *request)
|
||||
|
||||
class email_parser(object):
|
||||
def __init__(self, uid, password, section, email, email_default, dbname):
|
||||
self.rpc = rpc_proxy(uid, password, dbname=dbname)
|
||||
def __init__(self, uid, password, section, email, email_default, dbname, host):
|
||||
self.rpc = rpc_proxy(uid, password, host=host, dbname=dbname)
|
||||
try:
|
||||
self.section_id = int(section)
|
||||
except:
|
||||
@@ -315,9 +315,11 @@ if __name__ == '__main__':
|
||||
parser.add_option("-s", "--section", dest="section", help="ID or code of the case section", default="support")
|
||||
parser.add_option("-m", "--default", dest="default", help="Default eMail in case of any trouble.", default=None)
|
||||
parser.add_option("-d", "--dbname", dest="dbname", help="Database name (default: terp)", default='terp')
|
||||
parser.add_option("--host", dest="host", help="Hostname of the Open ERP Server", default="localhost")
|
||||
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
parser = email_parser(options.userid, options.password, options.section, options.email, options.default, dbname=options.dbname)
|
||||
parser = email_parser(options.userid, options.password, options.section, options.email, options.default, dbname=options.dbname, host=options.host)
|
||||
|
||||
msg_txt = email.message_from_file(sys.stdin)
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import datetime
|
||||
|
||||
class attendance_print(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(attendance_print, self).__init__(cr, uid, name, context)
|
||||
super(attendance_print, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'lst': self._lst,
|
||||
|
||||
@@ -26,7 +26,7 @@ import datetime
|
||||
|
||||
class expense(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(expense, self).__init__(cr, uid, name, context)
|
||||
super(expense, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -25,7 +25,7 @@ import pooler
|
||||
|
||||
class account_analytic_profit(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_profit, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_profit, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'lines': self._lines,
|
||||
'user_ids': self._user_ids,
|
||||
|
||||
@@ -27,7 +27,7 @@ from report import report_sxw
|
||||
|
||||
class account_analytic_cost_ledger(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context)
|
||||
super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context=context)
|
||||
self.sum_revenue={}
|
||||
self.account_sum_revenue={}
|
||||
self.localcontext.update( {
|
||||
|
||||
@@ -39,7 +39,7 @@ from mx.DateTime import *
|
||||
class account_invoice_bvr(report_sxw.rml_parse):
|
||||
"""Report class that Allows to print BVR payement vector"""
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_invoice_bvr, self).__init__(cr, uid, name, context)
|
||||
super(account_invoice_bvr, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'user':self.pool.get("res.users").browse(cr,uid,uid),
|
||||
|
||||
@@ -31,7 +31,7 @@ from report import report_sxw
|
||||
|
||||
class base_report(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(base_report, self).__init__(cr, uid, name, context)
|
||||
super(base_report, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'time': time,
|
||||
'_load': self._load,
|
||||
|
||||
@@ -27,6 +27,13 @@
|
||||
name="product.product.procurement"
|
||||
keyword="client_action_multi"
|
||||
id="product_procurement_wizard"/>
|
||||
|
||||
<wizard
|
||||
id="stock.track_line"
|
||||
model="stock.move"
|
||||
multi="True"
|
||||
name="mrp.stock.move.track"
|
||||
string="Track line"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context)
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -28,6 +28,7 @@ import wizard_workcenter_load
|
||||
import wizard_track_prod
|
||||
import wizard_change_production_qty
|
||||
import make_procurement
|
||||
import wizard_track_line
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import wizard
|
||||
import netsvc
|
||||
import pooler
|
||||
|
||||
import time
|
||||
from osv import osv
|
||||
from tools.translate import _
|
||||
|
||||
track_form = '''<?xml version="1.0"?>
|
||||
<form string="Tracking a move">
|
||||
<field name="tracking_prefix"/>
|
||||
<newline/>
|
||||
<field name="quantity"/>
|
||||
</form>
|
||||
'''
|
||||
fields = {
|
||||
'tracking_prefix': {
|
||||
'string': 'Tracking prefix',
|
||||
'type': 'char',
|
||||
'size': 64,
|
||||
},
|
||||
'quantity': {
|
||||
'string': 'Quantity per lot',
|
||||
'type': 'float',
|
||||
'default': 1,
|
||||
}
|
||||
}
|
||||
|
||||
def _track_lines(self, cr, uid, data, context):
|
||||
move_id = data['id']
|
||||
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
prodlot_obj = pool.get('stock.production.lot')
|
||||
move_obj = pool.get('stock.move')
|
||||
production_obj = pool.get('mrp.production')
|
||||
ir_sequence_obj = pool.get('ir.sequence')
|
||||
|
||||
sequence = ir_sequence_obj.get(cr, uid, 'stock.lot.serial')
|
||||
if not sequence:
|
||||
raise wizard.except_wizard(_('Error!'), _('No production sequence defined'))
|
||||
if data['form']['tracking_prefix']:
|
||||
sequence=data['form']['tracking_prefix']+'/'+(sequence or '')
|
||||
|
||||
move = move_obj.browse(cr, uid, [move_id])[0]
|
||||
quantity=data['form']['quantity']
|
||||
if quantity <= 0 or move.product_qty == 0:
|
||||
return {}
|
||||
uos_qty=quantity/move.product_qty*move.product_uos_qty
|
||||
|
||||
quantity_rest = move.product_qty%quantity
|
||||
uos_qty_rest = quantity_rest/move.product_qty*move.product_uos_qty
|
||||
|
||||
update_val = {
|
||||
'product_qty': quantity,
|
||||
'product_uos_qty': uos_qty,
|
||||
}
|
||||
new_move = []
|
||||
production_ids = []
|
||||
for idx in range(int(move.product_qty//quantity)):
|
||||
if idx:
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
new_move.append(current_move)
|
||||
else:
|
||||
current_move = move.id
|
||||
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx}, {'product_id': move.product_id.id})
|
||||
update_val['prodlot_id'] = new_prodlot
|
||||
move_obj.write(cr, uid, [current_move], update_val)
|
||||
production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
|
||||
|
||||
if quantity_rest > 0:
|
||||
idx = int(move.product_qty//quantity)
|
||||
update_val['product_qty']=quantity_rest
|
||||
update_val['product_uos_qty']=uos_qty_rest
|
||||
if idx:
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state})
|
||||
new_move.append(current_move)
|
||||
else:
|
||||
current_move = move.id
|
||||
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx}, {'product_id': move.product_id.id})
|
||||
update_val['prodlot_id'] = new_prodlot
|
||||
move_obj.write(cr, uid, [current_move], update_val)
|
||||
|
||||
products = production_obj.read(cr, uid, production_ids, ['move_lines'])
|
||||
for p in products:
|
||||
for new in new_move:
|
||||
if new not in p['move_lines']:
|
||||
p['move_lines'].append(new)
|
||||
production_obj.write(cr, uid, [p['id']], {'move_lines': [(6, 0, p['move_lines'])]})
|
||||
|
||||
return {}
|
||||
|
||||
class wizard_track_move(wizard.interface):
|
||||
states = {
|
||||
'init': {
|
||||
'actions': [],
|
||||
'result': {'type': 'form', 'arch': track_form, 'fields': fields, 'state': [('end', 'Cancel', 'gtk-cancel'), ('track', 'Ok', 'gtk-ok')]},
|
||||
},
|
||||
'track': {
|
||||
'actions': [_track_lines],
|
||||
'result': {'type':'state', 'state':'end'}
|
||||
}
|
||||
}
|
||||
|
||||
wizard_track_move('mrp.stock.move.track')
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class code_barcode(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(code_barcode, self).__init__(cr, uid, name, context)
|
||||
super(code_barcode, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -26,7 +26,7 @@ from report import report_sxw
|
||||
|
||||
class workcenter_code(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(workcenter_code, self).__init__(cr, uid, name, context)
|
||||
super(workcenter_code, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context)
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'total': self.total,
|
||||
|
||||
@@ -68,9 +68,9 @@ class mrp_production(osv.osv):
|
||||
qty2 = production.product_uos and production.product_uos_qty or False
|
||||
if sub_product.subproduct_type=='variable':
|
||||
if production.product_qty:
|
||||
qty1 *= production.product_qty / (sub_product.product_qty or 1.0)
|
||||
qty1 *= production.product_qty / (production.bom_id.product_qty or 1.0)
|
||||
if production.product_uos_qty:
|
||||
qty2 *= production.product_uos_qty / (sub_product.product_qty or 1.0)
|
||||
qty2 *= production.product_uos_qty / (production.bom_id.product_uos_qty or 1.0)
|
||||
data = {
|
||||
'name':'PROD:'+production.name,
|
||||
'date_planned': production.date_planned,
|
||||
|
||||
@@ -112,7 +112,7 @@ class pos_details(report_sxw.rml_parse):
|
||||
return '%s - %s' % (min_date, max_date)
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(pos_details, self).__init__(cr, uid, name, context)
|
||||
super(pos_details, self).__init__(cr, uid, name, context=context)
|
||||
self.total = 0.0
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -109,7 +109,7 @@ class pos_details_summary(report_sxw.rml_parse):
|
||||
return '%s - %s' % (min_date, max_date)
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(pos_details_summary, self).__init__(cr, uid, name, context)
|
||||
super(pos_details_summary, self).__init__(cr, uid, name, context=context)
|
||||
self.total = 0.0
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -29,7 +29,7 @@ from tools.translate import _
|
||||
class pos_invoice(report_sxw.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(pos_invoice, self).__init__(cr, uid, name, context)
|
||||
super(pos_invoice, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -27,7 +27,7 @@ from report import report_sxw
|
||||
class pos_lines(report_sxw.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(pos_lines, self).__init__(cr, uid, name, context)
|
||||
super(pos_lines, self).__init__(cr, uid, name, context=context)
|
||||
self.total = 0.0
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -29,7 +29,7 @@ import pooler
|
||||
class order(report_sxw.rml_parse):
|
||||
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context)
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
|
||||
user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, uid)
|
||||
partner = user.company_id.partner_id
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class product_pricelist(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(product_pricelist, self).__init__(cr, uid, name, context)
|
||||
super(product_pricelist, self).__init__(cr, uid, name, context=context)
|
||||
self.pricelist=False
|
||||
self.quantity=[]
|
||||
self.localcontext.update({
|
||||
|
||||
@@ -492,7 +492,7 @@
|
||||
<field name="res_model">project.task</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form,calendar,graph,gantt</field>
|
||||
<field name="domain">[('state', '=', 'progress')]</field>
|
||||
<field name="domain">[('state','=','open')]</field>
|
||||
</record>
|
||||
<menuitem action="action_view_task6_prog" id="menu_action_view_task6_prog" parent="project.menu_action_view_task"/>
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class project_work(osv.osv):
|
||||
if line_id in list_avail_ids:
|
||||
obj = self.pool.get('hr.analytic.timesheet')
|
||||
if 'name' in vals:
|
||||
vals_line['name'] = '%s: %s' % (tools.ustr(task.name), tools.ustr(vals['name']) or '/')
|
||||
vals_line['name'] = '%s: %s' % (tools.ustr(task.task_id.name), tools.ustr(vals['name']) or '/')
|
||||
if 'user_id' in vals:
|
||||
vals_line['user_id'] = vals['user_id']
|
||||
if 'date' in vals:
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context)
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'get_line_tax': self._get_line_tax,
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class request_quotation(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(request_quotation, self).__init__(cr, uid, name, context)
|
||||
super(request_quotation, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
'user': self.pool.get('res.users').browse(cr, uid, uid, context)
|
||||
|
||||
@@ -26,7 +26,7 @@ import pooler
|
||||
|
||||
class account_invoice_intrastat(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(account_invoice_intrastat, self).__init__(cr, uid, name, context)
|
||||
super(account_invoice_intrastat, self).__init__(cr, uid, name, context=context)
|
||||
self.total=0
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
|
||||
@@ -26,7 +26,7 @@ from osv import osv
|
||||
|
||||
class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context)
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class sale_prepare(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(sale_prepare, self).__init__(cr, uid, name, context)
|
||||
super(sale_prepare, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update( {
|
||||
'allotment': self._allotment,
|
||||
})
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class shipping(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(shipping, self).__init__(cr, uid, name, context)
|
||||
super(shipping, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
# 'get_address': self._get_address,
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class lot_location(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lot_location, self).__init__(cr, uid, name, context)
|
||||
super(lot_location, self).__init__(cr, uid, name, context=context)
|
||||
self.grand_total = 0.0
|
||||
|
||||
self.localcontext.update({
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class lot_overview(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lot_overview, self).__init__(cr, uid, name, context)
|
||||
super(lot_overview, self).__init__(cr, uid, name, context=context)
|
||||
self.price_total = 0.0
|
||||
self.grand_total = 0.0
|
||||
self.localcontext.update({
|
||||
|
||||
@@ -25,7 +25,7 @@ from report import report_sxw
|
||||
|
||||
class lot_overview_all(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(lot_overview_all, self).__init__(cr, uid, name, context)
|
||||
super(lot_overview_all, self).__init__(cr, uid, name, context=context)
|
||||
self.price_total = 0.0
|
||||
self.grand_total = 0.0
|
||||
self.localcontext.update({
|
||||
|
||||
@@ -27,7 +27,7 @@ import pooler
|
||||
|
||||
class picking(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(picking, self).__init__(cr, uid, name, context)
|
||||
super(picking, self).__init__(cr, uid, name, context=context)
|
||||
self.localcontext.update({
|
||||
'time': time,
|
||||
})
|
||||
|
||||
@@ -132,7 +132,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_default_9">[[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]] [[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]]</para>
|
||||
<para style="terp_default_9">[[ picking.address_id and picking.address_id.street or '' ]][[ picking.address_id and picking.address_id.zip or '' ]]</para>
|
||||
<para style="terp_default_9">[[ picking.address_id and picking.address_id.street or '' ]]</para>
|
||||
<para style="terp_default_9">[[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '']]</para>
|
||||
|
||||
<para style="terp_default_2">
|
||||
<font color="white"> </font>
|
||||
</para>
|
||||
@@ -190,7 +192,7 @@
|
||||
<para style="terp_tblheader_General_Centre">Expected Shipping Date </para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="terp_tblheader_General_Centre">weight</para>
|
||||
<para style="terp_tblheader_General_Centre">Weight</para>
|
||||
</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
|
||||
@@ -54,7 +54,7 @@ def _track_lines(self, cr, uid, data, context):
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
prodlot_obj = pool.get('stock.production.lot')
|
||||
move_obj = pool.get('stock.move')
|
||||
production_obj = pool.get('mrp.production')
|
||||
# production_obj = pool.get('mrp.production')
|
||||
ir_sequence_obj = pool.get('ir.sequence')
|
||||
|
||||
sequence = ir_sequence_obj.get(cr, uid, 'stock.lot.serial')
|
||||
@@ -77,24 +77,26 @@ def _track_lines(self, cr, uid, data, context):
|
||||
'product_uos_qty': uos_qty,
|
||||
}
|
||||
new_move = []
|
||||
production_ids = []
|
||||
# production_ids = []
|
||||
for idx in range(int(move.product_qty//quantity)):
|
||||
if idx:
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
# current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state})
|
||||
new_move.append(current_move)
|
||||
else:
|
||||
current_move = move.id
|
||||
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx}, {'product_id': move.product_id.id})
|
||||
update_val['prodlot_id'] = new_prodlot
|
||||
move_obj.write(cr, uid, [current_move], update_val)
|
||||
production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
|
||||
# production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
|
||||
|
||||
if quantity_rest > 0:
|
||||
idx = int(move.product_qty//quantity)
|
||||
update_val['product_qty']=quantity_rest
|
||||
update_val['product_uos_qty']=uos_qty_rest
|
||||
if idx:
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
# current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})
|
||||
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state})
|
||||
new_move.append(current_move)
|
||||
else:
|
||||
current_move = move.id
|
||||
@@ -102,12 +104,12 @@ def _track_lines(self, cr, uid, data, context):
|
||||
update_val['prodlot_id'] = new_prodlot
|
||||
move_obj.write(cr, uid, [current_move], update_val)
|
||||
|
||||
products = production_obj.read(cr, uid, production_ids, ['move_lines'])
|
||||
for p in products:
|
||||
for new in new_move:
|
||||
if new not in p['move_lines']:
|
||||
p['move_lines'].append(new)
|
||||
production_obj.write(cr, uid, [p['id']], {'move_lines': [(6, 0, p['move_lines'])]})
|
||||
# products = production_obj.read(cr, uid, production_ids, ['move_lines'])
|
||||
# for p in products:
|
||||
# for new in new_move:
|
||||
# if new not in p['move_lines']:
|
||||
# p['move_lines'].append(new)
|
||||
# production_obj.write(cr, uid, [p['id']], {'move_lines': [(6, 0, p['move_lines'])]})
|
||||
|
||||
return {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user