{"action":"created","issue":{"url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/88","labels_url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/88/comments","events_url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/88/events","html_url":"https://github.com/odoo-brazil/l10n-brazil/issues/88","id":107071789,"number":88,"title":"Erro ao criar uma \"Solicitação para cotação\" (fornecedores)","user":{"login":"carlos-korovsky","id":1688341,"avatar_url":"https://avatars.githubusercontent.com/u/1688341?v=3","gravatar_id":"","url":"https://api.github.com/users/carlos-korovsky","html_url":"https://github.com/carlos-korovsky","followers_url":"https://api.github.com/users/carlos-korovsky/followers","following_url":"https://api.github.com/users/carlos-korovsky/following{/other_user}","gists_url":"https://api.github.com/users/carlos-korovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/carlos-korovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlos-korovsky/subscriptions","organizations_url":"https://api.github.com/users/carlos-korovsky/orgs","repos_url":"https://api.github.com/users/carlos-korovsky/repos","events_url":"https://api.github.com/users/carlos-korovsky/events{/privacy}","received_events_url":"https://api.github.com/users/carlos-korovsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/labels/needs%20fixing","name":"needs fixing","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"mstuttgart","id":8174740,"avatar_url":"https://avatars.githubusercontent.com/u/8174740?v=3","gravatar_id":"","url":"https://api.github.com/users/mstuttgart","html_url":"https://github.com/mstuttgart","followers_url":"https://api.github.com/users/mstuttgart/followers","following_url":"https://api.github.com/users/mstuttgart/following{/other_user}","gists_url":"https://api.github.com/users/mstuttgart/gists{/gist_id}","starred_url":"https://api.github.com/users/mstuttgart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstuttgart/subscriptions","organizations_url":"https://api.github.com/users/mstuttgart/orgs","repos_url":"https://api.github.com/users/mstuttgart/repos","events_url":"https://api.github.com/users/mstuttgart/events{/privacy}","received_events_url":"https://api.github.com/users/mstuttgart/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-09-17T20:52:09Z","updated_at":"2015-11-23T16:20:10Z","closed_at":null,"body":"Ao adicionar um produto em uma \"Solicitação para cotação\" de Fornecedores, ocorre o seguinte erro ao selecionar a \"Categoria Fiscal\" / \"Posição fiscal\" do produto. Neste caso é um produto para revenda (Compras para revenda), foram configuradas as \"Regras de posição fiscal\", categoria fiscal e posição fiscal (aquisição dentro do estado).\r\n\r\n   Observações:\r\n      - Com o produto selecionado, selecionando uma categoria fiscal incorreta (compras para industrialização), o sistema deixa a posição fiscal em branco, mesmo tentando adicionar manualmente.\r\n      - Sem que o produto seja selecionado, é possível configurar a categoria fiscal/posição fiscal.\r\n      - As cotações para cliente estão funcionando corretamente.\r\n      - Odoo 8.0 via github/odoo; Localização brasileira e demais dependências via github/odoo-brazil (Repositório local atualizado 11/09/2015)\r\nDescrição no forum:\r\nhttps://groups.google.com/forum/#!topic/openerp-brasil/drZJ1ON22-s\r\n\r\nSegue o erro:\r\n```python\r\nOdoo Server Error\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo.git/openerp/http.py\", line 537, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/odoo.git/openerp/http.py\", line 574, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/odoo.git/openerp/http.py\", line 310, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/http.py\", line 307, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/opt/odoo.git/openerp/http.py\", line 803, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/odoo.git/openerp/http.py\", line 403, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/odoo.git/addons/web/controllers/main.py\", line 944, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/opt/odoo.git/addons/web/controllers/main.py\", line 936, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/api.py\", line 363, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/models.py\", line 5888, in onchange\r\n    record._onchange_eval(name, field_onchange[name], result)\r\n  File \"/opt/odoo.git/openerp/models.py\", line 5806, in _onchange_eval\r\n    method_res = getattr(self._model, method)(*args)\r\n  File \"/opt/odoo.git/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo.git/openerp/api.py\", line 363, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/l10n-brazil.git/l10n_br_purchase/purchase.py\", line 385, in onchange_fiscal_position\r\n    obj_fposition, taxes, context=context)\r\n  File \"/opt/odoo.git/openerp/api.py\", line 239, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\nTypeError: map_tax() takes exactly 2 arguments (4 given)\r\n```"},"comment":{"url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/comments/158984893","html_url":"https://github.com/odoo-brazil/l10n-brazil/issues/88#issuecomment-158984893","issue_url":"https://api.github.com/repos/odoo-brazil/l10n-brazil/issues/88","id":158984893,"user":{"login":"mstuttgart","id":8174740,"avatar_url":"https://avatars.githubusercontent.com/u/8174740?v=3","gravatar_id":"","url":"https://api.github.com/users/mstuttgart","html_url":"https://github.com/mstuttgart","followers_url":"https://api.github.com/users/mstuttgart/followers","following_url":"https://api.github.com/users/mstuttgart/following{/other_user}","gists_url":"https://api.github.com/users/mstuttgart/gists{/gist_id}","starred_url":"https://api.github.com/users/mstuttgart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstuttgart/subscriptions","organizations_url":"https://api.github.com/users/mstuttgart/orgs","repos_url":"https://api.github.com/users/mstuttgart/repos","events_url":"https://api.github.com/users/mstuttgart/events{/privacy}","received_events_url":"https://api.github.com/users/mstuttgart/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T16:20:10Z","updated_at":"2015-11-23T16:20:10Z","body":"@mileo vou dar uma olhada nisso. Obrigado."}}