Giter Site home page Giter Site logo

l10n-switzerland's Introduction

Runboat Pre-commit Status Build Status codecov Translation Status

Swiss Localization

Swiss Localization Modules

Available addons

addon version maintainers summary
ebill_paynet 14.0.1.1.4 TDu Paynet platform bridge implementation
ebill_paynet_customer_free_ref 14.0.1.0.2 Glue module: ebill_paynet and sale_order_customer_free_ref
ebill_postfinance 14.0.1.1.0 TDu Postfinance eBill integration
ebill_postfinance_server_env 14.0.1.0.0 Server environment for eBill Postfinance
ebill_postfinance_stock 14.0.1.0.0 TDu Add stock integration to Postfinance eBill
l10n_ch_account_tags 14.0.1.0.0 Switzerland Account Tags
l10n_ch_adr_report 14.0.1.0.0 Print Delivery report to ADR swiss configuration
l10n_ch_base_bank 14.0.1.0.3 Types and number validation for swiss electronic pmnt. DTA, ESR
l10n_ch_delivery_carrier_label_quickpac 14.0.1.0.1 Print quickpac shipping labels
l10n_ch_invoice_reports 14.0.1.3.0 Extend invoice to add ISR/QR payment slip
l10n_ch_isr_payment_grouping 14.0.1.0.1 Extend account to ungroup ISR
l10n_ch_isrb 14.0.1.0.0 Switzerland - ISR with Bank
l10n_ch_mis_reports 14.0.1.0.0 Specific MIS reports for switzerland localization
l10n_ch_pain_base 14.0.1.0.0 ISO 20022 base module for Switzerland
l10n_ch_pain_credit_transfer 14.0.1.0.0 ecino Generate ISO 20022 credit transfert (SEPA and not SEPA)
l10n_ch_states 14.0.1.0.0 Switzerland Country States
server_env_ebill_paynet 14.0.1.0.0 Server environment for Ebill Paynet

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

l10n-switzerland's People

Contributors

ajaniszewska-dev avatar alexis-via avatar are-agilebg avatar asaunier avatar bt-ojossen avatar chrispi-ch avatar davidwul avatar dzungtran89 avatar grindtildeath avatar guewen avatar hailangvn avatar hbrunn avatar i-vyshnevska avatar kv1612 avatar leemannd avatar mmequignon avatar mymage avatar nbessi avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar p-tombez avatar pedrobaeza avatar sbidoul avatar sonhd91 avatar stephanemangin avatar tdu avatar vrenaville avatar weblate avatar yvaucher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

l10n-switzerland's Issues

Migration 9.0

In order to not port twice the same modules, please comment here if you are going to port a module and tell us about the PR you created.

  • l10n_ch_bank
  • l10n_ch_base_bank
  • l10n_ch_credit_control_payment_slip_report
  • l10n_ch_dta
  • l10n_ch_hr_payroll
  • l10n_ch_import_cresus
  • l10n_ch_payment_slip
  • l10n_ch_payment_slip_layouts
  • l10n_ch_payment_slip_voucher
  • l10n_ch_sepa
  • l10n_ch_states
  • l10n_ch_zip

TODO: add a link on how to port a module from 8.0 to 9.0

[6.1] l10n_ch_zip depends on better_zip

Hello,
The rework of l10n_ch package includes a new l10n_ch_zip module. However, it depends on the old better_zip module, which is not present in l10n_switzerland.
Is it a wrong/old dependency, or else where can I find this module?

Thank you,
BS

Payment Slip (BVR/ESR) - Problems with output methodes - memory and disk

Module:

Switzerland - Payment Slip (BVR/ESR)

Steps to recreate:

  • tested on a test-database with test-data
  • also tested with a clone of a customer-database

Errors:

Merge Slips in Memory:
If Payment Slip is created from Invoice, the PDF is empty.

Merge Slips on Disk:
It raises the following error:
Traceback (most recent call last): File "/opt/odoo/addons/report/controllers/main.py", line 121, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/opt/odoo/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/report/controllers/main.py", line 65, in report_routes pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/.local/share/Odoo/addons/8.0/l10n_ch_payment_slip/report/payment_slip_from_invoice.py", line 68, in get_pdf context=context File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/.local/share/Odoo/addons/8.0/l10n_ch_payment_slip/report/payment_slip_from_invoice.py", line 58, in _generate_one_slip_per_page_from_invoice_pdf return self.merge_pdf_on_disk(docs) File "/opt/odoo/.local/share/Odoo/addons/8.0/l10n_ch_payment_slip/report/reports_common.py", line 89, in merge_pdf_on_disk buff.close() UnboundLocalError: local variable 'buff' referenced before assignment

[8.0] DTA cannot be generated: TypeError: an integer is required

When I generate a DTA, I get

2014-12-10 12:54:39,967 6807 ERROR openerp_trunk openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 517, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 538, in dispatch
    result = self._call_function(**self.params)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 754, in __call__
    return self.method(*args, **kw)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/addons/web/controllers/main.py", line 953, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/api.py", line 360, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/l10n-switzerland/l10n_ch_dta/wizard/create_dta.py", line 774, in create_dta
    dta_file = self._create_dta(data)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/server/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/gbaconnier/code/instances/openerp/dev/parts/l10n-switzerland/l10n_ch_dta/wizard/create_dta.py", line 736, in _create_dta
    dta_line = record_type(elec_context, self.pool, pline).generate()
  File "/home/gbaconnier/code/instances/openerp/dev/parts/l10n-switzerland/l10n_ch_dta/wizard/create_dta.py", line 99, in __init__
    tr(global_context_dict[i]))
  File "/home/gbaconnier/code/instances/openerp/dev/parts/l10n-switzerland/l10n_ch_dta/wizard/create_dta.py", line 80, in tr
    string_in = string_in.replace(k[0], k[1])
TypeError: an integer is required

The reason is that it calls tr() on all the values of global_context_dict.

        for i in global_context_dict:
            global_context_dict[i] = (global_context_dict[i] and
                                      tr(global_context_dict[i]))

tr() expect a string and global_context_dict contains various types of data as shown here:

{'amount_to_pay': '22,68',
 'comp_bank_clearing': u'243',
 'comp_bank_iban': 'CH19xxxxxxxxxxxxxxxx0',
 'comp_bank_name': 'UBS SA',
 'comp_bank_number': 'CH19 xxxx xxxx xxxx xxxx 0',
 'comp_city': 'Renens',
 'comp_country': 'Suisse',
 'comp_dta': '',
 'comp_name': 'Company A',
 'comp_street': 'Rue de Cossonay 1',
 'comp_zip': '1020',
 'creation_date': '2014-12-10',
 'currency': 'CHF',
 'date_value': datetime.datetime(2014, 11, 26, 0, 0),
 'number': '004',
 'partner_bank_city': u'Pf\xe4ffikon SZ',
 'partner_bank_clearing': '214',
 'partner_bank_code': u'UBSWCHZH88A',
 'partner_bank_country': 'Suisse',
 'partner_bank_iban': 'xxx',
 'partner_bank_name': 'UBS AG',
 'partner_bank_number': u'xxx',
 'partner_bank_street': 'Churerstrasse 70',
 'partner_bank_zip': '8808',
 'partner_bvr': '',
 'partner_city': 'Gevneve',
 'partner_country': 'Suisse',
 'partner_name': 'Supplier_A',
 'partner_street': False,
 'partner_zip': False,
 'reference': 'EXJ/2014/0001',
 'sequence': '00001',
 'uid': 'res.users(1,)'}

Report 'one_slip_per_page_from_invoice' raises a TypeError

Impacted versions:

Steps to reproduce:

  1. install module 'l10n_ch_payment_slip from https://github.com/nbessi/l10n-switzerland/tree/new_payment_slip
  2. set BVR data for the company
  3. create a new customer invoice
  4. print the 'Payment Slip' report

Current behavior:

this is the Traceback I got:

Traceback (most recent call last):
  File "/home/tafaru/dev/envs/buildout/customer/parts/odoo/addons/report/controllers/main.py", line 118, in report_download
    response = self.report_routes(reportname, docids=docids, converter='pdf')
  File "/home/tafaru/dev/envs/buildout/customer/parts/odoo/openerp/http.py", line 388, in response_wrap
    response = f(*args, **kw)
  File "/home/tafaru/dev/envs/buildout/customer/parts/odoo/addons/report/controllers/main.py", line 65, in report_routes
    pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context)
  File "/home/tafaru/dev/envs/buildout/customer/parts/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tafaru/dev/envs/buildout/customer/parts/new_payment_slip/l10n_ch_payment_slip/report/payment_slip_from_invoice.py", line 50, in get_pdf
    out_format='PDF')
  File "/home/tafaru/dev/envs/buildout/customer/parts/new_payment_slip/l10n_ch_payment_slip/payment_slip.py", line 592, in _draw_payment_slip
    scan_font = self._get_scan_line_text_font(company)
  File "/home/tafaru/dev/envs/buildout/customer/parts/odoo/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/tafaru/dev/envs/buildout/customer/parts/new_payment_slip/l10n_ch_payment_slip/payment_slip.py", line 399, in _get_scan_line_text_font
    company.bvr_scan_line_font_size or self._default_scan_font_size
  File "/home/tafaru/dev/envs/buildout/customer/eggs/Pillow-2.5.1-py2.7-linux-x86_64.egg/PIL/ImageFont.py", line 228, in truetype
    return FreeTypeFont(font, size, index, encoding)
  File "/home/tafaru/dev/envs/buildout/customer/eggs/Pillow-2.5.1-py2.7-linux-x86_64.egg/PIL/ImageFont.py", line 131, in __init__
    self.font = core.getfont(font, size, index, encoding)
TypeError: integer argument expected, got float

Casting company.bvr_scan_line_font_size to int seems to fix it.
But it sounds to me a bit strange that https://pillow.readthedocs.org/reference/ImageFont.html doesn't accept the argument size as float.

Any feedback will be appreciated.

Thank you in advance.

Domain is not correctly set in l10n_ch_scan_bvr version 7

Hello,

In the module l10n_ch_scan_bvr, in the wizard.scan_bvr.py file the domain is not correctly set
when the function _construct_bvr_postal_in_chf is called.

This function:

feature3

always return 'bvrnumber': ''.

However, in the code we have:

feature2
feature_1

So... it always compute bvr_struct['domain'] = 'bvr_adherent_num'

We think that
if bvr_type == '01' and len(bvr_string) == 42:
bvr_struct['domain'] = 'name'

while

if bvr_type == '03':
domain bvr_struct['domain'] = 'bvr_adherent_num'

Uncatched error - If no adherent number is set on partner bank

When invoice.partner_bank_id.bvr_adherent_num is False

Traceback (most recent call last):
  File ".../server/openerp/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File ".../addons/report_webkit/webkit_report.py", line 332, in create
    result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
  File ".../server/openerp/report/report_sxw.py", line 511, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File ".../addons/report_webkit/webkit_report.py", line 213, in create_single_pdf
    parser_instance.set_context(objs, data, ids, report_xml.report_type)
  File ".../l10n_ch/l10n_ch_payment_slip/report/multi_report_webkit_html.py", line 63, in set_context
    self._check(ml_ids)
  File ".../l10n_ch/l10n_ch_payment_slip/report/multi_report_webkit_html.py", line 197, in _check

  File ".../l10n_ch/l10n_ch_payment_slip/report/multi_report_webkit_html.py", line 174, in _check_invoice
    compliance = self._compile_check_bvr_add_num.match(adherent_num)
TypeError: expected string or buffer
2014-09-11 15:18:01,864 26682 ERROR test_l10n_ch openerp.netsvc: expected string or buffer
(<type 'exceptions.TypeError'>, TypeError('expected string or buffer',), <traceback object at 0x7f1efc064f80>)
Traceback (most recent call last):
  File ".../server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File ".../server/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File ".../server/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File ".../server/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File ".../server/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'expected string or buffer', (<type 'exceptions.TypeError'>, TypeError('expected string or buffer',), <traceback object at 0x7f1efc064f80>))

This would occure if l10n_ch_payment_slip is installed in an empty database. Missing dependancy ?

[l10n_ch_bvr_scan] - Improvement/Fix - Remove leading space on BVR string for compatibility with some scanners

Hi, this is more a improvement than an issue but it improve the scanning process a lot in term of speed.

It would be nice to add following code to deal with leading spaces appearing in BVR string when we use some scanners (ex: IRISPen Express 7) :

Get rid of leading and ending spaces of the BVR string

bvr_string = bvr_string.strip()

in the following block on line 269

...
   def _get_bvr_structurated(self, bvr_string):
       if bvr_string is not False:
           # We will get the 2 first digits of the BVR string in order
           # to now the BVR type of this account
           bvr_type = bvr_string[0:2]
           bvr_struct = {}
           if bvr_type == '01' and len(bvr_string) == 42:
...

Regards,

Johann

Error when installing l10n_ch_payment_slip_layouts

File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 1393, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ParseError: "Wrong value for ir.actions.report.xml.report_type: 'reportlab-pdf'" while parsing /opt/custom_addons/l10n_ch_payment_slip_layouts/report/report.xml:10, near

How to clear this ?

[8.0] Cannot install l10n_ch_payslip with 8ocb code

here is the traceback:

Traceback (most recent call last):
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 508, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 526, in dispatch
result = self._call_function(*_self.params)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 285, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 282, in checked_call
return self.endpoint(_a, *_kw)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 742, in call
return self.method(_args, *_kw)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/http.py", line 378, in response_wrap
response = f(_args, *_kw)
File "/home/fclementi/openerp-instances/8ocb/parts/server/addons/web/controllers/main.py", line 952, in call_button
action = self._call_kw(model, method, args, {})
File "/home/fclementi/openerp-instances/8ocb/parts/server/addons/web/controllers/main.py", line 940, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/api.py", line 237, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/addons/base/module/module.py", line 450, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/api.py", line 237, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/addons/base/module/module.py", line 498, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/modules/registry.py", line 341, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/modules/loading.py", line 358, in load_modules
loaded_modules, update_module)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/modules/loading.py", line 263, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/modules/loading.py", line 162, in load_module_graph
registry.setup_models(cr, partial=True)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/modules/registry.py", line 169, in setup_models
model._setup_fields(cr, SUPERUSER_ID, context=context)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/api.py", line 237, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/api.py", line 332, in old_api
result = method(recs, _args, *_kwargs)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/models.py", line 2958, in _setup_fields
field.setup(self.env)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/fields.py", line 411, in setup
self._setup(env)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/fields.py", line 1046, in _setup
super(Char, self)._setup(env)
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/fields.py", line 424, in _setup
self._setup_dependency([], model, path.split('.'))
File "/home/fclementi/openerp-instances/8ocb/parts/server/openerp/fields.py", line 560, in _setup_dependency
fields = [model._fields[head]]
KeyError: 'code'

[l10n_ch_hr_payroll] - Error on Compute Sheet in hr_payslip.py

Traceback (most recent call last):
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 574, in dispatch
result = self._call_function(*_self.params)
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/Users/jox/Workspace/odoo8/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 307, in checked_call
return self.endpoint(_a, *_kw)
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 803, in call
return self.method(_args, *_kw)
File "/Users/jox/Workspace/odoo8/openerp/http.py", line 403, in response_wrap
response = f(_args, *_kw)
File "/Users/jox/Workspace/odoo8/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/Users/jox/Workspace/odoo8/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/Users/jox/Workspace/odoo8/openerp/api.py", line 250, in wrapper
return old_api(self, _args, *_kwargs)
File "/Users/jox/Workspace/odoo8/openerp/api.py", line 372, in old_api
result = method(recs, _args, *_kwargs)
File "/Users/jox/Workspace/odoo8_complements/l10n_ch_hr_payroll/models/hr_payslip.py", line 132, > in compute_sheet
and a.type='liquidity'""" % ','.join(moves)
TypeError: sequence item 0: expected string, account.move found

When using "Compute Sheet" and when there are at least one paid invoice bind to the employee.

Solved the issue by changing following code:
line 132:

and a.type='liquidity'""" % ','.join(moves)

by

and a.type='liquidity'""" % ",".join(["%s" % (i) for i in moves.ids])

Need a confirmation maybe.

[l10n_ch_hr_payroll] - Duplicate code block

Found duplicate code blocks in models/hr_payslip.py:

inv_lines = InvoiceLineObj.search(filters)
invoices = inv_lines.mapped('invoice_id')
invoices.write({'slip_id': payslip.id})
moves = invoices.mapped('move_id')

on line 101 to 104 and line 106 to 109

l10n_ch_payment_slip empty report issue

Hello guys,
I was trying to print payment slip but when i open it it says "this document is empty"
Despite that other pdf generated by odoo works fine like invoice,sales order and etc.

Does anyone has this module working and could give me some tips how to solve this?
Any help would be appreciate

BVR + Invoice in one PDF to be send by email

When users want to send invoices by email, it is possible to bind only a single report.

In the case of ISR it is not possible to send the BVR bills because it would be able to join 2 report.

I propose to create a report that contains the invoice and the BVR (with background image) into a single PDF

l10n_ch_payment_slip OCRB font blurred in PIL generated slip

The two modules (version 7 webkit and version 8 PIL) generate a different output even though same .ttf file is used

I have an example here showcasing the difference between the two versions:
old_1
new_1

old_2
new_2

As you can see the PIL generated ones are considerably more blurry and also the space is considerably larger (although this can be solved by spacing via position instead of entering a blank space probably)

I tried changing DPI and font-size to no avail.

Let me know if I can provide more information

@yvaucher @nbessi

No bank list on res.partner.bank form from company form

On branch 7.0 with l10n_ch, l10n_ch_bank, l10n_ch_base_bank, l10n_ch_payment_slip installed, there is no more bank selectable in the bank field of res.partner.bank form from company form (but there is banks imported by l10n_ch_bank in the res_bank table in database).
bank

Error after import of v11 file

ValueError: Invalid field 'reconcile_id' in leaf "<osv.ExtendedLeaf: ('reconcile_id', '=', False) on account_move_line (ctx: )>"

after import of v11 file

Wrong inheritance in l10n_ch_payment_slip_account_statement_base_completion

In File l10n-switzerland/l10n_ch_payment_slip_account_statement_base_completion/wizard/bvr_import.py, line #25 the class is declared to inherit from 'bvr.import.wizard'. In openerp.py a dependency to '10n_ch_payment_slip' is declared.

In l10n-switzerland/l10n_ch_payment_slip/wizard/bvr_import.py class BvrImporterWizard is declared and named 'v11.import.wizard'.

So line 25 in l10n-switzerland/l10n_ch_payment_slip_account_statement_base_completion/wizard/bvr_import.py should read:

_inherit = 'v11.import.wizard'

How is the DTA workflow?

I have some problems with DTA.
I have configurate all with the bank. But know when I want to make a DTA transfer it doesn't work.
Is there any workflow or documentation about that?
Create a DTA works but what are the next steps?
Thank you

l10n_ch_lsv_dd: unmet dependency l10n_ch_payment_slip_base_transaction_id for series 8.0

The module l10n_ch_lsv_dd is part of the OCA Newsletter but it is not available on Odoo Apps.

Here is why:

l10n_ch_payment_slip_base_transaction_id: Module not installable
l10n_ch_payment_slip_account_statement_base_completion: Module not installable
l10n_ch_dta_base_transaction_id: Module not installable
l10n_ch_lsv_dd: unmet dependency l10n_ch_payment_slip_base_transaction_id for series 8.0

Print Swiss BVR/ESR problem

Hi,

Everytime we are trying to print the BVR from "customer invoices" on our Odoo 7 installation we got the following error :

Rendu webkit !
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0-py2.7.egg/openerp/addons/report_webkit/webkit_report.py", line 274, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/local/lib/python2.7/dist-packages/Mako-0.7.3-py2.7.egg/mako/template.py", line 412, in render
return runtime._render(self, self.callable_, args, data)
File "/usr/local/lib/python2.7/dist-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 766, in _render
**_kwargs_for_callable(callable_, data))
File "/usr/local/lib/python2.7/dist-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 798, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/local/lib/python2.7/dist-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 824, in _exec_template
callable_(context, *args, **kwargs)
File "memory:0x7f80f855c7d0", line 287, in render_body
<%
IndexError: list index out of range

List of installed modules:
Switzerland - Bank Payment File (DTA) l10n_ch_dta 7.0.1.0
Switzerland - Payment Slip (BVR/ESR) l10n_ch_payment_slip 7.0.1.2
Financial Reports - Webkit account_financial_report_webkit 7.0.1.0.2
Switzerland - Accounting l10n_ch 7.0.7.1
Contracts Management account_analytic_analysis 7.0.1.1
Switzerland - Bank type l10n_ch_base_bank 7.0.1.1
Webkit Report Engine report_webkit 7.0.0.9

Has somebody one idea ?

Best reagards

Loic

Company bank account in invoice

Hello,

On supplier invoice I can't select a bank account from my parent company (commercial_partner_id)
so for invoice send from a contact form a company or a sub company, I can't set the bank account.

see my PR #54

Thanks

l10ch_payment_slip: scan line must not contain whitespaces

Impacted versions:

Steps to reproduce:

  1. install module 'l10n_ch_payment_slip from https://github.com/nbessi/l10n-switzerland/tree/new_payment_slip
  2. create a new customer invoice
  3. print the 'Payment Slip' report

Actually, scan line is using 'BVR/ESR Ref' as is, without remove whitespaces before according to https://www.postfinance.ch/binp/postfinance/public/dam.q66fKuNGU4w8QsUdebHtUSDrZmx_vJVUoy2Yp7fkNL4.spool/content/dam/pf/de/doc/consult/manual/dlserv/inpayslip_isr_man_it.pdf (see image at pag. 8)

Migration to version 9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate (alphabetically)

Payroll configuration error

Comment from @stevech091

Hello @open-net-sarl after my short test you have seen that you have configured AVS company contributor double of employ but I think is a mistake. Normally the company contributor are the same of employ (all my customer HR software have this configuration).

In your http://ur1.ca/ir5ou you talk about "Impôt à la source" in "montant fixè". Why? I think in better use some formula and table. In Ticino "Impôt à la source" are on years base (not montly) so is very hard for end user calculate every month the new "montant".
What do you think?

Work for other test.

Regards,

Stefano

7.0 from tools import not working

I have an issue with branch 7.0, the following import in files l10n_ch_base_bank/bank.py and l10n_ch_dta/wizard/create_dta.py is not working :

from tools import mod10r

Should it be replaced by

from openerp.tools import mod10r ?

l10n_ch_payment_slip Module Payment Slip print issue.

In Windows, Odoo 8 Installedl10n_ch_payment_slip Module
https://apps.odoo.com/apps/modules/8.0/l10n_ch_payment_slip/

using the menu (Accounting --> Customers --> Customers Invoice --> Print --> Payment Slip while generation PDF or HTML Payment Slip report. It does not generate report either in html or pdf.

In the code QWEB print payment slip Report Template "one_slip_per_page" is not found or not created in the code.

Odoo Log file Error:
File "C:\Program Files\Odoo 8.0-20150326\server\openerp\addons\report\controllers\main.py", line 63, in report_routes
return request.make_response(html)
File "C:\Program Files\Odoo 8.0-20150326\server\openerp\api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "C:\Program Files\Odoo 8.0-20150326\server\openerp\addons\report\models\report.py", line 165, in get_html
return particularreport_obj.render_html(cr, uid, ids, data=data, context=context)
AttributeError: 'report.one_slip_per_page_from_invoice' object has no attribute 'render_html'

Payment_Slip QWEB Templates?

hi,
When I installed the payment_slip, I don't have any QWeb Templates of that. So I can generate a PDF but it's empty. I searched that in the Settings and i found this:
one_slip_per_page_from_invoice

This is the payment_slip temp. but it's empty with no Templates.
Why?

Thank you..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.