{"action":"closed","issue":{"url":"https://api.github.com/repos/onesteinbv/addons-onestein/issues/13","repository_url":"https://api.github.com/repos/onesteinbv/addons-onestein","labels_url":"https://api.github.com/repos/onesteinbv/addons-onestein/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/onesteinbv/addons-onestein/issues/13/comments","events_url":"https://api.github.com/repos/onesteinbv/addons-onestein/issues/13/events","html_url":"https://github.com/onesteinbv/addons-onestein/issues/13","id":173758638,"number":13,"title":"account_invoice_line_pricelist: pricelist is not taken into account when changing uos_id of invoice line","user":{"login":"BT-faebi","id":12300357,"avatar_url":"https://avatars.githubusercontent.com/u/12300357?v=3","gravatar_id":"","url":"https://api.github.com/users/BT-faebi","html_url":"https://github.com/BT-faebi","followers_url":"https://api.github.com/users/BT-faebi/followers","following_url":"https://api.github.com/users/BT-faebi/following{/other_user}","gists_url":"https://api.github.com/users/BT-faebi/gists{/gist_id}","starred_url":"https://api.github.com/users/BT-faebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BT-faebi/subscriptions","organizations_url":"https://api.github.com/users/BT-faebi/orgs","repos_url":"https://api.github.com/users/BT-faebi/repos","events_url":"https://api.github.com/users/BT-faebi/events{/privacy}","received_events_url":"https://api.github.com/users/BT-faebi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T12:02:10Z","updated_at":"2016-09-05T08:40:36Z","closed_at":"2016-09-05T08:40:36Z","body":"How to reproduce:\r\n\r\n1. Create a unit of measure category \"Duration\"\r\n2. Create two unit of measures \"Month\" and \"Year\" with category \"Duration\".\r\n3. Set the type of unit of measure \"Month\" to \"Reference Unit of Measure for this category\".\r\n4. Set the type of unit of measure \"Year\" to \"Bigger than the reference Unit of Measure\" and set 12 as bigger ratio\r\n5. Create a product using \"Month\" as unit of measure for sales and purchase\r\n6. Configure a pricelist\r\n7. Create an invoice, select the pricelist and add an invoice line with the product you just created\r\n8. Change the uos_id of the invoice line to \"Year\"\r\n\r\n=> After point 7, the unit price is correct\r\n=> After point 8, the unit price is wrong (it doesn't take into account the pricelist config).\r\n\r\nI think a solution would be to override function uos_id_change in account_invoice_line_pricelist/models/account_invoice_line.py such that the pricelist is still taken into account after changing the uos."}}
{"actor":{"display_login":"BT-faebi"}}