summaryrefslogtreecommitdiff
path: root/addons/l10n_ch
AgeCommit message (Collapse)Author
2021-04-28[FIX] l10n_ch: fix the qr_iban fields to only appear for Swiss companiesDjamel (otd)
Steps to reproduce the bug : - Create a French company - Go to accounting settings > in “Fiscal Localization” install French accounting - Install “l10n_ch_qriban” - Go to contacts > Configuration > Bank accounts - Create a new bank account > add a French company newly created in the “Account Holder” field Problem: The specific fields to a Swiss company appear. Solution : Check if the country of the company encoded in the “Account Holder” field is Switzerland. opw-2504699 closes odoo/odoo#69985 X-original-commit: 326dc3f7001f605d7ebb929740ed8478fce20e7e Signed-off-by: Josse Colpaert <jco@openerp.com> Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-04-14[FIX] l10n_ch: fixed translationsRavi Gohil
Translated datas into English and fixed German/Italian translation as well. closes odoo/odoo#62711 Task: 2391988 Closes: #62711 Related: odoo/enterprise#15079 Related: odoo/enterprise#15079 Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-03-02[FIX] l10n_ch: human readable ISR number set to FalseYannick Vaucher
The condition on computation of `l10n_ch_isr_number_spaced` was not in line anymore with `l10n_ch_isr_number` computation. With fixes on the ISR number the use of `l10n_ch_isr_postal` is rightly not mandatory anymore. This lead to an empty field, visible on the ISR report. closes odoo/odoo#66921 X-original-commit: fcc06f7dd1a28949389ca2fdefb59c2fbe978c4a Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-02-04[FIX] l10n_ch: use commercial partner name instead of computed fieldnie
Follow-up of https://github.com/odoo/odoo/pull/65357 closes odoo/odoo#65512 X-original-commit: 38e78a59ace4fb590cc5c138e16acb1013fa193e Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: backspac <backspac@users.noreply.github.com>
2021-02-02[FIX] l10n_ch: use commercial company name in invoice PDFnie
Steps: - Edit the current company (1): - Country: Switzerland - Currency: CHF - Install l10n_ch - Go to Invoicing > Configuration > Bank Accounts - Edit Bank: - Bank Account: create a new one: - Account Holder: (1) - Go to Configuration > Journal - Edit Customer Invoices: - Advanced Settings tab: - Communication Standards: Switzerland - Go to Customers > Customers - Create a new customer (2): - Fill in street, city, zip code and country - Edit (2): - Contacts & Addresses tab: - Add: - Select Invoice Address - Contact Name: Keep this field blank - Go to Customers > Invoices - Create a new one: - Customer: "(2), Invoice Address" - Add a product - Validate it - Click Print QR-Bill Bug: Traceback here: https://github.com/odoo/odoo/blob/b76e9ef658bde0178fa1660b6ad27b880e91632a/addons/l10n_ch/models/res_bank.py#L129 TypeError: 'bool' object is not subscriptable Explanation: The contact name of an address is optional. When nothing is filled in that field, it returns `False`, hence the error. Using the commercial company name ensures a name is put in the invoice, even if the contact doesn't belong to a company. opw:2447158 closes odoo/odoo#65407 X-original-commit: 2537bb01675279f08edf65077e6d41a5bd968ec4 Signed-off-by: backspac <backspac@users.noreply.github.com>
2021-01-20[FIX] l10n_ch: Traceback when installing moduleGoffin Simon
Function _is_l10n_ch_postal expects a singleton closes odoo/odoo#64776 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-12-16[FIX] l10n_ch, l10n_ch_qriban: Impossible to create a vendor billGoffin Simon
Fine tuning of this commit: https://github.com/odoo/odoo/commit/6e374e25943106be84711233f3960f2f3a4b9aa9 To fix the issue when l10n_ch_qriban is not installed opw:2416809 closes odoo/odoo#63467 X-original-commit: fd9f6aeb4534cb5d2a1eea1298134d758b1a70ae Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-12-09[FIX] l10n_ch: check reference format with supplier QR-IBANYannick Vaucher
closes odoo/odoo#63058 X-original-commit: 48f40f23f0d8977e186f8d6beae11b0be271c7f3 Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-12-09[FIX] l10n_ch: use public domain ocrb otf fileChristophe Monniez
2020-12-08[FIX] test_lint: check for duplicate entries in POT filesRaphael Collet
X-original-commit: 745564629748dbce10156fc164d3f126e8630999
2020-11-16[FIX] l10n_ch: map tax report to right countryroot
Before this commit the tax report links to Brazil while the chart of account is Switzerland. By changing the ref it now installs the tax report with the right country set. closes odoo/odoo#61805 X-original-commit: 93e44b6d85564b6fde99053ccb16399e224477e3 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-10-30[FIX] l10n_ch: use an absolute path for ch flagChristophe Monniez
When printing an invoice with an iban qrcode using l10n_ch module, a little ch flag appears in the center of the qr code. When odoo is started from elsewhere than the root of the odoo code, the flag does not appear. The cause is that a relative path is used to find the flag image. With this commit, an absolute path is computed to find the flag. closes odoo/odoo#61043 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-10-22[FIX] *: avoid direct references to countriesVictor Feyens
Ensure the code works fine even if countries are deleted. Also consider "re"-created countries after deletion, by only considering the country code, not the data reference. This should reduce support requests related to deleted countries, and ease the resolution of such problems by the users themselves. TASK ID - 2368842 closes odoo/odoo#57837 Related: odoo/enterprise#13275 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-10-20[FIX] l10n_ch : Remove Print QR-bill from Credit Notesjbw
There is no plausible case where "print QR-invoice" button is needed on Credit Note form view. closes odoo/odoo#60310 Task: 2351817 X-original-commit: 125534a893299e42f42dd481fd8a2db5ef99439d Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by: jbw-odoo <jbw-odoo@users.noreply.github.com>
2020-09-29[FIX] l10n_ch: No amount on section titlesAndrea Grazioso (agr-odoo)
The tax report should not display any amount on Section Titles opw-2329278 closes odoo/odoo#58833 X-original-commit: 1367d12102aebc56f8c89d3011bfc183a954609d Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-24[REF] l10n_ch ISR number computationYannick Vaucher
Add hooks to be able to tweak the Bank customer ID number for ISR-B Those hooks will allow to not use of the field l10n_ch_postal for multiple purposes. Fixes conditions on which the reference is generated. It shouldn't be always generated if l10n_ch_postal is set. Only if a l10n_ch_subscription_xxx is set. closes odoo/odoo#58393 X-original-commit: 4790b8e57aa357cda32818392d795b8c0dc48f43 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-09-18[FIX] l10n_ch: improve the definition of "dédouanement" taxes so that they ↵oco-odoo
can be used with tax closing features Tax closing requires the use of tax_line_id field on the lines it needs to take into account. This new config ensures such a line is created for 100% taxes. An empty, 0-balanced line is also created for the base line, but this is acceptable. [IMP] l10n_ch: add new 100% tax for investments and other expenses OPW 2333144 closes odoo/odoo#58006 X-original-commit: 0cc190ad302f98f7ae198166983ac40532d1d5ee Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-16[DOC] l10n_ch: describe structure of ISR refYannick Vaucher
The reference with 27 chars and the optical line are not meant to be human readable. This document the structure of the ISR Reference. [1] [1] https://www.raiffeisen.ch/rch/fr/clients-entreprises/trafic-paiements-et-liquidites/debiteurs/bulletin-de-versement-orange.html closes odoo/odoo#57884 X-original-commit: d5be7ff9331b060c9ff84361b1a422056817f548 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-15[IMP] l10n_ch: refactor a method to make it overridableRavi Gohil
We refactored a method to check if the IBAN is in the correct range to be a QR-IBAN or not. (to be able to reuse it) Thanks to Ravi Gohil Task: 2307262 X-original-commit: efd6e493a6d855c12e43e9b3cb7c436c6d7de35a
2020-09-07[FIX] *: typos and english incoherencesVictor Feyens
Mainly transifex issues but also some errors found through 'grep' checks. Fix typos and obscure english strings in xml contents, fields strings/helps, some docstrings, ... ensuring correct translations base (and fallback when translations isn't available). closes odoo/odoo#57206 Related: odoo/enterprise#13032 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-28[FIX] l10n_ch: fix bad forward port of https://github.com/odoo/odoo/pull/56199oco-odoo
type has be renamed to move_type on account.move. closes odoo/odoo#56725 X-original-commit: 0706f5a392840c0d4a0f8acd197211121ccbcf07 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-27[FIX] l10n_ch: Print QR-bill button should be only on customer invoicesAndrea Grazioso (agr-odoo)
opw-2320456 closes odoo/odoo#56672 X-original-commit: 66f8ebd9b2c34994b76475f55e6e28917d42ec53 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2020-08-27[FIX] l10n_ch: fix bad forward-portoco-odoo
closes odoo/odoo#56630 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-22[FIX] l10n_ch,l10n_mn: correct author nameMartin Trigaux
Use the correct spelling of "Odoo S.A." No need to specify it for modules only developped by Odoo S.A. Closes odoo/odoo#54372 closes odoo/odoo#56341 X-original-commit: be4a9f6cda339169594b3bfdce4034be71b713ce Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-21[FIX] l10n_ch: fix forward-port errorsoco-odoo
closes odoo/odoo#56307 X-original-commit: 604dedd84cac082c7575f4b40356f4ac4ff40dd3 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-11[IMP] account: Misc. improvementsNicolas (vin)
Miscellaneous changes aiming to improve the user experience in the accounting module, mainly in the journal model and its form view. Also aim to improve the bank account creation wizard. Task ID: #2250349 closes odoo/odoo#54494 Related: odoo/upgrade#1546 Related: odoo/enterprise#11862 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-07[IMP] l10n_*: update the module categorieswilliam
Task 2309613 We have a new hierarchy: * Accounting * [Generic, not changed] * Localization * Account Chart * Check * EDI * Point of Sale * Purchase * Reporting * Sale This helps in displaying only the chart of accounts when clicking on "Install more Packages" from the accounting settings in the Fiscal Localization section. We can also refine the search in the _auto_install_l10n post init hook of account. closes odoo/odoo#55384 Related: odoo/enterprise#12179 Related: odoo/upgrade#1568 Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-05[IMP] account: soft post entries in the futurewilliam
Add an easy way to not post the entries in the future when calling post() on it, but rather set it to be auto-posted at accounting date. This is useful when we are creating a lot of entries in batch and some might be in the future, some in the past, and we don't want to separate that in two batch every time. (asset, accrual, transfer,... )
2020-07-28[REM] core, *: deprecate <act_window> and <report>Xavier Morel
Convert deprecated tags through the codebase.
2020-07-20[FIX] l10n_ch: add padding on QR-BILL headerNicolas Lempereur
QR-BILL report has no margin so we can position things exactly where they needs to be according to standard. For example the form must stick at the bottom and have 100% width, so we can't use paperformat margin that would not allow to have 100% width. With this change, we set default padding on header so it match better "European A4" paperformat (that has 5mm top margin and 7mm right and left margin) for stylistic purpose. This is currently not configurable so for custom header size still need view editing to change current values, but this at least make the edition easy. opw-2267041 closes #54717 closes odoo/odoo#54725 X-original-commit: b758a02ae50fa13f090190accce1fa6d1dbde7d2 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-07-17[FIX] l10n_ch: remove duplicated translationMartin Trigaux
A term was present twice in Italian, making the installation of Italian crash for the Swich CoA Introduced at a3029a8 Remove some reference to company accounts (it is handled by l10n_multilang, should not be set manually as working only for company wiht id 1) closes odoo/odoo#54658 X-original-commit: fb10cc6d0af59d255c0c3f2dd52c97b2cf31a628 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-07-16[FIX] l10n_ch: Swiss QR names len limitYannick Vaucher
Limit must be 70 not 71 closes odoo/odoo#54587 X-original-commit: 7d808675de88ed54de67f798de9cec16bb95ef3b Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-07-14[IMP] l10n_ch: clearer validations for bank fields and vendor bills (ISR ref)Yannick Vaucher
On res.partner.bank, we check that: - l10n_ch_postal contains a valid postal number - l10n_ch_isr_subscription_chf contains a valid ISR subscription number - l10n_ch_isr_subscription_eur contains a valid ISR subscription number ISR subscriptions numbers are postal numbers but starting with 01 or 03. Those codes are reserved to ISR issuance. When the bank account on a Vendor Bill is detected as an ISR Issuer, check the reference is actually an ISR. The 27 digits ISR Reference is error prone when typed by hand and an error at this stage would break the payment process later. This is required to avoid batch payment error with SEPA. We prefer using the pretty form xx-yyyyy-z of a postal account. The Swiss users will identify it more easily. We always want to auto fill the field l10n_ch_postal when possible from acc_number, which includes only 2 cases of filling acc_number: 1. a 9 position postal account number 2. an IBAN from PostFinance which includes clearing 09000 Original prs: Closes #51645, #51544, #51560 closes odoo/odoo#54455 X-original-commit: f8a3ec438e3b5fa56305db729a78304aec7a6716 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-07-13[FIX] l10n_ch: Fix bad fw-port of 10c14c63094870346143a42f5df39e1db3f0dc5cLaurent Smet
closes odoo/odoo#54406 X-original-commit: 4279335fa5378efaea71cec634361e94d670fd82 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-07-03[FIX] l10n_ch: Fix broken 'test_l10n_ch_isrbfr-o
' X-original-commit: 10c14c63094870346143a42f5df39e1db3f0dc5c
2020-07-03[FIX] l10n_ch - Swiss QR layout cleaningYannick Vaucher
This intend to enforce specifications and improve readability Layout changes: * [FIX] Amount section must be placed under the QR code * [FIX] Don't display empty additional information * [FIX] Rename slip sections and labels * [IMP] Rework of the layout Group content like adresse by removing line spacing Reduce character size to follow Swiss Implementation Guidelines QR-bill v2.1 Reduce left margin to avoid overlap of spaced ISR reference on the Receipt * [FIX] Missing street on Receipt * [FIX] Add thousand separators Official specs asks for: - thousand separators as blank. (using a non breaking to avoid spliting the amount) - decimal separators as a full stop > If the amount isincluded in the Swiss QR Code, then it must be printed after the currency code. A blank (space) should be used as the thousands separator and a full stop «.»as the decimal separator. The amount must always include two decimal places (e.g. CHF 1 590.00). QR-Code: * [IMP] Align QR code upper and improve accuracy of size Add an option on reportlab to print QR Code without surounding blank space this is required to compute with accuracy the width of 46mm x 46mm defined in the specs. * [FIX] Street and street2 issues Removes an extra space between street values when only one is given. Test the right partner street, only the company street was checked. QRR generation * [FIX] make it possible to generate QRR It must be possible to generate QRR without ISR subscription number. Content removed as not present in the specs version 2.1: * [RM] procedure section * [RM] due date Translations: * [IMP] Add translations of the QR-bill in DE, FR and IT * [FIX] QR-bill lang is now based on customer lang Tests: * [IMP] Add unit tests for Swiss reality check for the QR-bill closes odoo/odoo#54053 X-original-commit: 4f4edd0594b29252a5d44281cc773230c09521e9 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-29[FIX] l10n_ch: fix testsoco-odoo
closes odoo/odoo#53809 X-original-commit: 157ffe55acd077d7c62007e35c1b145411734a2c Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-06-30[FIX] *: correct all or improve code translation lookupMartin Trigaux
This commit fixes all issues detected by the new pylint gettext-variable test. It converts some calls to the new syntax _("Foo %s", bar) to progressively migrate the code to the new syntax. A few calls were not technically incorrect but still detected by the linter. _("Foo" + "Bar") has been converted to _("Foo" "Bar") as it has the same effect and make sure the argument is of type asteroid.Const instead of BinOp). closes odoo/odoo#53683 Related: odoo/enterprise#11467 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-06-23[FIX] l10n_ch - print ISR testsYannick Vaucher
resolves the following error: E psycopg2.IntegrityError: null value in column "partner_id" violates not-null constraint E DETAIL: Failing row contains (193, 010391391, null, null, null, null, 10, null, 1, 1, 2020-05-20 20:05:28.431208, 1, 2020-05-20 20:05:28.431208, null, null, null, null). To generate an ISR payment slip you need: * a type == out_invoice * a partner bank account with a ISR issuer number (field l10n_ch_isr_subscription_[chf|eur]) * a currency either in EUR or CHF Remarks: * l10n_ch_postal is not necessary and must be used for Vendors only. * human readable subscription number is xx-yyyyyy-c validation of such format is done with the following PR: https://github.com/odoo/odoo/pull/51544/files It does: - Removes unexisting field from tests - Adds required field on partner_id - Fix test with an actual case that case generate ISR payment slips closes odoo/odoo#53498 X-original-commit: 776fd59909d12c981585fac82cfa9f3603d96ccf Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-22[FIX] l10n_ch: don't add an empty page on QR-bill pdf report when a header ↵fw-bot
is displayed Before that, just one pixel from the bottom of the QR-bill frame passed got out of the page, and end out creating a second, empty page. Since this error was probably due to some rounding issue in the way A4 dimensions were compared to the layout specified by the scss file, we solve it by rounding the height of this section a little more, removing 0.25mm from it. [FIX] l10n_ch: qr bill report: display the payment ref under "reference" and the invoice's name as additional information closes odoo/odoo#53453 X-original-commit: 8a6cc1a572cd04f540e4a5e83362319c13274aea Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-11[FIX] l10n_*: no chart template should be set to noupdateDenis Ledoux
In a general manner, the chart templates should not be set to noupdate, that way, if a new company starts in an existing database, it starts with an up-to-date chart of accounts. For instance, if the chart of template is not updated from 12.0 to 13.0, the `default_pos_receivable_account_id` is not added in the chart template, and when a new company is created, the default pos receivable account is not set on the company. Besides, the field `res.company``account_default_pos_receivable_account_id` is not displayed on any form view, whether or not the full accounting is installed, so we must especially pay attention this default account is well set from start, as the user as no opportunity to correct this by himself. In addition, in upgrade scripts, the default pos receivable account on the chart template is used to correctly set the pos receivable account on the company and on the pos payment methods, so it must be well set for the upgrade script to do its job correctly. Technically, it means, without this revision, the fields: - `account.chart.template``default_pos_receivable_account_id`, - `res.company``account_default_pos_receivable_account_id`, - `pos.payment.method``receivable_account_id` were not filled properly on upgrade, causing critical issues in the accounting entries on pos session closing. Related to #52786 Related to odoo/upgrade@ccfd2371ef89ae67dc9bd68bb0d02f2a440551a2 closes odoo/odoo#52870 X-original-commit: 3258ba015ff75b7c176d83a44261d24ebfcc26de Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-06-04[I18N] l10n_ch: translate in ItalianMartin Trigaux
Courtesy of Federico (fza) closes odoo/odoo#52404 X-original-commit: 7f035f38e7217133acb49c082e01d9c87c36cc66 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-06-04[IMP] account,l10n_fi: Allow custom COA in accounting test suiteLaurent Smet
- A custom COA could be passed as parameter. - Merge the invoice setup to the generic suite like it is in master. forwart-port of https://github.com/odoo/odoo/commit/161498cf8a75d62f9a8e1a17c6dc62a142b85acc closes odoo/odoo#52378 X-original-commit: c0acebe2c55f7030df3bd10ad8058da6a070aa72 Related: odoo/enterprise#10921 Signed-off-by: Josse Colpaert <jco@openerp.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-05-28[I18N] l10n_ch: export source termsMartin Trigaux
It was outdated and did not contained account.tax.report.line references Raised by opw-2261376 closes odoo/odoo#52085 X-original-commit: 81cccec510c4540126503a79d8844f14cb65bb7d Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-28[FIX] l10n_ch: make QR-bill and ISR generation disjointfw-bot
QR-bills could only be generated for ISR-compliant invoices, which is wrong and would have caused issues in the future, as ISR will slowly disappear. Furthermore, doing it this way avoids raising an error after commit 719f087 , when trying to print an ISR-compliant invoice if the module hadn't been updated (it used to raise because the QR-bill report didn't exist, and it tried generating it). closes odoo/odoo#51858 Forward-port-of: #51340 Forward-port-of: #50744 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-05-14[IMP] *: convert to private methodsMartin Trigaux
render, render_template, load, activity_schedule_with_view, get_website_pages should all be private: It should not be possible to render an aribtrary template only with its name or id Still need to render some qweb views from js so the method render_template is kept public. This explains why the website editor still need read access on ir.ui.view as we want to allow any snippet to be rendered.
2020-05-08[I18N] l10n_ch: translate the CoA in ItalianMartin Trigaux
Courtesy of Federico Zanuttini (fza), Odoo closes odoo/odoo#50928 X-original-commit: 9b201746f1ded8fa249803b181b44baa5e686059 Related: odoo/enterprise#10471 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-07[FIX] l10n_ch: fix QR-bill pdf report so that it matches the specoco-odoo
Using it as a parf of the regular invoice pdf report was wrong, as this report is subject to the margins defined in its paper format; causing issues as for the rendering of the QR report, which must be displayed at a precise location (just like ISR). wkhtmltopdf doesn't allow having different margin values in the same file, so we did just as for ISR, and now generate QR-bill in a distinct pdf. [IMP] l10n_ch: add receipt part to QR-bill pdf report closes odoo/odoo#50765 X-original-commit: 99b5306545b945810e8259f2cc447b933d316778 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-04-10[IMP] account,*: Improve bank statements/payments workflowLaurent Smet
- Create journal entries as soon as bank/cash statement lines are created, temporary booked on a suspense account set on the journal. - Simplify the management of "blue" lines in the reconciliation widget. A "blue" line is now a journal item using a temporary liquidity account (outstanding payment/receipt accounts, set on the journal). - Adapt and simplify the bank reconciliation report. - Remove the bank reconciliation threshold date. The reconciliation report will show the not already reconciled journal entries using a liquidity account and the not already reconciled journal entries using a temporary liquidity account. Without accounting, an account.payment will involve directly the liquidity account and then, will be considered as a statement line directly. - Remove the post_at bank reconciliation feature. The "paid" state will be set on the invoices only if reconciled with a journal entry involving the journal's liquidity account. With invoicing, the payment will do that so the "in_payment" state should never be shown up. With accounting, only the statement lines have the power to move an invoice to the "paid" state. - Fix various corner cases about the management of multi-currency in bank statement lines. - Fix the conversion dates in multi-currency: Since the bank/cash is always used on the statement lines, it will use always the real "bank" date instead of the fictive payment one. - Ensure the 'reconcile' method will raise an error if the involved moves are not posted. related enterprise PR odoo/enterprise#7019 closes odoo/odoo#41301 --task: 2092096 Related: odoo/upgrade#1018 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-04-08[FIX] l10n_ch: QR-code generation: limit address lines to 70 characters ↵oco-odoo
instead of 71 closes odoo/odoo#49231 X-original-commit: 396fc027709f38679a211c1391d0cc2d8f919421 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>