<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/l10n_ch/models, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] l10n_ch: fix the qr_iban fields to only appear for Swiss companies</title>
<updated>2021-04-28T11:05:06+00:00</updated>
<author>
<name>Djamel (otd)</name>
<email>otd@odoo.com</email>
</author>
<published>2021-04-26T06:42:19+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b33330838f74844db8aea1e0afc61579c92d34f4'/>
<id>b33330838f74844db8aea1e0afc61579c92d34f4</id>
<content type='text'>
Steps to reproduce the bug :
- Create a French company
- Go to accounting settings &gt; in “Fiscal Localization” install French accounting
- Install “l10n_ch_qriban”
- Go to contacts &gt; Configuration &gt; Bank accounts
- Create a new bank account &gt; 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 &lt;jco@openerp.com&gt;
Signed-off-by: Djamel Touati &lt;DjamelTouati@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps to reproduce the bug :
- Create a French company
- Go to accounting settings &gt; in “Fiscal Localization” install French accounting
- Install “l10n_ch_qriban”
- Go to contacts &gt; Configuration &gt; Bank accounts
- Create a new bank account &gt; 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 &lt;jco@openerp.com&gt;
Signed-off-by: Djamel Touati &lt;DjamelTouati@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: human readable ISR number set to False</title>
<updated>2021-03-02T09:24:20+00:00</updated>
<author>
<name>Yannick Vaucher</name>
<email>yannick.vaucher@camptocamp.com</email>
</author>
<published>2021-02-24T17:41:28+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=fdbfb332b528ba8b35d7529eecd610086465aff8'/>
<id>fdbfb332b528ba8b35d7529eecd610086465aff8</id>
<content type='text'>
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 &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: use commercial partner name instead of computed field</title>
<updated>2021-02-04T09:07:37+00:00</updated>
<author>
<name>nie</name>
<email>nie@odoo.com</email>
</author>
<published>2021-02-03T16:37:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=462abcf742df8a669513f42b29f467f4baef1580'/>
<id>462abcf742df8a669513f42b29f467f4baef1580</id>
<content type='text'>
Follow-up of https://github.com/odoo/odoo/pull/65357

closes odoo/odoo#65512

X-original-commit: 38e78a59ace4fb590cc5c138e16acb1013fa193e
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow-up of https://github.com/odoo/odoo/pull/65357

closes odoo/odoo#65512

X-original-commit: 38e78a59ace4fb590cc5c138e16acb1013fa193e
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: use commercial company name in invoice PDF</title>
<updated>2021-02-02T13:01:57+00:00</updated>
<author>
<name>nie</name>
<email>nie@odoo.com</email>
</author>
<published>2021-02-01T15:32:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1a556da32c31f262ca5d115b8c0cf26bafe14f82'/>
<id>1a556da32c31f262ca5d115b8c0cf26bafe14f82</id>
<content type='text'>
Steps:
- Edit the current company (1):
  - Country: Switzerland
  - Currency: CHF
- Install l10n_ch
- Go to Invoicing &gt; Configuration &gt; Bank Accounts
- Edit Bank:
  - Bank Account: create a new one:
    - Account Holder: (1)
- Go to Configuration &gt; Journal
- Edit Customer Invoices:
  - Advanced Settings tab:
    - Communication Standards: Switzerland
- Go to Customers &gt; Customers
- Create a new customer (2):
  - Fill in street, city, zip code and country
- Edit (2):
  - Contacts &amp; Addresses tab:
    - Add:
      - Select Invoice Address
      - Contact Name: Keep this field blank
- Go to Customers &gt; 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 &lt;backspac@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps:
- Edit the current company (1):
  - Country: Switzerland
  - Currency: CHF
- Install l10n_ch
- Go to Invoicing &gt; Configuration &gt; Bank Accounts
- Edit Bank:
  - Bank Account: create a new one:
    - Account Holder: (1)
- Go to Configuration &gt; Journal
- Edit Customer Invoices:
  - Advanced Settings tab:
    - Communication Standards: Switzerland
- Go to Customers &gt; Customers
- Create a new customer (2):
  - Fill in street, city, zip code and country
- Edit (2):
  - Contacts &amp; Addresses tab:
    - Add:
      - Select Invoice Address
      - Contact Name: Keep this field blank
- Go to Customers &gt; 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 &lt;backspac@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: Traceback when installing module</title>
<updated>2021-01-20T08:22:58+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2021-01-20T08:22:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=90c286e168b62876214119d69257d0aa5c120bc2'/>
<id>90c286e168b62876214119d69257d0aa5c120bc2</id>
<content type='text'>
Function _is_l10n_ch_postal expects a singleton

closes odoo/odoo#64776

Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Function _is_l10n_ch_postal expects a singleton

closes odoo/odoo#64776

Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch, l10n_ch_qriban: Impossible to create a vendor bill</title>
<updated>2020-12-16T15:47:26+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2020-12-16T13:50:29+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b226f07628618aac6ada0ffce736e29cb1cdc550'/>
<id>b226f07628618aac6ada0ffce736e29cb1cdc550</id>
<content type='text'>
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) &lt;sig@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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) &lt;sig@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: check reference format with supplier QR-IBAN</title>
<updated>2020-12-09T11:13:35+00:00</updated>
<author>
<name>Yannick Vaucher</name>
<email>yannick.vaucher@camptocamp.com</email>
</author>
<published>2020-11-03T14:22:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0d80dbf8a530209679a65a5c62808be1589c5cef'/>
<id>0d80dbf8a530209679a65a5c62808be1589c5cef</id>
<content type='text'>
closes odoo/odoo#63058

X-original-commit: 48f40f23f0d8977e186f8d6beae11b0be271c7f3
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
closes odoo/odoo#63058

X-original-commit: 48f40f23f0d8977e186f8d6beae11b0be271c7f3
Signed-off-by: Josse Colpaert &lt;jco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] l10n_ch: use an absolute path for ch flag</title>
<updated>2020-10-30T11:23:49+00:00</updated>
<author>
<name>Christophe Monniez</name>
<email>moc@odoo.com</email>
</author>
<published>2020-10-30T11:23:49+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d33785032b1ca2c6e1d4ade7e174d024fae9a151'/>
<id>d33785032b1ca2c6e1d4ade7e174d024fae9a151</id>
<content type='text'>
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 &lt;oco-odoo@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;oco-odoo@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] l10n_ch ISR number computation</title>
<updated>2020-09-24T09:31:24+00:00</updated>
<author>
<name>Yannick Vaucher</name>
<email>yannick.vaucher@camptocamp.com</email>
</author>
<published>2020-05-21T00:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=37d75ecbce3f77c159db12c0247e053b873c685a'/>
<id>37d75ecbce3f77c159db12c0247e053b873c685a</id>
<content type='text'>
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 &lt;oco-odoo@users.noreply.github.com&gt;
Signed-off-by: Christophe Monniez (moc) &lt;moc@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;oco-odoo@users.noreply.github.com&gt;
Signed-off-by: Christophe Monniez (moc) &lt;moc@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] l10n_ch: describe structure of ISR ref</title>
<updated>2020-09-16T15:52:53+00:00</updated>
<author>
<name>Yannick Vaucher</name>
<email>yannick.vaucher@camptocamp.com</email>
</author>
<published>2020-05-21T00:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0c55a951fe7f38edb2d2c53736cc7a97d1d4432f'/>
<id>0c55a951fe7f38edb2d2c53736cc7a97d1d4432f</id>
<content type='text'>
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 &lt;oco-odoo@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;oco-odoo@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
