merged from the trnuk

bzr revid: ls@numerigraphe.fr-20090204152225-oibdrgpf6wpyjzui
This commit is contained in:
Lionel Sausin 2009-02-04 16:22:25 +01:00
commit dc73855671
127 changed files with 258 additions and 219 deletions

View File

@ -70,6 +70,6 @@
],
'installable': True,
'active': False,
'certificate': '80331923549',
'certificate': '0080331923549',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -113,7 +113,7 @@ class account_move_line(osv.osv):
account = journal_obj.default_debit_account_id
if account and ((not fields) or ('debit' in fields) or ('credit' in fields)) and 'partner_id' in data:
if account and ((not fields) or ('debit' in fields) or ('credit' in fields)) and 'partner_id' in data and (data['partner_id']):
part = self.pool.get('res.partner').browse(cr, uid, data['partner_id'])
account = self.pool.get('account.fiscal.position').map_account(cr, uid, part and part.property_account_position or False, account.id)
account = self.pool.get('account.account').browse(cr, uid, account)
@ -707,6 +707,7 @@ class account_move_line(osv.osv):
return result
def unlink(self, cr, uid, ids, context={}, check=True):
print "CC"
self._update_check(cr, uid, ids, context)
result = False
for line in self.browse(cr, uid, ids, context):

View File

@ -1309,7 +1309,7 @@
</record>
<record id="action_move_line_tree1" model="ir.actions.act_window">
<field name="name" eval="False"/>
<field name="name">Entry Lines</field>
<field name="res_model">account.move.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>

View File

@ -326,7 +326,7 @@
<para style="terp_default_9">[[ l.name ]]</para>
</td>
<td>
<para style="terp_default_9">[[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]]</para>
<para style="terp_default_9">[[ ', '.join([ lt.description or '' for lt in l.invoice_line_tax_id ]) ]]</para>
</td>
<td>
<para style="terp_default_Right_9">[[ formatLang(l.quantity)]]</para>
@ -489,7 +489,7 @@
<blockTable colWidths="53.0,60.0,65.0" style="Table_Tax_Content">
<tr>
<td>
<para style="terp_default_Centre_8">[[ t.name ]]</para>
<para style="terp_default_Centre_8">[[ lt.description and lt.description + ' - ' + t.name or t.name ]] </para>
</td>
<td>
<para style="terp_default_Right_8">[[ formatLang(t.base) ]]</para>

View File

@ -43,6 +43,6 @@ Add menu to show relevant information for each manager.""",
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '42927202589',
'certificate': '0042927202589',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -41,6 +41,6 @@ Allows to automatically select analytic accounts based on criterions:
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '74229833581',
'certificate': '0074229833581',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -66,6 +66,6 @@ for one account entry.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '36417675373',
'certificate': '0036417675373',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -47,6 +47,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '81928745309',
'certificate': '0081928745309',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -58,6 +58,6 @@ Three reports are available:
'demo_xml': ['crossovered_budget_demo.xml'],
'installable': True,
'active': False,
'certificate': '43819694157',
'certificate': '0043819694157',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -33,6 +33,6 @@
'update_xml': [],
'demo_xml': [],
'installable': True,
'certificate': '73332443901',
'certificate': '0073332443901',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -42,6 +42,6 @@ period !"
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '66174843389',
'certificate': '0066174843389',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,6 +51,6 @@
'demo_xml': ['followup_demo.xml'],
'installable': True,
'active': False,
'certificate': '72481076453',
'certificate': '0072481076453',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -48,6 +48,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '57235078173',
'certificate': '0057235078173',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -49,6 +49,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '61703998541',
'certificate': '0061703998541',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -42,6 +42,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '50976406925',
'certificate': '0050976406925',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -39,6 +39,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '72305016797',
'certificate': '0072305016797',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@ This module implement the modification on the invoice form.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '70514190381',
'certificate': '0070514190381',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -49,6 +49,6 @@ Basic Accounting, plus new things that are available:
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '37580727101',
'certificate': '0037580727101',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -40,6 +40,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '30271787965',
'certificate': '0030271787965',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -40,6 +40,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '82277138269',
'certificate': '0082277138269',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -42,6 +42,6 @@
'demo_xml': ['auction_demo.xml'],
'installable': True,
'active': False,
'certificate': '39333102717',
'certificate': '0039333102717',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -39,6 +39,6 @@
'demo_xml': ['audittrail_demo.xml'],
'installable': True,
'active': False,
'certificate': '62572348749',
'certificate': '0062572348749',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,6 +51,6 @@
'demo_xml': ['base_contact_demo.xml'],
'installable': True,
'active': False,
'certificate': '31287885469',
'certificate': '0031287885469',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -4,7 +4,7 @@
<!-- Create the functions -->
<record id="res_partner_function_privateaddress0" model="res.partner.function">
<field eval="&quot;&quot;&quot;Private Address&quot;&quot;&quot;" name="name"/>
<field name="ref"></field>
<field name="code">PA</field>
</record>
<!-- Create the contacts -->

View File

@ -35,6 +35,6 @@ This module install the base for IBAN bank accounts.
'update_xml': ['base_iban_view.xml'],
'installable': True,
'active': False,
'certificate': '50014379549',
'certificate': '0050014379549',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,13 +38,13 @@ class res_partner_bank(osv.osv):
def create(self, cr, uid, vals, context={}):
#overwrite to format the iban number correctly
if vals.has_key('iban'):
if 'iban' in vals and vals['iban']:
vals['iban'] = _format_iban(vals['iban'])
return super(res_partner_bank, self).create(cr, uid, vals, context)
def write(self, cr, uid, ids, vals, context={}):
#overwrite to format the iban number correctly
if vals.has_key('iban'):
if 'iban' in vals and vals['iban']:
vals['iban'] = _format_iban(vals['iban'])
return super(res_partner_bank, self).write(cr, uid, ids, vals, context)

View File

@ -41,6 +41,6 @@
'update_xml': ['base_module_merge_wizard.xml'],
'demo_xml': [],
'installable': True,
'certificate': '35756279709',
'certificate': '0035756279709',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -43,6 +43,6 @@ to call this button when you want to release a new version of your module.
'update_xml': ['base_module_publish_wizard.xml'],
'demo_xml': [],
'installable': True,
'certificate': '67939821245',
'certificate': '0067939821245',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,6 +51,6 @@ How to use it:
'update_xml': ['security/ir.model.access.csv', 'base_module_record_wizard.xml'],
'demo_xml': [],
'installable': True,
'certificate': '83134865813',
'certificate': '0083134865813',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -182,7 +182,7 @@ class base_module_record(osv.osv):
val = str(val)
val = val and ('"""%s"""' % val.replace('\\', '\\\\').replace('"', '\"')) or 'False'
field.setAttribute(u"eval", val)
field.setAttribute(u"eval", val.decode('utf-8'))
record.appendChild(field)
return record_list, noupdate
@ -324,8 +324,8 @@ class base_module_record(osv.osv):
data.appendChild(res)
elif rec[0]=='assert':
pass
res = doc.toprettyxml(indent="\t")
return doc.toprettyxml(indent="\t").encode('utf8')
return doc.toprettyxml(indent="\t").encode('utf-8')
base_module_record()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -44,6 +44,6 @@ the "Dashboard" menu.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '31285794149',
'certificate': '0031285794149',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -37,6 +37,6 @@ OpenOffice.
'demo_xml': ['base_report_data.xml'],
'installable': True,
'active': False,
'certificate': '56379010493',
'certificate': '0056379010493',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -46,6 +46,6 @@
'demo_xml': ['base_setup_demo.xml'],
'installable': True,
'active': True,
'certificate': '86711085869',
'certificate': '0086711085869',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -31,6 +31,6 @@
'update_xml': ['base_vat_data.xml'],
'installable': True,
'active': False,
'certificate': '84849360989',
'certificate': '0084849360989',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '76912305725',
'certificate': '0076912305725',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -48,6 +48,6 @@
'demo_xml': ['board_account_demo.xml'],
'installable': True,
'active': False,
'certificate': '76016921229',
'certificate': '0076016921229',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -34,6 +34,6 @@ This module implements a dashboard for associations.
'demo_xml': ['board_association_demo.xml'],
'installable': True,
'active': False,
'certificate': '79647781773',
'certificate': '0079647781773',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -35,6 +35,6 @@
'demo_xml': ['board_auction_demo.xml'],
'installable': True,
'active': False,
'certificate': '49187078189',
'certificate': '0049187078189',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -40,6 +40,6 @@ This module implements a dashboard for CRM that includes:
'demo_xml': ['board_crm_demo.xml'],
'installable': True,
'active': False,
'certificate': '71599098909',
'certificate': '0071599098909',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': ['board_document_demo.xml'],
'installable': True,
'active': False,
'certificate': '44628458429',
'certificate': '0044628458429',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@
'demo_xml': ['board_manufacturing_demo.xml'],
'installable': True,
'active': False,
'certificate': '30407612797',
'certificate': '0030407612797',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -47,6 +47,6 @@ This module implements a dashboard for project member that includes:
'demo_xml': ['board_project_demo.xml'],
'installable': True,
'active': False,
'certificate': '39350482013',
'certificate': '0039350482013',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -39,6 +39,6 @@ This module implements a dashboard for salesman that includes:
'demo_xml': ['board_sale_demo.xml'],
'installable': True,
'active': False,
'certificate': '46503501021',
'certificate': '0046503501021',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -57,6 +57,6 @@ between mails and Open ERP.""",
'demo_xml': ['crm_demo.xml'],
'installable': True,
'active': False,
'certificate': '79056041421',
'certificate': '0079056041421',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
@ -181,7 +181,7 @@ class crm_case_section(osv.osv):
'object': True
})
return True
def name_get(self, cr, uid, ids, context={}):
if not len(ids):
return []
@ -295,7 +295,7 @@ class crm_case_rule(osv.osv):
except (ValueError, KeyError, TypeError):
return False
return True
_constraints = [
(_check_mail, 'Error: The mail is not well formated', ['act_mail_body']),
]
@ -505,7 +505,7 @@ class crm_case(osv.osv):
action_ids = newactions
level -= 1
return True
def format_body(self, body):
return tools.ustr(body.encode('ascii', 'replace'))
@ -614,11 +614,11 @@ class crm_case(osv.osv):
# Send an email
tools.email_send(
src,
dest,
src,
dest,
"Reminder: [%s] %s" % (str(case.id), case.name, ),
self.format_body(body),
reply_to=case.section_id.reply_to,
reply_to=case.section_id.reply_to,
tinycrm=str(case.id),
attach=attach_to_send
)
@ -646,6 +646,9 @@ class crm_case(osv.osv):
if not case.email_from:
raise osv.except_osv(_('Error!'),
_('You must put a Partner eMail to use this action!'))
if not case.description:
raise osv.except_osv(_('Error!'),
_('Can not send mail with empty body,you should have description in the body'))
self.__history(cr, uid, cases, _('Send'), history=True, email=False)
for case in cases:
self.write(cr, uid, [case.id], {
@ -655,15 +658,15 @@ class crm_case(osv.osv):
})
emails = [case.email_from] + (case.email_cc or '').split(',')
emails = filter(None, emails)
body = case.description
body = case.description or ''
if case.user_id.signature:
body += '\n\n%s' % (case.user_id.signature)
tools.email_send(
case.user_id.address_id.email,
case.user_id.address_id.email,
emails,
'['+str(case.id)+'] '+case.name,
'['+str(case.id)+'] '+case.name,
self.format_body(body),
reply_to=case.section_id.reply_to,
reply_to=case.section_id.reply_to,
tinycrm=str(case.id)
)
return True

View File

@ -34,7 +34,7 @@
<field name="sequence"/>
<field name="active" select="2"/>
<field name="user_id" select="2"/>
<field name="parent_id" select="2"/>
<field name="parent_id" select="2" domain="[('id', '!=', active_id)]"/>
<field name="reply_to" select="2"/>
<label colspan="2" string="Complete this if you use the mail gateway."/>
</page>

View File

@ -55,6 +55,6 @@ meetings, eso.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '80531386589',
'certificate': '0080531386589',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -105,7 +105,7 @@
</record>
<record id="crm_case_financejob0" model="crm.case">
<field eval="time.strftime('%Y-%m-26 17:39:42')" name="date"/>
<field eval="time.strftime('%Y-%m-29')" name="date_deadline"/>
<field eval="time.strftime('%Y-%m-28')" name="date_deadline"/>
<field name="category2_id" ref="crm_configuration.category_job2"/>
<field name="partner_id" ref="base.res_partner_11"/>
<field eval="&quot;4&quot;" name="priority"/>

View File

@ -45,6 +45,6 @@
'demo_xml': ['crm_profiling_demo.xml'],
'installable': True,
'active': False,
'certificate': '33984979005',
'certificate': '0033984979005',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -33,6 +33,6 @@
'update_xml': [],
'demo_xml': [],
'installable': True,
'certificate': '59915476845',
'certificate': '0059915476845',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@
'demo_xml': ['delivery_demo.xml'],
'installable': True,
'active': False,
'certificate': '33981912253',
'certificate': '0033981912253',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -43,6 +43,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '70515416461',
'certificate': '0070515416461',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -34,6 +34,6 @@
'demo_xml': ['document_demo.xml'],
'installable': True,
'active': False,
'certificate': '71242387229',
'certificate': '0071242387229',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,6 +51,6 @@
'demo_xml': ['event_demo.xml'],
'installable': True,
'active': False,
'certificate': '83059161581',
'certificate': '0083059161581',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -36,6 +36,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '69726863885',
'certificate': '0069726863885',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -36,6 +36,6 @@ url widget.""",
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '29498930765',
'certificate': '0029498930765',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -49,6 +49,6 @@
'demo_xml': ['hr_demo.xml', 'hr_department_demo.xml'],
'installable': True,
'active': False,
'certificate': '86710558965',
'certificate': '0086710558965',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@
'demo_xml': ['hr_attendance_demo.xml'],
'installable': True,
'active': False,
'certificate': '63495605613',
'certificate': '0063495605613',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -45,6 +45,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '46298028637',
'certificate': '0046298028637',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,9 +51,9 @@
'hr_expense_report.xml',
'process/hr_expense_process.xml'
],
'demo_xml': ['hr_expense_demo.xml', 'hr.expense.expense.csv'],
'demo_xml': ['hr.expense.expense.csv'],
'installable': True,
'active': False,
'certificate': '62479841789',
'certificate': '0062479841789',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,4 +1,3 @@
name,ref,employee_id,line_ids/date_value,line_ids/name,line_ids/analytic_account,line_ids/unit_quantity,line_ids/ref,line_ids/unit_amount
September Expenses,09/06,Fabien Pinckaers,2006-09-05,Travel by Car - Customer Seagate 2 - Double,Thymbra,130.0,,0.22
,,,2006-09-05,Travel by Car - Trainging,Trainings,100.0,,0.22
,,,2006-09-05,Basic PC - Server for Seagate,Seagate P2,1.0,S1234435,300.0

1 name ref employee_id line_ids/date_value line_ids/name line_ids/analytic_account line_ids/unit_quantity line_ids/ref line_ids/unit_amount
2 September Expenses 09/06 Fabien Pinckaers 2006-09-05 Travel by Car - Customer Seagate 2 - Double Thymbra 130.0 0.22
2006-09-05 Travel by Car - Trainging Trainings 100.0 0.22
3 2006-09-05 Basic PC - Server for Seagate Seagate P2 1.0 S1234435 300.0

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
</data>
</openerp>

View File

@ -41,6 +41,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '86579209325',
'certificate': '0086579209325',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -50,6 +50,6 @@ to set up a management by affair.
'demo_xml': ['hr_timesheet_demo.xml'],
'installable': True,
'active': False,
'certificate': '71405533469',
'certificate': '0071405533469',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -42,6 +42,6 @@ reports, eso.""",
'demo_xml': ['hr_timesheet_invoice_demo.xml'],
'installable': True,
'active': False,
'certificate': '56091842381',
'certificate': '0056091842381',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -57,6 +57,6 @@ The validation can be configured in te company:
'demo_xml': ['hr_timesheet_sheet_demo.xml'],
'installable': True,
'active': False,
'certificate': '73297700829',
'certificate': '0073297700829',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@
],
'demo_xml': [],
'installable': True,
'certificate': '71515601309',
'certificate': '0071515601309',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -20,6 +20,7 @@
#
##############################################################################
import company
import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -58,6 +58,6 @@
'account.report.report.csv'
],
'installable': True,
'certificate': '31977724637',
'certificate': '0031977724637',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -6628,6 +6628,16 @@
<!-- VAT Template -->
<!-- Régime National -->
<!-- Sales VAT -->
<record id="vat_0_co" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">Cocontractants 0%</field>
<field name="description">NSCS 0</field>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a45"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
<field name="type_tax_use">sale</field>
</record>
<record id="vat_0" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">TVA 0%</field>
@ -6638,16 +6648,6 @@
<field name="ref_base_code_id" ref="vat_code_a49"/>
<field name="type_tax_use">sale</field>
</record>
<record id="vat_0_co" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">Cocontractants 0%</field>
<field name="description">NSS 0</field>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a45"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
<field name="type_tax_use">sale</field>
</record>
<record id="vat_6" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">TVA 6%</field>
@ -6655,7 +6655,7 @@
<field eval="0.06" name="amount"/>
<field name="type">percent</field>
<field name="account_collected_id" ref="vat_payable06"/>
<field name="account_paid_id" ref="vat_refund06"/>
<field name="account_paid_id" ref="vat_payable06"/>
<field name="base_code_id" ref="vat_code_a01"/>
<field name="tax_code_id" ref="vat_code_a54"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
@ -6669,7 +6669,7 @@
<field eval="0.12" name="amount"/>
<field name="type">percent</field>
<field name="account_collected_id" ref="vat_payable12"/>
<field name="account_paid_id" ref="vat_refund12"/>
<field name="account_paid_id" ref="vat_payable12"/>
<field name="base_code_id" ref="vat_code_a02"/>
<field name="tax_code_id" ref="vat_code_a54"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
@ -6683,7 +6683,7 @@
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_collected_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="base_code_id" ref="vat_code_a03"/>
<field name="tax_code_id" ref="vat_code_a54"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
@ -6705,7 +6705,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_0_buy_bsd"/>
<field name="name">Biens et Services Divers Déductibles 0% (1)</field>
<field eval="0.06" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="ref_base_code_id" ref="vat_code_a85"/>
@ -6715,7 +6715,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_0_buy_bsd"/>
<field name="name">Biens et Services Divers Déductibles 0% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
@ -6724,7 +6724,7 @@
<record id="vat_0_buy_mar" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">Marchandises Déductibles 0%</field>
<field name="description">NSGSD 0</field>
<field name="description">NSTF 0</field>
<field eval="1.00" name="amount"/>
<field name="type">percent</field>
<field eval="1" name="child_depend"/>
@ -6744,23 +6744,12 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_0_buy_mar"/>
<field name="name">Marchandises Déductibles 0% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a81"/>
<field eval="-1" name="ref_base_sign"/>
<field name="type_tax_use">purchase</field>
</record>
<record id="vat_0_co_buy" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">Cocontractants 0%</field>
<field name="description">NSS 0</field>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a45"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
<field name="type_tax_use">sale</field>
</record>
<record id="vat_6_buy_bsd" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">Biens et Services Divers Déductibles 6%</field>
@ -6776,7 +6765,7 @@
<field name="name">Biens et Services Divers Déductibles 6% (1)</field>
<field eval="0.06" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable06"/>
<field name="account_paid_id" ref="vat_refund06"/>
<field name="account_collected_id" ref="vat_refund06"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6788,7 +6777,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_6_buy_bsd"/>
<field name="name">Biens et Services Divers Déductibles 6% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
@ -6809,7 +6798,7 @@
<field name="name">Biens et Services Divers Déductibles 12% (1)</field>
<field eval="0.12" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable12"/>
<field name="account_paid_id" ref="vat_refund12"/>
<field name="account_collected_id" ref="vat_refund12"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6821,7 +6810,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_12_buy_bsd"/>
<field name="name">Biens et Services Divers Déductibles 12% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
@ -6842,7 +6831,7 @@
<field name="name">Biens Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6854,7 +6843,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_21_buy_bsd"/>
<field name="name">Biens Déductibles 21% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
@ -6875,7 +6864,7 @@
<field name="name">Services Divers Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6887,7 +6876,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_21_buy_ser"/>
<field name="name">Services Divers Déductibles 21% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
@ -6910,7 +6899,7 @@
<field name="name">Marchandises Déductibles 6% (1)</field>
<field eval="0.06" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable06"/>
<field name="account_paid_id" ref="vat_refund06"/>
<field name="account_collected_id" ref="vat_refund06"/>
<field name="base_code_id" ref="vat_code_a81"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6922,7 +6911,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_6_buy_mar"/>
<field name="name">Marchandises Déductibles 6% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a81"/>
<field eval="-1" name="ref_base_sign"/>
@ -6943,7 +6932,7 @@
<field name="name">Marchandises Déductibles 12% (1)</field>
<field eval="0.12" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable12"/>
<field name="account_paid_id" ref="vat_refund12"/>
<field name="account_collected_id" ref="vat_refund12"/>
<field name="base_code_id" ref="vat_code_a81"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6955,7 +6944,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_12_buy_mar"/>
<field name="name">Marchandises Déductibles 12% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a81"/>
<field eval="-1" name="ref_base_sign"/>
@ -6976,7 +6965,7 @@
<field name="name">Marchandises Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a81"/>
<field name="tax_code_id" ref="vat_code_a59"/>
@ -6988,7 +6977,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_21_buy_mar"/>
<field name="name">Marchandises Déductibles 21% (2)</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a81"/>
<field eval="-1" name="ref_base_sign"/>
@ -6999,9 +6988,9 @@
<!-- Sales VAT -->
<record id="vat_XO" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">VAT 0% Exportations</field>
<field name="name">TVA 0% Exportations</field>
<field name="description">ISEXP 0</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a47"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
@ -7028,9 +7017,9 @@
<!-- Sales VAT -->
<record id="vat_IO" model="account.tax.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="name">VAT 0% Intracommunautaire</field>
<field name="name">TVA 0% Intracommunautaire</field>
<field name="description">VI 0</field>
<field eval="1.00" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="base_code_id" ref="vat_code_a47"/>
<field name="ref_base_code_id" ref="vat_code_a49"/>
@ -7052,7 +7041,7 @@
<field name="name">Biens Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a55"/>
@ -7063,10 +7052,13 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21b"/>
<field name="name">Biens Déductibles 21% (2)</field>
<field eval="0.21" name="amount"/>
<field eval="-0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_collected_id" ref="vat_payable21"/>
<field name="base_code_id" ref="vat_code_a86"/>
<field name="tax_code_id" ref="vat_code_a59"/>
<field eval="-1" name="tax_sign"/>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
<field name="type_tax_use">purchase</field>
@ -7075,7 +7067,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21b"/>
<field name="name">Biens Déductibles 21% (3)</field>
<field eval="0.21" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a86"/>
<field eval="-1" name="ref_base_sign"/>
@ -7096,7 +7088,7 @@
<field name="name">Marchandises Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a81"/>
<field name="tax_code_id" ref="vat_code_a55"/>
@ -7107,10 +7099,13 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21m"/>
<field name="name">Marchandises Déductibles 21% (2)</field>
<field eval="0.21" name="amount"/>
<field eval="-0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_collected_id" ref="vat_payable21"/>
<field name="base_code_id" ref="vat_code_a86"/>
<field name="tax_code_id" ref="vat_code_a59"/>
<field eval="-1" name="tax_sign"/>
<field name="ref_base_code_id" ref="vat_code_a81"/>
<field eval="-1" name="ref_base_sign"/>
<field name="type_tax_use">purchase</field>
@ -7119,7 +7114,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21m"/>
<field name="name">Marchandises Déductibles 21% (3)</field>
<field eval="0.21" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a86"/>
<field eval="-1" name="ref_base_sign"/>
@ -7140,10 +7135,10 @@
<field name="name">Services Divers Déductibles 21% (1)</field>
<field eval="0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_paid_id" ref="vat_refund21"/>
<field name="account_collected_id" ref="vat_refund21"/>
<field name="base_code_id" ref="vat_code_a82"/>
<field name="tax_code_id" ref="vat_code_a56"/>
<field name="tax_code_id" ref="vat_code_a59"/>
<field name="ref_base_code_id" ref="vat_code_a85"/>
<field name="type_tax_use">purchase</field>
</record>
@ -7151,10 +7146,13 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21s"/>
<field name="name">Services Divers Déductibles 21% (2)</field>
<field eval="0.21" name="amount"/>
<field eval="-0.21" name="amount"/>
<field name="type">percent</field>
<field name="account_paid_id" ref="vat_payable21"/>
<field name="account_collected_id" ref="vat_payable21"/>
<field name="base_code_id" ref="vat_code_a87"/>
<field name="tax_code_id" ref="vat_code_a59"/>
<field name="tax_code_id" ref="vat_code_a56"/>
<field eval="-1" name="tax_sign"/>
<field name="ref_base_code_id" ref="vat_code_a82"/>
<field eval="-1" name="ref_base_sign"/>
<field name="type_tax_use">purchase</field>
@ -7163,7 +7161,7 @@
<field name="chart_template_id" ref="l10nbe_chart_template"/>
<field name="parent_id" ref="vat_IO_buy_21s"/>
<field name="name">Services Divers Déductibles 21% (3)</field>
<field eval="0.21" name="amount"/>
<field eval="0.00" name="amount"/>
<field name="type">percent</field>
<field name="ref_base_code_id" ref="vat_code_a87"/>
<field eval="-1" name="ref_base_sign"/>

43
addons/l10n_be/company.py Normal file
View File

@ -0,0 +1,43 @@
# -*- 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/>.
#
##############################################################################
from osv import osv
class res_company(osv.osv):
_inherit = "res.company"
_description = 'res.company'
def _get_default_ad(self, addresses):
city = post_code = address = ""
for ads in addresses:
if ads.type == 'default':
city = ads.city
post_code = ads.zip
if ads.street:
address = ads.street
if ads.street2:
address += " " + ads.street2
return city, post_code, address
res_company()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -91,11 +91,6 @@
<field name="tax_src_id" ref="l10n_be.vat_0_buy_mar" />
<field name="tax_dest_id" ref="l10n_be.vat_XO_buy" />
</record>
<record id="fiscal_position_tax_template_14" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fiscal_position_template_2" />
<field name="tax_src_id" ref="l10n_be.vat_0_co_buy" />
<field name="tax_dest_id" ref="l10n_be.vat_XO_buy" />
</record>
<record id="fiscal_position_tax_template_15" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fiscal_position_template_3" />
<field name="tax_src_id" ref="l10n_be.vat_21" />

View File

@ -25,6 +25,8 @@ import datetime
import pooler
import base64
from tools.translate import _
form_fyear = """<?xml version="1.0"?>
<form string="Select Period">
<field name="period" />
@ -48,6 +50,7 @@ fields = {
'readonly': True,},
}
class wizard_vat_declaration(wizard.interface):
def _create_xml(self, cr, uid, data, context):
@ -58,7 +61,7 @@ class wizard_vat_declaration(wizard.interface):
user_cmpny = obj_company.name
vat_no=obj_company.partner_id.vat
if not vat_no:
raise wizard.except_wizard('Data Insufficient','No VAT Number Associated with Main Company!')
raise wizard.except_wizard(_('Data Insufficient'),_('No VAT Number Associated with Main Company!'))
tax_ids = pool_obj.get('account.tax.code').search(cr,uid,[])
ctx = context.copy()
@ -69,30 +72,33 @@ class wizard_vat_declaration(wizard.interface):
if not obj_company.partner_id.address:
address=post_code=city=''
for ads in obj_company.partner_id.address:
if ads.type=='default':
if ads.zip_id:
city=ads.zip_id.city
post_code=ads.zip_id.name
if ads.street:
address=ads.street
if ads.street2:
address +=ads.street2
city, post_code, address = pooler.get_pool(cr.dbname).get('res.company')._get_default_ad(obj_company.partner_id.address)
obj_fyear = pool_obj.get('account.fiscalyear')
year_id = obj_fyear.find(cr, uid)
current_year = obj_fyear.browse(cr,uid,year_id).name
month=time.strftime('%m')
period_code = pool_obj.get('account.period').browse(cr, uid, data['form']['period']).code
send_ref = user_cmpny
if period_code:
send_ref = send_ref + period_code
data_of_file='<?xml version="1.0"?>\n<VATSENDING xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MultiDeclarationTVA-NoSignature-14.xml">'
data_of_file +='\n\t<DECLARER>\n\t\t<VATNUMBER>'+str(vat_no)+'</VATNUMBER>\n\t\t<NAME>'+str(obj_company.name)+'</NAME>\n\t\t<ADDRESS>'+str(address)+'</ADDRESS>'
data_of_file +='\n\t\t<POSTCODE>'+str(post_code)+'</POSTCODE>\n\t\t<CITY>'+str(city)+'</CITY>\n\t\t<SENDINGREFERENCE>'+send_ref+'</SENDINGREFERENCE>\n\t</DECLARER>'
data_of_file +='\n\t<VATRECORD>\n\t\t<RECNUM>1</RECNUM>\n\t\t<VATNUMBER>'+str(vat_no)+'</VATNUMBER>\n\t\t<DPERIODE>\n\t\t\t<MONTH>'+str(month)+'</MONTH>\n\t\t\t<YEAR>'+str(current_year[-4:])+'</YEAR>\n\t\t</DPERIODE>\n\t\t<ASK RESTITUTION="NO" PAYMENT="NO"/>'
data_of_file +='\n\t<DECLARER>\n\t\t<VATNUMBER>'+str(vat_no)+'</VATNUMBER>\n\t\t<NAME>'+str(obj_company.name)+'</NAME>\n\t\t<ADDRESS>'+address+'</ADDRESS>'
data_of_file +='\n\t\t<POSTCODE>'+post_code+'</POSTCODE>\n\t\t<CITY>'+city+'</CITY>\n\t\t<SENDINGREFERENCE>'+send_ref+'</SENDINGREFERENCE>\n\t</DECLARER>'
data_of_file +='\n\t<VATRECORD>\n\t\t<RECNUM>1</RECNUM>\n\t\t<VATNUMBER>'+str(vat_no)+'</VATNUMBER>\n\t\t<DPERIODE>\n\t\t\t'
starting_month = pool_obj.get('account.period').browse(cr, uid, data['form']['period']).date_start[5:7]
ending_month = pool_obj.get('account.period').browse(cr, uid, data['form']['period']).date_stop[5:7]
if starting_month != ending_month:
#starting month and ending month of selected period are not the same
#it means that the accounting isn't based on periods of 1 month but on quarters
quarter = str(((int(starting_month) - 1) / 3) + 1)
data_of_file += '<QUARTER>'+quarter+'</QUARTER>\n\t\t\t'
else:
data_of_file += '<MONTH>'+starting_month+'</MONTH>\n\t\t\t'
data_of_file += '<YEAR>'+str(current_year[-4:])+'</YEAR>\n\t\t</DPERIODE>\n\t\t<ASK RESTITUTION="NO" PAYMENT="NO"/>'
data_of_file +='\n\t\t<DATA>\n\t\t\t<DATA_ELEM>'
for item in tax_info:

View File

@ -76,8 +76,7 @@ class wizard_vat(wizard.interface):
# obj_company=pooler.get_pool(cr.dbname).get('res.company').browse(cr,uid,1)
# vat_company=obj_company.partner_id.vat
#TODO: can be improved if we replace this test => add a new field on res_partner for cases when a partner has a number and is not subjected to the VAT... have to see if this situation could happen
p_id_list=pooler.get_pool(cr.dbname).get('res.partner').search(cr,uid,[('vat','!=',False)])
p_id_list=pooler.get_pool(cr.dbname).get('res.partner').search(cr,uid,[('vat_subjected','!=',False)])
if not p_id_list:
raise wizard.except_wizard('Data Insufficient!','No partner has a VAT Number asociated with him.')

View File

@ -76,6 +76,6 @@
],
'demo_xml': [],
'installable': True,
'certificate': '64392144797',
'certificate': '0064392144797',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -51,7 +51,7 @@ Credits: Sistheo Zeekom CrysaLEAD
"security/ir.model.access.csv",
],
"demo_xml" : [],
"certificate" : "435321693876313629",
"certificate" : "00435321693876313629",
"active": False,
"installable": True
}

View File

@ -44,6 +44,6 @@ This module installs:
],
'demo_xml': ['account.report.report.csv'],
'installable': True,
'certificate': '78164766621',
'certificate': '0078164766621',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -49,6 +49,6 @@ invoice and send propositions for membership renewal.
'demo_xml': ['membership_demo.xml'],
'installable': True,
'active': False,
'certificate': '42907796381',
'certificate': '0042907796381',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -75,6 +75,6 @@
'demo_xml': ['mrp_demo.xml', 'mrp_order_point.xml'],
'installable': True,
'active': False,
'certificate': '32052481373',
'certificate': '0032052481373',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -42,6 +42,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '86634760061',
'certificate': '0086634760061',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -64,6 +64,6 @@
'demo_xml': ['mrp_operation_data.xml'],
'installable': True,
'active': False,
'certificate': '56233813133',
'certificate': '0056233813133',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -47,6 +47,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '60814381277',
'certificate': '0060814381277',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -41,6 +41,6 @@ With this module:
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '50060616733',
'certificate': '0050060616733',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -50,6 +50,6 @@ Main features :
],
'demo_xml': [],
'installable': True,
'certificate': '48272150909',
'certificate': '0048272150909',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -36,6 +36,6 @@ This module allows you to manage your process for the end-users.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '55447636669',
'certificate': '0055447636669',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -64,6 +64,6 @@
'demo_xml': ['product_demo.xml'],
'installable': True,
'active': False,
'certificate': '68861431437',
'certificate': '0068861431437',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -213,7 +213,7 @@
<record id="product_normal_action_tree" model="ir.actions.act_window">
<field name="name" eval="False"/>
<field name="name">Products"</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.product</field>
<field name="view_type">form</field>

View File

@ -36,6 +36,6 @@ the report has several options to help you get the data you need.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '64392591773',
'certificate': '0064392591773',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '38455352045',
'certificate': '0038455352045',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '78696047261',
'certificate': '0078696047261',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '65280135565',
'certificate': '0065280135565',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '73301264221',
'certificate': '0073301264221',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '27737506213',
'certificate': '0027737506213',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -32,6 +32,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '30405502077',
'certificate': '0030405502077',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -45,6 +45,6 @@ works done on tasks, eso. It is able to render planning, order tasks, eso.
'demo_xml': ['project_demo.xml'],
'installable': True,
'active': False,
'certificate': '75116868317',
'certificate': '0075116868317',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -49,6 +49,6 @@ performing those tasks.
'demo_xml': ['project_gtd_demo.xml'],
'installable': True,
'active': False,
'certificate': '43525236301',
'certificate': '0043525236301',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -40,6 +40,6 @@ created by sales orders.
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '31976495453',
'certificate': '0031976495453',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -34,6 +34,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '57235475485',
'certificate': '0057235475485',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -38,6 +38,6 @@
'demo_xml': [],
'installable': True,
'active': False,
'certificate': '75123647453',
'certificate': '0075123647453',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -47,6 +47,6 @@
'demo_xml': ['purchase_demo.xml'],
'installable': True,
'active': False,
'certificate': '57234283549',
'certificate': '0057234283549',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

Some files were not shown because too many files have changed in this diff Show More