Commit Graph
78 Commits
Author SHA1 Message Date
Yannick Tivisse 382fbd3520 [IMP] base: Remove unused module categories
The categories other extra rigths and hidden are not used now.
2018-04-26 15:13:38 +02:00
Arnold Moyaux d279a3e6d5 [FIX] stock: adapt portal rights
After commit 996a817071
The portal report on picking only check if
the user has a 'read' access on picking.
If he can read it, sudo is called and thus
record rule/access right on component objects
are not necessary.

This commit removes useless rights for portal users.
2017-11-16 16:54:42 +01:00
Kirti Choudhary 6227212977 [IMP] stock: capitalize technical group's names properly 2017-09-25 19:27:15 -07:00
Fabien Pinckaers 0e4f3bb959 [IMP] stock: remove procurement orders to fufill immediately
This removes the procurement.order model. To fufill their needs SO, PO, MO and
stock moves now call the _run method of the relevant procurement.group.

This mecanism is now only used for stockable product, tasks now uses their own
independent mecanism.

The _run method will check all the applicable rules and create directly the
needed model to fufill the need.

The modules stock, purchase, mrp, extends the _run method to implement their
specific strategy relevant for the rule type they define.

If an exception happens the message will be logged as a mail messsage on the
source model, for example, if a sales order cannot be fufilled the salesperson
will now see directly the reason.

OLD commit messages:
[WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
[IMP] Basic tests
[FIX] test not necessary anymore
[FIX] remove unnecessary print statement
[FIX] unnecessary test + why passing warehouse worked before?
[IMP] purchase: one move by purchase order line
[FIX] purchase: correct inventory tests and pass move_dest_ids among procurements
[FIX] because of bad cherry-pick merge
[IMP] make mrp pass by adding move_dest_ids there too
[IMP] tests of sale_mrp, no need for cancelpropagation then
[IMP] better to consistently use recordsets also for one2many
[FIX] purchase_requisition
[FIX] Exceptions should trigger errors, which should be caught in the tests
[FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol
[FIX] stock_dropshipping: add sale_line_id on purchase_line_id
[FIX] Remove pdb
[IMP] add stock_dropshipping files
[IMP] stock: search carrier through sale line instead of procurement group
[IMP] add procrule test and preision needed when updating sol
[FIX] sale_order_dates + [IMP] procurement exceptions by scheduler
[FIX] No need to return task
[IMP] move file as name changes and add corrections
[FIX] Continue Run Schedulers wizard fix
[FIX] name issues of takss
[FIX] updating sale order line, but there is still a problem with the recompute
2017-09-08 17:08:05 +02:00
Simon Lejeune ddf2b21bdf [REF] stock: adapt to rename of stock.pack.operation into stock.mode.line 2017-07-14 17:08:22 +02:00
Christophe Simonis 50d8ea1d58 [MERGE] forward port branch saas-15 up to aae12c2bad 2017-06-12 19:37:28 +02:00
Christophe Simonis aae12c2bad [MERGE] forward port branch saas-14 up to 62fec71568 2017-06-12 19:19:42 +02:00
Cédric Pigeon b5a224a583 [FIX] add missing multi-company security rule for stock_location_route
Multi-company rule for stock_location_route

opw:746761
2017-06-12 16:23:21 +02:00
Jérome Maes 9f006b5cce [REM] portal_stock: kill the module
The goal is to prepare the removal of
'portal' module.

Since this module only provides access rules and
rights, those ones are moved directly into its
parent module (aka 'stock').
Since no module depends on it, we can remove it
without problem.
2017-03-23 09:59:58 +01:00
Dhaval Panchal 5c837dec2a [REF] stock, etc: rename picking type by operation type
As picking types aren't always used in a picking context, and picking
aren't really meanigful for a lot of people, we rename this concept as
"operation type" in views and in the planner.
2017-02-17 13:21:58 +01:00
Yannick Tivisse ff63f5d0a3 [IMP] base_setup: Allow the admin to modify the default user acess rights
Add a link in the general settings to access easily the default_user form view in order to modify the default access rights

The default_user manager rights declarations in all the applications have been move in a noupdate="1" definition to avoid the manual configuration overwrittings
2016-08-23 11:14:37 +02:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Yannick Tivisse 8ff9cbad2c [IMP] sale,purchase,stock,account: Don't display an empty 'warning' page
And add a category hidden on the res.group definition
2016-05-06 17:06:35 +02:00
Yannick Tivisse 536dbc50db [IMP] account,sale,purchase,stock: Add groups to activate warnings 2016-04-07 10:08:20 +02:00
Yannick Tivisse b2cd56efa0 [FIX] stock: A stock user shouldn't be automatically in multi locations 2016-02-04 11:19:09 +01:00
Yannick Tivisse d5704262bd [IMP] Stock: Several improvement on locations and warehouses settings
- Separate group_stock_multiple_locations into 2 groups:
  o group_stock_multi_locations
  o group_stock_multi_warehouses
- Add a selection fields to manage the 3 levels of warehouses management complexity:
  o Manage 1 WH with 1 location
  o Manage 1 WH with multi locations
  o Manage multi WHs with multi locations
- Display the menuitems and fields accordingly
- On a company creation : Create a related Warehouse
- stock.location : Add a helper on the parent location
- stock.warehouse : Add a helper on the company_id field
2016-02-04 11:19:09 +01:00
Christophe Simonis 5f997bc4ef [MERGE] forward port of branch saas-7 up to 7fa6f73 2016-01-12 16:11:28 +01:00
Goffin Simon bb2549f531 [FIX] stock: location_id and location_dest_id
In "stock.move" model the fields location_id and location_dest_id
are required. But when disabling "Manage Multiple Locations and Warehouses"
in Technical Settings, these fields became hidden in stock.move.form and
then it was impossible to add an new product to consume in mrp.production.form.

In 8.0, to be in group_stock_user implies to be in stock.group_locations.

Introduced by e58b16a

opw:660032
2016-01-11 12:19:23 +01:00
Christophe Simonis 4b4a71c282 [MERGE] forward port of branch saas-7 up to 8f9194e 2015-11-25 19:13:43 +01:00
Christophe Simonis 32c7c31b40 [MERGE] forward port of branch saas-6 up to a73e292 2015-11-25 19:08:27 +01:00
Denis Ledoux 2fd14db574 [FIX] stock: multi-company rule for stock.quant.
`stock.move` & `stock.product` have multi-company rules.
There is therefore no reason why `stock.quant` could not have one.

Besides, this could lead to access rights issues,
when a user went to the `Quants` list,
in Warehouse > Traceability > Quants,
while there were quants for products in a company different
than the user company.

opw-653188
2015-11-25 14:32:46 +01:00
Yannick Tivisse 1ecba213f4 [IMP] Newly created users get all manager access right
Coming from a bug in web_settings_dashboard. Invited user didn't have any rights
when created from the dashboard, which was leading to an error.

This bug leaded to a new discussion. Better to have basic employee having user
rights for all main applications. For bigger entreprises there is an admin that
will carefully remove extra rights, if necessary. The target is small businesses,
it makes sense that every way to create a user gives the same result.

In conclusion, each new user has a full access to the applications by default

How is it implemented ?
We added an inactive default user which original access right to the groups
'base.group_user' and 'base.group_partner_manager' in base. Each
application will extend the default user's access right by adding the maximal
access right for this application.

On user creation, we will use by default the 'group_id' field from the default
user. We will in the same time remove the ugly 'default_groups_ref' key which
was passed sometimes in the context for some fields in some views, and sometimes
nothing.

So, the user can modify the access rights for the default user, but he should be
aware that removing project user access rights for a default user will prevent
a *created on the fly in a task* user will not be able to access the task.
2015-11-20 16:27:32 +01:00
Josse Colpaert 80fab986a9 [IMP] stock: deactivate picking types instead of using 2 security groups for not showing internal picking types in kanban
Instead of using 2 security groups to make sure
internal pickings are not shown in the dashboard
when not in multiple locations,
picking types are deactivated when the warehouse
is one step in/out and not in multiple locations.

That way it will work the same for other kanban views.

The colors of the kanban view are also changed.
2015-09-28 21:25:02 +02:00
Gaurav Panchal b600075d86 [IMP] stock: groups and config update
Set the single location management group into hidden category, like the
multiple location related group.
2015-08-12 11:41:58 +02:00
Yannick Tivisse e58b16a589 [IMP] stock : Usability improvements
- Rename some labels
- Add menu tips for picking type views
- Set Operations menuitem in group_no_one
- The options under configuration should not be in technical features
- Reorganized the configuration menuitems
- Hide the internal transfers in the picking type views if the option Use multi location and warehouse is disabled

Conflicts:
	addons/stock/product_view.xml
2015-07-10 10:20:37 +02:00
Josse Colpaert 8ea9bff314 [IMP] Adapt barcodes on picking report, warehouse should be passed from move picking type if not defined, prodlot in mrp_repair, picking types 2014-06-10 16:06:52 +02:00
Josse Colpaert ad58b17e6e [IMP] Add security rules from bzr branch 2014-05-21 17:34:19 +02:00
Josse Colpaert 754b126f10 [IMP] Improve descriptions
bzr revid: jco@openerp.com-20140220163111-7glosa7deh60u1k8
2014-02-20 17:31:11 +01:00
Josse Colpaert 10123ce0c5 [IMP] Revert commit 9498 to have split between tracking of packages and tracking of serial numbers / lots /...
bzr revid: jco@openerp.com-20140130174711-2sl1rvnkx2ju2tef
2014-01-30 18:47:11 +01:00
Quentin (OpenERP) 05da75b823 [REF] stock: reduced the number of options to track or not serial numbers to 1
bzr revid: qdp-launchpad@openerp.com-20140107152358-uwwfufkg3y1eob8l
2014-01-07 16:23:58 +01:00
Quentin (OpenERP) fc3b00578d [FIX] stock: installation error fixed (reference to account module which may not be installed) + stock_account: changed group implied by stock manager's one as group_account_invoice instead of group_account_user in order to give just as power as needed and not more
bzr revid: qdp-launchpad@openerp.com-20131231100228-dde6bm6w7h3qndci
2013-12-31 11:02:28 +01:00
Quentin (OpenERP) f5718efa6e [MERGE] merged with trunk
bzr revid: qdp-launchpad@openerp.com-20131230102802-y1ux8470wxnj4yfr
2013-12-30 11:28:02 +01:00
Denis Ledoux d7b1dafbab [FIX] stock: warehouse manager impliying account invoicing group is enough (no need to be accountant)
bzr revid: dle@openerp.com-20131219160345-jj68pdnkqjxm1f2o
2013-12-19 17:03:45 +01:00
Jitendra Prajapati (OpenERP) ff68dceedb [MISC]
bzr revid: prajapatijitendra7969@gmail.com-20131211051717-x1pfhml0kedmax50
2013-12-11 10:47:17 +05:30
Jitendra Prajapati (OpenERP) 711be2f8a9 [IMP]improve code
bzr revid: prajapatijitendra7969@gmail.com-20131211051252-bd4abmcsxfa9ccie
2013-12-11 10:42:52 +05:30
Jitendra Prajapati (OpenERP) 73046d5674 [FIX/IMP]runbot and No Rule matching this procurement. add access rights
bzr revid: prajapatijitendra7969@gmail.com-20131210061106-5uqo57njddem6tld
2013-12-10 11:41:06 +05:30
jke-openerp 8e81692518 merge sto sto_loc
bzr revid: jke@openerp.com-20131004145659-qt8sodvtxfqz0yv8
2013-10-04 16:56:59 +02:00
Josse Colpaert 0dba7a7d4a [WIP] Add owner on quants and pack operations. Add owner option in warehouse settings. Change purchase_id on picking.
bzr revid: jco@openerp.com-20130830132507-oqrixcaxqjzuboyb
2013-08-30 15:25:07 +02:00
Quentin (OpenERP) 038fd04ea5 [WIP] split stock module in stock and stock_account that installs itself only if account+stock are installed
bzr revid: qdp-launchpad@openerp.com-20130711130528-c9jjiduqriakj9iv
2013-07-11 15:05:28 +02:00
Fabien Pinckaers 8f6c3e14b9 [IMP] Yet another 1000 lines removed
bzr revid: fp@tinyerp.com-20130630222646-wrpyd1o89md8gknx
2013-07-01 00:26:46 +02:00
Fabien Pinckaers 8f49a3d4c7 [IMP] WIP removed 1000 lines of code
bzr revid: fp@tinyerp.com-20130630085503-ubn247ylue58wa1u
2013-06-30 10:55:03 +02:00
Josse Colpaert 2397c71f43 [IMP] Put price computation (price calculation) to action_done and merge separate module in other modules
bzr revid: jco@openerp.com-20130513115942-flyx6wiuv79dtgln
2013-05-13 13:59:42 +02:00
Foram Katharotiya (OpenERP) 8009999e29 [IMP] give access rights to the user in stock ymls
bzr revid: fka@tinyerp.com-20130228132836-e2f7rknoodpqix0p
2013-02-28 18:58:36 +05:30
Olivier Dony 3fe6987ce7 [MERGE] Harmonization of noupdate flag on security XML data, courtesy of Alexis de Lattre (Akretion)
ir.rule records are in noupdate data blocks to let the admin
alter them without fear of them being reset at next update.
Other records such as groups are in normal mode, so they
can be updated whenever necessary

bzr revid: odo@openerp.com-20121218232001-t425t4hi7qbmsip2
2012-12-19 00:20:01 +01:00
Fabien Pinckaers f542bc2111 [MERGE] fix access rights stock user
bzr revid: fp@openerp.com-20121021202555-hxbi9u4vxudtaxjj
2012-10-21 22:25:55 +02:00
ajay javiya (OpenERP) 86bbcadff6 [IMP]:Inherit warehouse user inherit from group employee
bzr revid: aja@tinyerp.com-20121019071912-gt9k5v6vh64quz5t
2012-10-19 12:49:12 +05:30
Alexis de Lattre 5101771cd9 Harmonize the noupdate flag on security XML files :
- ir.rule objects are noupdate="1"
- all other objects are noupdate="0"

bzr revid: alexis@via.ecp.fr-20120713170838-pjsysliyt6twazrc
2012-07-13 19:08:38 +02:00
Raphael Collet e64d8c2d89 [IMP] stock: fix English in usage of 'serial numbers'
bzr revid: rco@openerp.com-20120509132401-fzbtrvorg7sd7vuc
2012-05-09 15:24:01 +02:00
Jagdish Panchal (Open ERP) 7584c565c2 [IMP] Improve code for blocking point in sale, purchase, warehouse, accounting, mrp, project
bzr revid: jap@tinyerp.com-20120430091138-n37zmlrl48qyx20r
2012-04-30 14:41:38 +05:30
Jagdish Panchal (Open ERP) 18653db6f2 [IMP] mrp,mrp_repair,stock: Rename fields Production Lot >> Serial Number and also rename the fields in stock congi wizard
bzr revid: jap@tinyerp.com-20120424130805-dbfdz0f4j440vy2h
2012-04-24 18:38:05 +05:30