Commit Graph
131951 Commits
Author SHA1 Message Date
jbm-odoo b2a2d0a730 [IMP] hr_recruitment: Add refuse reason and a wizard when archiving
Purpose
=======

Like in crm, having a refusal reason to get some metrics on recruitment
+ recruitement dashboard

id=2003841

closes odoo/odoo#38467

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-06 11:55:34 +00:00
ryv-odoo 90fa3e3c60 [REF] base: simplify check method attachments now always requiring employee rights
Since commit 62c9dedafd attachments almost always require employee
user access, unless some specific flow grants super user rights. Moreover
other flows like portal checks user rights before going into attachments
management with superuser rights.

In this commit we simplify code by directly checking current user belongs
to internal employee group (or is a superuser / admin).

We consider tt is the role of controller/model using attachments to check
and grants access to attachments.

Some history of attachments management improvement (not complete, just
an overview of discussed points)

  * 3620cb68a0: improve attachment management in portal;
  * de7c119e66: improve message_post and its attachments management;
  * 62c9dedafd: clean ACLs;

Task ID 2004031
PR #38358

closes odoo/odoo#39869

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-11-06 10:00:04 +00:00
Yannick Tivisse 9ccc7ed1ef [IMP] website_sale_wishlist: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 9c5273f9e1 [IMP] website_sale_product_configurator: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse b040beafd6 [IMP] website_sale_delivery: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse aea9c204ff [IMP] website_sale_coupon: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 3c6610b8fc [IMP] website_sale_comparision: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse c59feb383d [IMP] website_sale: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 5faabd487c [IMP] website_hr_recruitment: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 813cd0b50b [IMP] website_forum: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 58d03d5ce5 [IMP] website_event_sale: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse def5d84df7 [IMP] website_event: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse f16f2e212a [IMP] website_blog: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 05ae347bdd [IMP] website: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 32923eef4a [IMP] test_website_slides_full: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 02bb326a6e [IMP] test_website: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse bee0991528 [IMP] test_mail: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 3c90d09be3 [IMP] survey: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 39a19ff54e [IMP] stock_landed_costs: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 09ed7a3554 [IMP] stock_dropshipping: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 9fd98d0e03 [IMP] stock_account: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 583c717fea [IMP] stock: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 3c4a68f8d1 [IMP] sale_stock: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 2f44fd9a8f [IMP] sale_product_configurator: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 0a829410a6 [IMP] sale_mrp: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse f39871fa1a [IMP] sale_margin: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 1946551c15 [IMP] sale_management: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 7bf3f9ac93 [IMP] sale_expense: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse efd37fd25e [IMP] sale_coupon_delivery: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse c1efc7f1c7 [IMP] sale_coupon: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 4462386434 [FIX] resource: Avoid "Attendances can't overlap' issue on reinstall 2019-11-05 16:18:10 +01:00
Yannick Tivisse 0b77f2bb66 [IMP] repair: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 090d9ece4e [IMP] purchase_stock: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse c1d93ddf04 [IMP] purchase_requisition: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse e78dca5690 [IMP] purchase_mrp: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 89cbc25a34 [FIX] purchase: Allow internal users to see their own orders 2019-11-05 16:18:10 +01:00
Yannick Tivisse d58ab7fbae [IMP] purchase: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 293f5c28f7 [IMP] product_margin: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 4dcef34df0 [IMP] product: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse 0a8866fdeb [IMP] pos_restaurant: Adapt tests to work with/without demo data 2019-11-05 16:18:10 +01:00
Yannick Tivisse d360c49a5a [IMP] portal: Adapt tests to work with/without demo data 2019-11-05 13:08:04 +01:00
Yannick Tivisse 09dc727357 [IMP] point_of_sale: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse 5b35100082 [IMP] note: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse 102717c042 [IMP] mrp_account: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse 14a6fc9ce9 [IMP] mrp: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse ca32dd2bda [IMP] membership: Remove useless test file 2019-11-05 13:08:03 +01:00
Yannick Tivisse ee8812d8cc [IMP] mass_mailing: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse ba44fe871b [IMP] maintenance: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse 4a9ba5ad09 [IMP] lunch: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00
Yannick Tivisse f9381e0f36 [IMP] hr_timesheet: Adapt tests to work with/without demo data 2019-11-05 13:08:03 +01:00