-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] repair, *_repair: Separate Repair from Sales/Invoicing scopes
Main changes include : - Separate Repair and Sales/Invoicing functionalities - Possible binding between a Sale Order and many Repair Orders - Specific 'repair.line' model is now replaced by a 'stock.move' inheritance - Added a new 'Repairs' Operation Type to warehouse(s) Task : 3046560 Enterprise : odoo/enterprise#36088 Upgrade : odoo/upgrade#4391 closes #106911 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
- Loading branch information
Showing
38 changed files
with
1,703 additions
and
1,570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_subcontracting_portal_repair_line,subcontracting.portal.repair_line,repair.model_repair_line,base.group_portal,1,0,0,0 | ||
access_subcontracting_portal_repair_move,subcontracting.portal.repair_move,repair.model_stock_move,base.group_portal,1,0,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo noupdate="1"> | ||
<!-- | ||
Given that data are loaded before update of warehouses through the post_init_hook, | ||
we manually create the 'Repairs' Operation Type in warehouse0 here such that it's available | ||
when the initialization of data triggers the default method of the required field 'picking_type_id'. | ||
--> | ||
|
||
<record id="picking_type_warehouse0_repair" model="stock.picking.type" forcecreate="0"> | ||
<field name="name">Repairs</field> | ||
<field name="code">repair_operation</field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="default_location_src_id" ref="stock.stock_location_stock"/> | ||
<field name="default_location_dest_id" model="stock.location" search="[('usage', '=', 'production'), ('company_id', '=', obj().env.ref('base.main_company').id)]"/> | ||
<field name="default_remove_location_dest_id" model="stock.location" search="[('scrap_location', '=', True), ('company_id', '=', obj().env.ref('base.main_company').id)]"/> | ||
<field name="default_recycle_location_dest_id" ref="stock.stock_location_stock"/> | ||
<field name="sequence_code">RO</field> | ||
<field name="warehouse_id" ref="stock.warehouse0"/> | ||
</record> | ||
|
||
<record id='stock.warehouse0' model='stock.warehouse'> | ||
<field name='repair_type_id' ref='repair.picking_type_warehouse0_repair'/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.