In sale_expense, there is a rules allowing employee to see all confirmed sales order. This rule breaks the one from sale "see own document" for salesman user. The initial goal of this rule is explained in Task-29303: we wanted to ease the reinvocie flow. For an employee, is it diffuclt to know on which analytic account the expense should be reinvoice (no knowledge of that, no "analytic rights", ...). Anyway, this rule brings more problem than expected and prevent people to work. So, we decided to functionnaly revert the feature by desactivate the rule and hide the sales order field on expense for user that are not salesperson. Salesperson can set the SO, and the onchange will set the analytic account. Futher work will be done in master (for 13.0) in order to solve that matter. To apply the fix, the rule should be desactivated, and the module sale_expense can be updated. opw-2027005 Coming from Task-29303 closes odoo/odoo#34514 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
177 B
177 B
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_sale_order_employee | sale.order.employee.expense | sale.model_sale_order | base.group_user | 0 | 0 | 0 | 0 |