summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_mobile_tests.js
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-02-01 15:32:10 +0000
committernie <nie@odoo.com>2021-02-02 13:01:57 +0000
commit1a556da32c31f262ca5d115b8c0cf26bafe14f82 (patch)
treea8ae2c8dcce085175d40aa637329c9ce7c57bcfa /addons/web/static/tests/fields/basic_fields_mobile_tests.js
parent0bd842ad62901499abb703c92b15496cdfa05cc0 (diff)
[FIX] l10n_ch: use commercial company name in invoice PDF
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>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_mobile_tests.js')
0 files changed, 0 insertions, 0 deletions