summaryrefslogtreecommitdiff
path: root/addons/mrp/models/__init__.py
AgeCommit message (Collapse)Author
2020-06-15[REF] mrp: workorders for enterpriseArnold Moyaux
Removed abstract workorder Removed the integration of expiry wizard in tablet view since it should be moved in enterprise in the tablet view implementation (not possible to set consumed lot on workorders on community anymore) Refactor _set_quantity_done to use ORM command in order to not return a dict with vals to_create/to_write task-2241471
2020-04-22[IMP] mrp, stock: default route on orderpointsArnold Moyaux
Set a default route on orderpoint created by the replenishment report. First it select the first route on the product if it exists (it's uselss since it's a preferred route on the report but it's used for clarity). If the product has no route then it tries to guess it with vendor pricelist or BoM on the product. Task: 2161378
2019-02-01[IMP] mrp: add production linesWilliam Henrotin
To record a production via a manufacturing order, the user can either use the produce wizard or the workorders views. Those two objects was technically different but act more or less the same. This commit aims to merge the similar behaviors in common code We introduce two new abstract models : 1. Abstract workorder to share workorders and the produce wizard 2. Abstract workorder lines to share active_move_line on workorder and product_produce_line on the wizard. Those abstract line keep the information about the quantities and lot number to put on component move lines and finished product move lines Task : 1891864
2018-09-10[MERGE] forward port branch saas-11.4 up to 1199451606cChristophe Simonis
2018-09-10Revert "[IMP] *: Define groups on res.users models"Yannick Tivisse
This reverts commit 99f497b390e680629dce3a7e2e282ada74ee9884.
2018-08-10[MERGE] forward port branch saas-11.4 up to edd586002e9Christophe Simonis
2018-08-09[FIX] mrp: remove mrp.messageWilliam Henrotin
The commit cfbfaf38be283e68c5a923ff2aafd1293135c4f1 remove the views and menus related to mrp.message. This commit complete it by removing the model, all the related fields and the access rules
2018-07-19[MOV] stock, mrp, purchase_stock: rename procurement in stock_ruleArnold Moyaux
Procurement rule do not reflect reality anymore since it is common for push and pull rules. We decide to rename it stock rule instead.
2018-04-26[IMP] *: Define groups on res.users modelsYannick Tivisse
The reified view on the res users will be dropped in the following commit. The previous commit adds support to define each group as a computed field on the res users. This commit defines: - A boolean field for each 'isolated' res.group, i.e. a group in the hidden category. - A selection field for each 'Application' res.group, i.e. a group in a application category. Example: - The group to manage pricelist in sales becomes a boolean field - The groups project user/manager become a selection field
2017-09-01[IMP] res_config: Update file names, xmlids, class names according to guidelinesYannick Tivisse
Now that we only have one model (res.config.settings). Uniformize everything according to the guidelines.
2017-08-30[IMP] mrp: suggest correct serial number in next work orderJoren Van Onder
When producing multiple products tracked by serial number only the serial number was only set for the first one in every work order. This makes it so that when you create SN1, SN2 and SN3 in the first work order they show up as default in the following work orders.
2017-08-04[REF] stock, mrp, mrp_repair: implement mrp and mrp_repair traceabilityPierre Masereel
The traceability report didn't take yet in consideration the consumed and produced lines generated by manufacturing orders and repair orders.
2017-07-14[REF] mrp: adapt to new stock implementationJosse Colpaert
2017-05-05[REF] mrp: ir.attachment handlingamoyaux
Rev[0] and [1] introduced a versioning on product's attachments through an ECO creation or through a stat button on the product form view. These revisions added some fields on the ir attachment model: a many2one and a boolean field with a default value, and due to concerns over the migration of databases with a lot of ir.attachment records (like ours), we adapted the implentation in rev[2][3]. We deemed reasonnable to remove the "active" field, as adding an active field not in the “base” module of the model could impact other modules that did not took into consideration this field. Also, this field only had a meaning when mrp_plm is installed, and ir.attachment is used in various places in contexts across Odoo. So, rev [2] and [3] changed the implementation of the versioning to only link ir.attachment to an ECO record, forgetting the functionality of archiving directly through the product form view stat button (without an ECO). To introduce back this behavior, we chose to create a model to handle the mrp attachments (named “mrp.document”) which inheritS ir.attachment. This way, we keep the behavior of ir.attachment and we do not alter the original table. This commit moved the priority field already set on ir.attachment to mrp.document and adds the active field that will be used in mrp_plm to archive/versioning purposes. linked commit: [0] https://github.com/odoo/enterprise/commit/99138b6711760a7562cb9559663aef6a4208a48f [1] https://github.com/odoo/enterprise/commit/4f88eb409776c1c4bc8f8d71d845b913c3604a54 [2] https://github.com/odoo/enterprise/commit/7e1c73cfc84cd23b6ba87dab713c3078de16568d [3] https://github.com/odoo/enterprise/commit/ee1c4b29b8872dac9c525fcc6acdf80b5ef73131
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2016-07-04[REF][NEWPIE] mrp: new MRPJosse Colpaert
This commit contains the core of the new MRP. It contains a whole refactoring of the MRP application, with improved and new features, written in new API. Among other here are the main manufacturing workflow improvements : - Picking type not only for pickings but also for manufacturing orders - Properties replaced by picking type - BoM can only be produced with its routing (no other) - Either produce without routing with only production orders, or produce with routing - By default, there is an order in the work orders (serially), but you can override it to be able to work in parallel - Time clocking on work orders and block time on work centers with reporting on OEE, performance, losses, ... - Real-time adaptation of timings on operations - Lots/serial numbers can be inputted like in the pickings on manufacturing orders. It is also possible to input them in the work orders. - Material availability independent of production order state (possibility to start production when only part of it is there) - Work sheets on work orders - Put messages on work orders to make your workers pay attention to something - Full traceability link to see for each produced piece of stock, the consumed pieces, ... - Separate scrap object (a scrap is not done based on an original move anymore) - Separate unbuild system (if you want to unbuild into its original components) Thanks to all people that helped during this development, notably but not limited to Chirag A Dodiya (cod@odoo.com), Gaurav Panchal (gan@odoo.com), Jignesh Rathod (jir@odoo.com), Mansi Trivedi (mtr@odoo.com), Pariket Trivedi (ptr@odoo.com).
2016-07-04[MOV] mrp: move and splitDhaval Panchal
Split files and move them according to the new API guidelines. Containing - mrp splitted into its main models and files - stock code moved into its own models and files - various renaming