From a81eec159b86e4649884dbd9d42fa034195dda5c Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 10 Jan 2019 10:29:51 -0600 Subject: [PATCH] [IMP] agreement --- agreement/__manifest__.py | 1 + agreement/data/agreement_stage.xml | 2 +- agreement/data/agreement_type.xml | 16 ++++++++++++++++ agreement/models/res_config_settings.py | 4 ++++ agreement/views/agreement.xml | 5 +++-- agreement/views/res_config_settings.xml | 23 +++++++++++++++++++++++ 6 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 agreement/data/agreement_type.xml diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py index c0856d65..10a4f611 100644 --- a/agreement/__manifest__.py +++ b/agreement/__manifest__.py @@ -22,6 +22,7 @@ 'data/ir_sequence.xml', 'data/module_category.xml', 'data/agreement_stage.xml', + 'data/agreement_type.xml', 'security/res_groups.xml', 'security/ir.model.access.csv', 'report/agreement.xml', diff --git a/agreement/data/agreement_stage.xml b/agreement/data/agreement_stage.xml index 619aa1f7..cef2b25e 100644 --- a/agreement/data/agreement_stage.xml +++ b/agreement/data/agreement_stage.xml @@ -1,4 +1,4 @@ - + diff --git a/agreement/data/agreement_type.xml b/agreement/data/agreement_type.xml new file mode 100644 index 00000000..4cdf6761 --- /dev/null +++ b/agreement/data/agreement_type.xml @@ -0,0 +1,16 @@ + + + + + Agreement + + + + Contract + + + + Letter of Intent + + + diff --git a/agreement/models/res_config_settings.py b/agreement/models/res_config_settings.py index b81b2945..d572dcc4 100644 --- a/agreement/models/res_config_settings.py +++ b/agreement/models/res_config_settings.py @@ -17,6 +17,10 @@ class ResConfigSettings(models.TransientModel): string='Link your repair orders to an agreement.') module_agreement_rma = fields.Boolean( string='Link your RMAs to an agreement.') + module_agreement_sale = fields.Boolean( + string='Create an agreement when the sale order is confirmed.') + module_agreement_sale_subscription = fields.Boolean( + string='Link your subscriptions to an agreement.') module_agreement_stock = fields.Boolean( string='Link your pickings to an agreement.') module_fieldservice_agreement = fields.Boolean( diff --git a/agreement/views/agreement.xml b/agreement/views/agreement.xml index 68d68634..949048d7 100644 --- a/agreement/views/agreement.xml +++ b/agreement/views/agreement.xml @@ -121,8 +121,8 @@ - - + + @@ -388,6 +388,7 @@ Templates agreement [('is_template', '=', True)] + [('is_template', '=', True)] tree,kanban,form diff --git a/agreement/views/res_config_settings.xml b/agreement/views/res_config_settings.xml index 8770aaa6..c1f74323 100644 --- a/agreement/views/res_config_settings.xml +++ b/agreement/views/res_config_settings.xml @@ -34,6 +34,29 @@

Advanced Features

+
+
+ +
+
+
+
+
+
+ +
+
+
+