Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
379 changes: 261 additions & 118 deletions construction/data/knowledge_article.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions construction/data/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<field name="group_analytic_accounting" eval="1"/>
<field name="group_uom" eval="1"/>
<field name="group_sale_order_template" eval="1"/>
<field name="module_stock_dropshipping" eval="True"/>
</record>

<function name="execute" model="res.config.settings">
Expand Down
7 changes: 6 additions & 1 deletion construction_developer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
'name': 'Construction Developer',
'version': '1.12',
'version': '1.13',
'category': 'Construction',
'depends': [
'base_industry_data',
'construction',
'stock_dropshipping',
'web_studio',
],
'data': [
'data/res_groups.xml',
'data/res_config_settings.xml',
'data/stock_location.xml',
'data/ir_model.xml',
'data/ir_model_access.xml',
'data/ir_model_fields.xml',
Expand All @@ -30,6 +33,7 @@
'data/sale_order_template.xml',
'data/sale_order_template_line.xml',
'data/x_remark_category.xml',
'data/res_config_settings_post.xml',
],
'demo': [
'demo/res_partner.xml',
Expand All @@ -41,6 +45,7 @@
'demo/x_remark_stage.xml',
'demo/x_remark.xml',
'demo/sale_order_post.xml',
'demo/purchase_order.xml',
'demo/ir_attachment.xml',
],
'assets': {
Expand Down
22 changes: 22 additions & 0 deletions construction_developer/data/base_automation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
<field name="name">Construction Developer: Initialize Sales Order Line Sequence on Sales Order create or write</field>
<field name="trigger_field_ids" eval="[(6, 0, [ref('sale.field_sale_order__order_line')])]"/>
</record>
<record id="automation_on_so_confirm" model="base.automation">
<field name="model_id" ref="sale.model_sale_order"/>
<field name="action_server_ids" eval="[(6, 0, [ref('action_create_delivery_location_on_sales_order_confirm')])]"/>
<field name="trigger">on_create_or_write</field>
<field name="name">Construction Developer: On Sales Order confirm</field>
<field name="trigger_field_ids" eval="[(6, 0, [ref('sale.field_sale_order__state')])]"/>
</record>
<record id="automation_on_so_analytic_account_change" model="base.automation">
<field name="model_id" ref="sale.model_sale_order"/>
<field name="action_server_ids" eval="[(6, 0, [ref('action_link_orphan_po_account')])]"/>
<field name="trigger">on_create_or_write</field>
<field name="name">Construction Developer: On Sales Order confirm</field>
<field name="trigger_field_ids" eval="[(6, 0, [ref('sale_project.field_sale_order__project_id'), ref('sale_project.field_sale_order__project_ids')])]"/>
</record>
<record id="automation_update_progress_increment_on_change" model="base.automation">
<field name="name">Construction Developer: Update Sale Order Line Progress Increment on Quantity Increment change</field>
<field name="model_id" ref="sale.model_sale_order_line"/>
Expand Down Expand Up @@ -122,6 +136,14 @@
<field name="trigger_field_ids" eval="[(6, 0, [ref('x_is_margin_fixed_field_x_work_item')])]"/>
<field name="filter_domain">[('x_is_margin_fixed', '=', False)]</field>
</record>
<record id="automation_on_stock_move_create_or_write" model="base.automation">
<field name="name">Construction Developer: On stock move create or write</field>
<field name="model_id" ref="stock.model_stock_move"/>
<field name="action_server_ids" eval="[(6, 0, [ref('action_check_stock_move_validity')])]"/>
<field name="trigger">on_create_or_write</field>
<field name="on_change_field_ids" eval="[(6, 0, [ref('stock.field_stock_move__product_id')])]"/>
<field name="filter_domain">[('picking_id', '!=', False)]</field>
</record>
<!--
this is needed to set a default stage based on the project's
-->
Expand Down
Loading