nie
authored
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#65357 Signed-off-by:backspac <backspac@users.noreply.github.com>
Name | Last commit | Last update |
---|