This commit merges the following models * account.invoice and account.move * account.invoice.line and account.move.line * account.voucher and account.move * account.voucher.line and account.move.line It was the opportunity for a big cleanup of the code, so it also restructures the whole account module, its different models/fields, the tests etc. for a better world and a better code readability. ==== Rationale ==== The rationale of this huge change is that we want journal entries / invoices to be easily edited, and changes reflected in the other model. It's a HUGE feature and very strategic for the fiduciary companies. For example, changing the account of a journal entry needs to be automatically reflected on the related invoice. The same reasoning applies to sale/purchase vouchers. ==== Changes made in features ===== When creating an invoice, you are now creating a journal entry directly. --> The object account.invoice no longer exists. In the same fashion when creating an invoice line, you're now adding journal items directly in the journal entry representing the invoice. If this invoice line has some tax, it may create additional journal items as well. --> The models account.invoice.line & account.invoice.tax no longer exist Identically, when creating a sale/purchase receipt with its lines, you are now creating a journal entry directly and there's no more usability difference between encoding a receipt or an invoice. --> The object account.voucher no longer exists. --> The object account.voucher.line no longer exists. --> The whole account_voucher module no longer exists. Positive side-effects coming from these changes are * draft invoices/bills/sale or purchase receipts now create a draft accounting entry. Validate these objects now simply post its journal entry. That means that draft invoices/bills/sale or purchase receipt can straightforwardly be included in reporting or budgets. * opening a journal entry in form view will now always open the correct view: if it's a sale/purchase journal entry we will have a customer invoice/vendor bill view or a sale/purchase receipt view, whatever the menu we're coming from. * code & business logic simplification. It is also condensed in a single place instead of being partially duplicated on invoices, vouchers and journal entries. There should be no feature loss, except the one allowing to group multiple journal items together based on the same product during the invoice validation. ==== Changes made in models ===== * account.invoice: model removed. Instead, now use account.move with following mapping field (account.invoice) field (account.move) ----------------------- -------------------- name invoice_payment_ref number name reference ref comment narration user_id invoice_user_id amount_ total_company_signed amount_total_signed residual amount_residual state state + invoice_payment_state /!\ selection changed date_invoice invoice_date date_due invoice_date_due sent invoice_sent origin invoice_origin payment_term_id invoice_payment_term_id partner_bank_id invoice_partner_bank_id incoterm_id invoice_incoterm_id vendor_bill_id invoice_vendor_bill_id source_email invoice_source_email vendor_display_name invoice_vendor_display_name invoice_icon invoice_vendor_icon cash_rounding_id invoice_cash_rounding_id sequence_number_next invoice_sequence_number_next sequence_number_next_prefix invoice_sequence_number_next_prefix 'invoices' subset of account.move can be accessed by using the selection field 'type' or one of the many helpers like is_invoice() * account.move: now has a valid state 'cancel' that has to be excluded from all business logic * account.move: field 'amount' renamed into 'amount_total' * account.move: field 'reverse_entry_id' renamed into 'reversed_entry_id' * account.move.line: now has a field 'display_type' that has to be excluded from all business logic, in order to support invoice layouting * account.invoice.line: model removed. Instead, now use account.move.line with following mapping field (account.invoice.line) field (account.move.line) ---------------------------- ------------------------- invoice_id move_id uom_id product_uom_id invoice_line_tax_ids tax_ids account_analytic_id analytic_account_id 'invoice lines' subset of all account.move.line from a journal entry can be accessed by using the boolean field 'exclude_from_invoice_tab' * account.invoice.tax: model removed. Instead, now use account.move.line with following mapping field (account.invoice.tax) field (account.move.line) --------------------------- ------------------------- invoice_id move_id account_analytic_id analytic_account_id amount price_unit base tax_base_amount 'tax lines' subset of all account.move.line from a journal entry can be accessed by using the relational field 'tax_line_id' * account.invoice.confirm: model removed. Instead, now use the 'post()' function of account.move * account.invoice.refund: model removed. Instead, now use account.move.reversal to reverse the entries with the same options as we had for invoices * account.voucher: model removed. Instead, now use account.move of type in ['out_receipt', 'in_receipt] * account.voucher.line: model removed. Instead, now use account.move.line ==== Changes made in functions ==== * on account.move, method _run_post_draft_to_post() renamed into _autopost_draft_entries() * on account.move, method action_account_invoice_payment() renamed into action_invoice_register_payment() * on account.move, method action_invoice_reconcile_to_check() renamed into action_open_matching_suspense_moves() * on account.move, method _get_domain_edition_mode_available() renamed into _get_domain_matching_supsense_moves() * on account.move, method _get_intrastat_country_id() renamed into _get_invoice_intrastat_country_id() * on account.move.line, method _get_domain_for_edition_mode() renamed into _get_suspense_moves_domain() * in account.bank.statement, contextual key 'edition_mode' renamed into 'suspense_moves_mode' Was task 1917430
519 lines
22 KiB
Python
519 lines
22 KiB
Python
# -*- coding: utf-8 -*-
|
||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||
|
||
MISC_HTML_SOURCE = u"""
|
||
<font size="2" style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; ">test1</font>
|
||
<div style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; font-size: 12px; font-style: normal; ">
|
||
<b>test2</b></div><div style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; font-size: 12px; ">
|
||
<i>test3</i></div><div style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; font-size: 12px; ">
|
||
<u>test4</u></div><div style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; font-size: 12px; ">
|
||
<strike>test5</strike></div><div style="color: rgb(31, 31, 31); font-family: monospace; font-variant: normal; line-height: normal; ">
|
||
<font size="5">test6</font></div><div><ul><li><font color="#1f1f1f" face="monospace" size="2">test7</font></li><li>
|
||
<font color="#1f1f1f" face="monospace" size="2">test8</font></li></ul><div><ol><li><font color="#1f1f1f" face="monospace" size="2">test9</font>
|
||
</li><li><font color="#1f1f1f" face="monospace" size="2">test10</font></li></ol></div></div>
|
||
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><font color="#1f1f1f" face="monospace" size="2">
|
||
test11</font></div></div></div></blockquote><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
|
||
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><font color="#1f1f1f" face="monospace" size="2">
|
||
test12</font></div><div><font color="#1f1f1f" face="monospace" size="2"><br></font></div></blockquote></blockquote>
|
||
<font color="#1f1f1f" face="monospace" size="2"><a href="http://google.com">google</a></font>
|
||
<a href="javascript:alert('malicious code')">test link</a>
|
||
"""
|
||
|
||
EDI_LIKE_HTML_SOURCE = u"""<div style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
||
<p>Hello ${object.partner_id.name},</p>
|
||
<p>A new invoice is available for you: </p>
|
||
<p style="border-left: 1px solid #8e0000; margin-left: 30px;">
|
||
<strong>REFERENCES</strong><br />
|
||
Invoice number: <strong>${object.number}</strong><br />
|
||
Invoice total: <strong>${object.amount_total} ${object.currency_id.name}</strong><br />
|
||
Invoice date: ${object.invoice_date}<br />
|
||
Order reference: ${object.origin}<br />
|
||
Your contact: <a href="mailto:${object.user_id.email or ''}?subject=Invoice%20${object.number}">${object.user_id.name}</a>
|
||
</p>
|
||
<br/>
|
||
<p>It is also possible to directly pay with Paypal:</p>
|
||
<a style="margin-left: 120px;" href="${object.paypal_url}">
|
||
<img class="oe_edi_paypal_button" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/>
|
||
</a>
|
||
<br/>
|
||
<p>If you have any question, do not hesitate to contact us.</p>
|
||
<p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
|
||
<br/>
|
||
<br/>
|
||
<div style="width: 375px; margin: 0px; padding: 0px; background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; background-repeat: repeat no-repeat;">
|
||
<h3 style="margin: 0px; padding: 2px 14px; font-size: 12px; color: #DDD;">
|
||
<strong style="text-transform:uppercase;">${object.company_id.name}</strong></h3>
|
||
</div>
|
||
<div style="width: 347px; margin: 0px; padding: 5px 14px; line-height: 16px; background-color: #F2F2F2;">
|
||
<span style="color: #222; margin-bottom: 5px; display: block; ">
|
||
${object.company_id.street}<br/>
|
||
${object.company_id.street2}<br/>
|
||
${object.company_id.zip} ${object.company_id.city}<br/>
|
||
${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
|
||
</span>
|
||
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
|
||
Phone: ${object.company_id.phone}
|
||
</div>
|
||
<div>
|
||
Web : <a href="${object.company_id.website}">${object.company_id.website}</a>
|
||
</div>
|
||
</div>
|
||
</div></body></html>"""
|
||
|
||
|
||
# QUOTES
|
||
|
||
QUOTE_BLOCKQUOTE = u"""<html>
|
||
<head>
|
||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||
</head>
|
||
<body text="#000000" bgcolor="#FFFFFF">
|
||
<div class="moz-cite-prefix">On 05-01-16 05:52, Andreas Becker
|
||
wrote:<br>
|
||
</div>
|
||
<blockquote
|
||
cite="mid:CAEJSRZvWvud8c6Qp=wfNG6O1+wK3i_jb33qVrF7XyrgPNjnyUA@mail.gmail.com"
|
||
type="cite"><base href="https://www.odoo.com">
|
||
<div dir="ltr">Yep Dominique that is true, as Postgres was the
|
||
base of all same as Odoo and MySQL etc came much later.Â
|
||
<div><br>
|
||
</div>
|
||
<div>Unfortunately many customers who ask for and ERP are with
|
||
hosters which still don't provide Postgres and MySQL is
|
||
available everywhere. Additionally Postgres seems for many
|
||
like a big black box while MySQL is very well documented and
|
||
understandable and it has PHPmyAdmin which is far ahead of any
|
||
tool managing postgres DBs.</div>
|
||
<br>
|
||
</div>
|
||
</blockquote>
|
||
<br>
|
||
I don't care how much you are highlighting the advantages of Erpnext
|
||
on this Odoo mailinglist, but when you start implying that Postgres
|
||
is not well documented it really hurts.<br>
|
||
<br>
|
||
<pre class="moz-signature" cols="72">--
|
||
Opener B.V. - Business solutions driven by open source collaboration
|
||
|
||
Stefan Rijnhart - Consultant/developer
|
||
|
||
mail: <a class="moz-txt-link-abbreviated" href="mailto:stefan@opener.am">stefan@opener.am</a>
|
||
tel: +31 (0) 20 3090 139
|
||
web: <a class="moz-txt-link-freetext" href="https://opener.am">https://opener.am</a></pre>
|
||
</body>
|
||
</html>"""
|
||
|
||
QUOTE_BLOCKQUOTE_IN = [u"""<blockquote cite="mid:CAEJSRZvWvud8c6Qp=wfNG6O1+wK3i_jb33qVrF7XyrgPNjnyUA@mail.gmail.com" type="cite" data-o-mail-quote-node="1" data-o-mail-quote="1">"""]
|
||
QUOTE_BLOCKQUOTE_OUT = [u"""--
|
||
Opener B.V. - Business solutions driven by open source collaboration
|
||
|
||
Stefan Rijnhart - Consultant/developer"""]
|
||
|
||
|
||
QUOTE_THUNDERBIRD_HTML = u"""<html>
|
||
<head>
|
||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||
</head>
|
||
<body text="#000000" bgcolor="#FFFFFF">
|
||
<div class="moz-cite-prefix">On 01/05/2016 10:24 AM, Raoul
|
||
Poilvache wrote:<br>
|
||
</div>
|
||
<blockquote
|
||
cite="mid:CAP76m_WWFH2KVrbjOxbaozvkmbzZYLWJnQ0n0sy9XpGaCWRf1g@mail.gmail.com"
|
||
type="cite">
|
||
<div dir="ltr"><b><i>Test reply. The suite.</i></b><br clear="all">
|
||
<div><br>
|
||
</div>
|
||
-- <br>
|
||
<div class="gmail_signature">Raoul Poilvache</div>
|
||
</div>
|
||
</blockquote>
|
||
Top cool !!!<br>
|
||
<br>
|
||
<pre class="moz-signature" cols="72">--
|
||
Raoul Poilvache
|
||
</pre>
|
||
</body>
|
||
</html>"""
|
||
|
||
|
||
QUOTE_THUNDERBIRD_HTML_IN = [u"""<blockquote cite="mid:CAP76m_WWFH2KVrbjOxbaozvkmbzZYLWJnQ0n0sy9XpGaCWRf1g@mail.gmail.com" type="cite" data-o-mail-quote-node="1" data-o-mail-quote="1">"""]
|
||
QUOTE_THUNDERBIRD_HTML_OUT = [u"""<pre class="moz-signature" cols="72"><span data-o-mail-quote="1">--
|
||
Raoul Poilvache
|
||
</span></pre>"""]
|
||
|
||
|
||
QUOTE_HOTMAIL_HTML = u"""
|
||
<html>
|
||
<head>
|
||
<style><!--
|
||
.hmmessage P
|
||
{
|
||
margin:0px=3B
|
||
padding:0px
|
||
}
|
||
body.hmmessage
|
||
{
|
||
font-size: 12pt=3B
|
||
font-family:Calibri
|
||
}
|
||
--></style></head>
|
||
<body class='hmmessage'>
|
||
<div dir='ltr'>I don't like that.<br><br>
|
||
<div><hr id="stopSpelling">
|
||
Date: Tue=2C 5 Jan 2016 10:24:48 +0100<br>
|
||
Subject: Test from gmail<br>
|
||
From: poilvache@example.com<br>
|
||
To: tartelette@example.com grosbedon@example.com<br><br>
|
||
<div dir="ltr"><b><i>Test reply. The suite.</i></b>
|
||
<br clear="all"><div><br>
|
||
</div>-- <br><div class="ecxgmail_signature">
|
||
Raoul Poilvache</div>
|
||
</div></div></div></body></html>"""
|
||
QUOTE_HOTMAIL_HTML_IN = [u"""I don't like that.<br><br>"""]
|
||
QUOTE_HOTMAIL_HTML_OUT = [
|
||
u"""<hr id="stopSpelling" data-o-mail-quote="1">""",
|
||
u"""<div dir="ltr" data-o-mail-quote="1"><b data-o-mail-quote="1"><i data-o-mail-quote="1">Test reply. The suite.</i></b>"""]
|
||
|
||
QUOTE_THUNDERBIRD_1 = u"""<div>On 11/08/2012 05:29 PM,
|
||
<a href="mailto:dummy@example.com">dummy@example.com</a> wrote:<br></div>
|
||
<blockquote>
|
||
<div>I contact you about our meeting for tomorrow. Here is the
|
||
schedule I propose:</div>
|
||
<div>
|
||
<ul><li>9 AM: brainstorming about our new amazing business
|
||
app</span></li></li>
|
||
<li>9.45 AM: summary</li>
|
||
<li>10 AM: meeting with Fabien to present our app</li>
|
||
</ul></div>
|
||
<div>Is everything ok for you ?</div>
|
||
<div>
|
||
<p>--<br>
|
||
Administrator</p>
|
||
</div>
|
||
<div>
|
||
<p>Log in our portal at:
|
||
<a href="http://localhost:8069#action=login&db=mail_1&token=rHdWcUART5PhEnJRaXjH">http://localhost:8069#action=login&db=mail_1&token=rHdWcUART5PhEnJRaXjH</a></p>
|
||
</div>
|
||
</blockquote>
|
||
Ok for me. I am replying directly below your mail, using Thunderbird, with a signature.<br><br>
|
||
Did you receive my email about my new laptop, by the way ?<br><br>
|
||
Raoul.<br><pre>--
|
||
Raoul Grosbedonnée
|
||
</pre>"""
|
||
|
||
QUOTE_THUNDERBIRD_1_IN = [
|
||
u'<a href="mailto:dummy@example.com">dummy@example.com</a> ',
|
||
u'<blockquote data-o-mail-quote-node="1" data-o-mail-quote="1">',
|
||
u'Ok for me. I am replying directly below your mail, using Thunderbird, with a signature.']
|
||
QUOTE_THUNDERBIRD_1_OUT = [u"""--
|
||
Raoul Grosbedonnée
|
||
"""]
|
||
|
||
|
||
TEXT_1 = u"""I contact you about our meeting tomorrow. Here is the schedule I propose:
|
||
9 AM: brainstorming about our new amazing business app
|
||
9.45 AM: summary
|
||
10 AM: meeting with Ignasse to present our app
|
||
Is everything ok for you ?
|
||
--
|
||
MySignature"""
|
||
|
||
TEXT_1_IN = [u"""I contact you about our meeting tomorrow. Here is the schedule I propose:
|
||
9 AM: brainstorming about our new amazing business app
|
||
9.45 AM: summary
|
||
10 AM: meeting with Ignasse to present our app
|
||
Is everything ok for you ?"""]
|
||
TEXT_1_OUT = [u"""
|
||
--
|
||
MySignature"""]
|
||
|
||
TEXT_2 = u"""Salut Raoul!
|
||
Le 28 oct. 2012 à 00:02, Raoul Grosbedon a écrit :
|
||
|
||
> I contact you about our meeting tomorrow. Here is the schedule I propose: (quote)
|
||
|
||
Of course. This seems viable.
|
||
|
||
> 2012/10/27 Bert Tartopoils :
|
||
>> blahblahblah (quote)?
|
||
>>
|
||
>> blahblahblah (quote)
|
||
>>
|
||
>> Bert TARTOPOILS
|
||
>> bert.tartopoils@miam.miam
|
||
>>
|
||
>
|
||
>
|
||
> --
|
||
> RaoulSignature
|
||
|
||
--
|
||
Bert TARTOPOILS
|
||
bert.tartopoils@miam.miam
|
||
"""
|
||
|
||
TEXT_2_IN = [u"Salut Raoul!", "Of course. This seems viable."]
|
||
TEXT_2_OUT = [u"""
|
||
> I contact you about our meeting tomorrow. Here is the schedule I propose: (quote)""",
|
||
"""
|
||
> 2012/10/27 Bert Tartopoils :
|
||
>> blahblahblah (quote)?
|
||
>>
|
||
>> blahblahblah (quote)
|
||
>>
|
||
>> Bert TARTOPOILS
|
||
>> bert.tartopoils@miam.miam
|
||
>>
|
||
>
|
||
>
|
||
> --
|
||
> RaoulSignature"""]
|
||
|
||
# MISC
|
||
|
||
GMAIL_1 = u"""Hello,<div><br></div><div>Ok for me. I am replying directly in gmail, without signature.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Demo.<br><br><div>On Thu, Nov 8, 2012 at 5:29 PM, <span><<a href="mailto:dummy@example.com">dummy@example.com</a>></span> wrote:<br><blockquote><div>I contact you about our meeting for tomorrow. Here is the schedule I propose:</div><div><ul><li>9 AM: brainstorming about our new amazing business app</span></li></li>
|
||
<li>9.45 AM: summary</li><li>10 AM: meeting with Fabien to present our app</li></ul></div><div>Is everything ok for you ?</div>
|
||
<div><p>-- <br>Administrator</p></div>
|
||
|
||
<div><p>Log in our portal at: <a href="http://localhost:8069#action=login&db=mail_1&login=demo">http://localhost:8069#action=login&db=mail_1&login=demo</a></p></div>
|
||
</blockquote></div><br></div>"""
|
||
|
||
GMAIL_1_IN = [u'Ok for me. I am replying directly in gmail, without signature.', '<blockquote data-o-mail-quote-node="1" data-o-mail-quote="1">']
|
||
GMAIL_1_OUT = []
|
||
|
||
HOTMAIL_1 = u"""<div>
|
||
<div dir="ltr"><br>
|
||
I have an amazing company, i'm learning OpenERP, it is a small company yet, but plannig to grow up quickly.
|
||
<br><br>Kindest regards,<br>xxx<br>
|
||
<div>
|
||
<div id="SkyDrivePlaceholder">
|
||
</div>
|
||
<hr id="stopSpelling">
|
||
Subject: Re: your OpenERP.com registration<br>From: xxx@xxx.xxx<br>To: xxx@xxx.xxx<br>Date: Wed, 27 Mar 2013 17:12:12 +0000
|
||
<br><br>
|
||
Hello xxx,
|
||
<br>
|
||
I noticed you recently created an OpenERP.com account to access OpenERP Apps.
|
||
<br>
|
||
You indicated that you wish to use OpenERP in your own company.
|
||
We would like to know more about your your business needs and requirements, and see how
|
||
we can help you. When would you be available to discuss your project ?<br>
|
||
Best regards,<br>
|
||
<pre>
|
||
<a href="http://openerp.com" target="_blank">http://openerp.com</a>
|
||
Belgium: +32.81.81.37.00
|
||
U.S.: +1 (650) 307-6736
|
||
India: +91 (79) 40 500 100
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>"""
|
||
HOTMAIL_1_IN = [u"""<div dir="ltr"><br>
|
||
I have an amazing company, i'm learning OpenERP, it is a small company yet, but plannig to grow up quickly.
|
||
<br><br>Kindest regards,<br>xxx<br>"""]
|
||
HOTMAIL_1_OUT = [
|
||
u"""<hr id="stopSpelling" data-o-mail-quote="1">""",
|
||
u"""<pre data-o-mail-quote="1">
|
||
<a href="http://openerp.com" target="_blank" data-o-mail-quote="1">http://openerp.com</a>
|
||
Belgium: +32.81.81.37.00
|
||
U.S.: +1 (650) 307-6736
|
||
India: +91 (79) 40 500 100
|
||
</pre>"""]
|
||
|
||
MSOFFICE_1 = u"""
|
||
<div>
|
||
<div class="WordSection1">
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
Our requirements are simple. Just looking to replace some spreadsheets for tracking quotes and possibly using the timecard module.
|
||
We are a company of 25 engineers providing product design services to clients.
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
I’ll install on a windows server and run a very limited trial to see how it works.
|
||
If we adopt OpenERP we will probably move to Linux or look for a hosted SaaS option.
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
<br>
|
||
I am also evaluating Adempiere and maybe others.
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
</span>
|
||
</p>
|
||
<p> </p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
I expect the trial will take 2-3 months as this is not a high priority for us.
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
</span>
|
||
</p>
|
||
<p> </p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
Alan
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
<p class="MsoNormal">
|
||
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
|
||
</span>
|
||
</p>
|
||
<p> </p>
|
||
<p></p>
|
||
<div>
|
||
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
|
||
<p class="MsoNormal">
|
||
<b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
|
||
From:
|
||
</span></b>
|
||
<span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
|
||
OpenERP Enterprise [mailto:sales@openerp.com]
|
||
<br><b>Sent:</b> Monday, 11 March, 2013 14:47<br><b>To:</b> Alan Widmer<br><b>Subject:</b> Re: your OpenERP.com registration
|
||
</span>
|
||
</p>
|
||
<p></p>
|
||
<p></p>
|
||
</div>
|
||
</div>
|
||
<p class="MsoNormal"></p>
|
||
<p> </p>
|
||
<p>Hello Alan Widmer, </p>
|
||
<p></p>
|
||
<p>I noticed you recently downloaded OpenERP. </p>
|
||
<p></p>
|
||
<p>
|
||
Uou mentioned you wish to use OpenERP in your own company. Please let me more about your
|
||
business needs and requirements? When will you be available to discuss about your project?
|
||
</p>
|
||
<p></p>
|
||
<p>Thanks for your interest in OpenERP, </p>
|
||
<p></p>
|
||
<p>Feel free to contact me if you have any questions, </p>
|
||
<p></p>
|
||
<p>Looking forward to hear from you soon. </p>
|
||
<p></p>
|
||
<pre><p> </p></pre>
|
||
<pre>--<p></p></pre>
|
||
<pre>Nicolas<p></p></pre>
|
||
<pre><a href="http://openerp.com">http://openerp.com</a><p></p></pre>
|
||
<pre>Belgium: +32.81.81.37.00<p></p></pre>
|
||
<pre>U.S.: +1 (650) 307-6736<p></p></pre>
|
||
<pre>India: +91 (79) 40 500 100<p></p></pre>
|
||
<pre> <p></p></pre>
|
||
</div>
|
||
</div>"""
|
||
|
||
MSOFFICE_1_IN = [u'Our requirements are simple. Just looking to replace some spreadsheets for tracking quotes and possibly using the timecard module.']
|
||
MSOFFICE_1_OUT = [u'I noticed you recently downloaded OpenERP.', 'Uou mentioned you wish to use OpenERP in your own company.', 'Belgium: +32.81.81.37.00']
|
||
|
||
|
||
# ------------------------------------------------------------
|
||
# Test cases coming from bugs
|
||
# ------------------------------------------------------------
|
||
|
||
# bug: read more not apparent, strange message in read more span
|
||
BUG1 = u"""<pre>Hi Migration Team,
|
||
|
||
Paragraph 1, blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah.
|
||
|
||
Paragraph 2, blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah.
|
||
|
||
Paragraph 3, blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
|
||
blah blah blah blah blah blah blah blah.
|
||
|
||
Thanks.
|
||
|
||
Regards,
|
||
|
||
--
|
||
Olivier Laurent
|
||
Migration Manager
|
||
OpenERP SA
|
||
Chaussée de Namur, 40
|
||
B-1367 Gérompont
|
||
Tel: +32.81.81.37.00
|
||
Web: http://www.openerp.com</pre>"""
|
||
|
||
BUG_1_IN = [
|
||
u'Hi Migration Team',
|
||
u'Paragraph 1'
|
||
]
|
||
BUG_1_OUT = [u"""
|
||
--
|
||
Olivier Laurent
|
||
Migration Manager
|
||
OpenERP SA
|
||
Chaussée de Namur, 40
|
||
B-1367 Gérompont
|
||
Tel: +32.81.81.37.00
|
||
Web: http://www.openerp.com"""]
|
||
|
||
|
||
REMOVE_CLASS = u"""
|
||
<div style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; COLOR: #000000">
|
||
<div>Hello</div>
|
||
<div>I have just installed Odoo 9 and I've got the following error:</div>
|
||
<div> </div>
|
||
<div class="openerp openerp_webclient_container oe_webclient">
|
||
<div class="oe_loading" style="DISPLAY: none"> </div>
|
||
</div>
|
||
<div class="modal-backdrop in"></div>
|
||
<div role="dialog" tabindex="-1" aria-hidden="false" class="modal in" style="DISPLAY: block" data-backdrop="static">
|
||
<div class="modal-dialog modal-lg">
|
||
<div class="modal-content openerp">
|
||
<div class="modal-header">
|
||
<h4 class="modal-title">Odoo Error<span class="o_subtitle text-muted"></span></h4>
|
||
</div>
|
||
<div class="o_error_detail modal-body">
|
||
<pre>An error occured in a modal and I will send you back the html to try opening one on your end</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
"""
|
||
REMOVE_CLASS_IN = [
|
||
u'<div style="font-size:12pt; font-family:\'Times New Roman\'; color:#000000">',
|
||
u'An error occured in a modal and I will send you back the html to try opening one on your end']
|
||
REMOVE_CLASS_OUT = [
|
||
u'<div class="modal-backdrop in">',
|
||
u'<div class="modal-content openerp">',
|
||
u'<div class="modal-header">']
|