{"action":"created","issue":{"url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/55","labels_url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/55/comments","events_url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/55/events","html_url":"https://github.com/tryton-ar/account_invoice_ar/issues/55","id":96154131,"number":55,"title":"Error al imprimir una factura confirmada","user":{"login":"germanp","id":1280122,"avatar_url":"https://avatars.githubusercontent.com/u/1280122?v=3","gravatar_id":"","url":"https://api.github.com/users/germanp","html_url":"https://github.com/germanp","followers_url":"https://api.github.com/users/germanp/followers","following_url":"https://api.github.com/users/germanp/following{/other_user}","gists_url":"https://api.github.com/users/germanp/gists{/gist_id}","starred_url":"https://api.github.com/users/germanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanp/subscriptions","organizations_url":"https://api.github.com/users/germanp/orgs","repos_url":"https://api.github.com/users/germanp/repos","events_url":"https://api.github.com/users/germanp/events{/privacy}","received_events_url":"https://api.github.com/users/germanp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T20:36:29Z","updated_at":"2015-07-20T20:40:23Z","closed_at":null,"body":"Me tira el siguiente error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/trytond/protocols/jsonrpc.py\", line 150, in _marshaled_dispatch\r\n    response['result'] = dispatch_method(method, params)\r\n  File \"/trytond/protocols/jsonrpc.py\", line 179, in _dispatch\r\n    res = dispatch(*args)\r\n  File \"/trytond/protocols/dispatcher.py\", line 161, in dispatch\r\n    result = rpc.result(meth(*c_args, **c_kwargs))\r\n  File \"/trytond/modules/account_invoice/invoice.py\", line 2450, in execute\r\n    res = super(InvoiceReport, cls).execute(ids, data)\r\n  File \"/trytond/report/report.py\", line 144, in execute\r\n    type, data = cls.parse(action_report, records, data, {})\r\n  File \"/trytond/modules/account_invoice_ar/invoice.py\", line 700, in parse\r\n    localcontext['condicion_iva_cliente'] = cls._get_condicion_iva_cliente(Invoice, invoice)\r\n  File \"/trytond/modules/account_invoice_ar/invoice.py\", line 737, in _get_condicion_iva_cliente\r\n    return dict(invoice.party._fields['iva_condition'].selection)[invoice.party.iva_condition]\r\nKeyError: None\r\n```\r\nMirando en detalle, cuando entro a la entidad relacionada (cliente a facturar) desde la factura me aparece vacío el campo condición ante el iva. Pero si entro desde entidades a la misma entidad me aparece bien. El campo condición de iva se \"vacía\" cuando confirmás la factura, en los estados anteriores funciona bien y se puede imprimir sin errores."},"comment":{"url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/comments/123028682","html_url":"https://github.com/tryton-ar/account_invoice_ar/issues/55#issuecomment-123028682","issue_url":"https://api.github.com/repos/tryton-ar/account_invoice_ar/issues/55","id":123028682,"user":{"login":"germanp","id":1280122,"avatar_url":"https://avatars.githubusercontent.com/u/1280122?v=3","gravatar_id":"","url":"https://api.github.com/users/germanp","html_url":"https://github.com/germanp","followers_url":"https://api.github.com/users/germanp/followers","following_url":"https://api.github.com/users/germanp/following{/other_user}","gists_url":"https://api.github.com/users/germanp/gists{/gist_id}","starred_url":"https://api.github.com/users/germanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanp/subscriptions","organizations_url":"https://api.github.com/users/germanp/orgs","repos_url":"https://api.github.com/users/germanp/repos","events_url":"https://api.github.com/users/germanp/events{/privacy}","received_events_url":"https://api.github.com/users/germanp/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T20:40:23Z","updated_at":"2015-07-20T20:40:23Z","body":"Lo parchié provisoriamente para que no fallara, voy a buscar de nuevo el party y ahí si viene con la condición de iva bien.\r\n\r\nhttps://github.com/Devecoop/account_invoice_ar/commit/738007c891d7546a1f6ee889635f61c49af0de0a"}}