From c20f42c6a05d5819c06a12320ce0bf3854c2d0d2 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:16:59 +0200 Subject: [PATCH 1/7] [FIX] emc: account in demo data already exists --- easy_my_coop/demo/coop.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy_my_coop/demo/coop.xml b/easy_my_coop/demo/coop.xml index f53ab7d..d9e5a96 100644 --- a/easy_my_coop/demo/coop.xml +++ b/easy_my_coop/demo/coop.xml @@ -34,9 +34,9 @@ - BE68539007547034 - Bank - + FR7630001007941234567890185 + Bank + From b40ba09f0e44b108dd1e5c5a2e3b0347ea0a6ade Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:17:49 +0200 Subject: [PATCH 2/7] [ADD] emc_loan: set Loan label on res partner --- easy_my_coop_loan/models/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop_loan/models/partner.py b/easy_my_coop_loan/models/partner.py index 5b6900d..7b6a2f2 100644 --- a/easy_my_coop_loan/models/partner.py +++ b/easy_my_coop_loan/models/partner.py @@ -6,4 +6,4 @@ class ResPartner(models.Model): loan_line_ids = fields.One2many('loan.issue.line', 'partner_id', - string="Name") + string="Loans") From 51dcfccac544ffd4b82e4d8f5d08ab726941b974 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:18:24 +0200 Subject: [PATCH 3/7] [IMP] emc_loan: _description on models --- easy_my_coop_loan/models/interest_line.py | 1 + easy_my_coop_loan/models/loan.py | 4 +++- easy_my_coop_loan/models/loan_issue_line.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/easy_my_coop_loan/models/interest_line.py b/easy_my_coop_loan/models/interest_line.py index 3e12e35..c934283 100644 --- a/easy_my_coop_loan/models/interest_line.py +++ b/easy_my_coop_loan/models/interest_line.py @@ -3,6 +3,7 @@ from odoo import fields, models class LoanInterestLine(models.Model): _name = 'loan.interest.line' + _description = "Loan Interest Line" name = fields.Integer(string="Year", required=True) diff --git a/easy_my_coop_loan/models/loan.py b/easy_my_coop_loan/models/loan.py index b762fc5..f2e44f2 100644 --- a/easy_my_coop_loan/models/loan.py +++ b/easy_my_coop_loan/models/loan.py @@ -7,6 +7,7 @@ _logger = logging.getLogger(__name__) class LoanTerm(models.Model): _name = 'loan.term' + _description = 'Loan Term' name = fields.Char(string="Name", required=True) @@ -16,6 +17,7 @@ class LoanTerm(models.Model): class LoanIssue(models.Model): _name = 'loan.issue' + _description = 'Loan Issue' @api.multi def _compute_subscribed_amount(self): @@ -47,7 +49,7 @@ class LoanIssue(models.Model): string="Maximum amount per subscription", currency_field='company_currency_id') subscribed_amount = fields.Monetary(string="Subscribed amount", - compute="_compute_subscribed_amount", + compute="_compute_subscribed_amount", currency_field='company_currency_id') interest_payment = fields.Selection([('end', 'End'), ('yearly', 'Yearly')], diff --git a/easy_my_coop_loan/models/loan_issue_line.py b/easy_my_coop_loan/models/loan_issue_line.py index f23193c..538d075 100644 --- a/easy_my_coop_loan/models/loan_issue_line.py +++ b/easy_my_coop_loan/models/loan_issue_line.py @@ -6,6 +6,7 @@ from odoo import api, fields, models class LoanIssueLine(models.Model): _name = 'loan.issue.line' + _description = 'Loan Issue Line' _order = 'date desc, id' @api.multi From 78f52338cf2dbb59e043e24a3fd06e30673a53e9 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 16:25:43 +0200 Subject: [PATCH 4/7] [REF] emc: move menus to menus.xml --- easy_my_coop/__manifest__.py | 1 + easy_my_coop/views/account_invoice_view.xml | 4 +-- .../views/cooperator_register_view.xml | 3 +-- easy_my_coop/views/email_template_view.xml | 4 +-- easy_my_coop/views/menus.xml | 27 +++++++++++++++++++ easy_my_coop/views/operation_request_view.xml | 3 +-- easy_my_coop/views/product_view.xml | 3 +-- easy_my_coop/views/res_partner_view.xml | 14 +++------- .../views/subscription_request_view.xml | 10 +------ easy_my_coop_loan/__manifest__.py | 3 ++- easy_my_coop_loan/views/loan_view.xml | 5 +--- easy_my_coop_loan/views/term_view.xml | 3 +-- 12 files changed, 41 insertions(+), 39 deletions(-) create mode 100644 easy_my_coop/views/menus.xml diff --git a/easy_my_coop/__manifest__.py b/easy_my_coop/__manifest__.py index aed426e..77751de 100644 --- a/easy_my_coop/__manifest__.py +++ b/easy_my_coop/__manifest__.py @@ -43,6 +43,7 @@ 'views/product_view.xml', 'views/res_company_view.xml', 'views/account_journal_view.xml', + 'views/menus.xml', 'report/easy_my_coop_report.xml', 'report/layout.xml', 'report/cooperator_invoice_G002.xml', diff --git a/easy_my_coop/views/account_invoice_view.xml b/easy_my_coop/views/account_invoice_view.xml index 80c76c5..ec34b8b 100644 --- a/easy_my_coop/views/account_invoice_view.xml +++ b/easy_my_coop/views/account_invoice_view.xml @@ -42,8 +42,6 @@ - - Customer Invoices account.invoice @@ -72,4 +70,4 @@ {'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'} - \ No newline at end of file + diff --git a/easy_my_coop/views/cooperator_register_view.xml b/easy_my_coop/views/cooperator_register_view.xml index 523da7d..148c29c 100644 --- a/easy_my_coop/views/cooperator_register_view.xml +++ b/easy_my_coop/views/cooperator_register_view.xml @@ -74,5 +74,4 @@ - - \ No newline at end of file + diff --git a/easy_my_coop/views/email_template_view.xml b/easy_my_coop/views/email_template_view.xml index a98d189..3b54efb 100644 --- a/easy_my_coop/views/email_template_view.xml +++ b/easy_my_coop/views/email_template_view.xml @@ -1,6 +1,5 @@ - @@ -12,5 +11,4 @@ - - + diff --git a/easy_my_coop/views/menus.xml b/easy_my_coop/views/menus.xml new file mode 100644 index 0000000..be9adb2 --- /dev/null +++ b/easy_my_coop/views/menus.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_my_coop/views/operation_request_view.xml b/easy_my_coop/views/operation_request_view.xml index 4b7ff1f..ecf56b2 100644 --- a/easy_my_coop/views/operation_request_view.xml +++ b/easy_my_coop/views/operation_request_view.xml @@ -103,5 +103,4 @@ - - \ No newline at end of file + diff --git a/easy_my_coop/views/product_view.xml b/easy_my_coop/views/product_view.xml index 68ddfda..4c23761 100644 --- a/easy_my_coop/views/product_view.xml +++ b/easy_my_coop/views/product_view.xml @@ -45,8 +45,7 @@ - - + diff --git a/easy_my_coop/views/res_partner_view.xml b/easy_my_coop/views/res_partner_view.xml index dbb4d07..cce636d 100644 --- a/easy_my_coop/views/res_partner_view.xml +++ b/easy_my_coop/views/res_partner_view.xml @@ -92,8 +92,6 @@ - - Cooperator ir.actions.act_window @@ -113,9 +111,7 @@

- - - + Cooperator candidates ir.actions.act_window @@ -135,9 +131,7 @@

- - - + Company representative ir.actions.act_window @@ -157,8 +151,6 @@ - - res.partner.remove.follower.inherit res.partner @@ -168,4 +160,4 @@ - + diff --git a/easy_my_coop/views/subscription_request_view.xml b/easy_my_coop/views/subscription_request_view.xml index 421f097..035606c 100644 --- a/easy_my_coop/views/subscription_request_view.xml +++ b/easy_my_coop/views/subscription_request_view.xml @@ -1,8 +1,5 @@ - - - subscription.request.tree @@ -129,8 +126,6 @@ - - subscription.request.tree subscription.request @@ -166,8 +161,6 @@ - - share.line.form share.line @@ -234,5 +227,4 @@ form - - \ No newline at end of file + diff --git a/easy_my_coop_loan/__manifest__.py b/easy_my_coop_loan/__manifest__.py index d115bb0..92dc59e 100644 --- a/easy_my_coop_loan/__manifest__.py +++ b/easy_my_coop_loan/__manifest__.py @@ -21,7 +21,8 @@ 'views/term_view.xml', 'views/loan_view.xml', 'views/partner_view.xml', - 'data/mail_template_data.xml', + 'views/menus.xml', + 'data/mail_template_data.xml', ], 'installable': True, } diff --git a/easy_my_coop_loan/views/loan_view.xml b/easy_my_coop_loan/views/loan_view.xml index defe3d7..f807141 100644 --- a/easy_my_coop_loan/views/loan_view.xml +++ b/easy_my_coop_loan/views/loan_view.xml @@ -1,6 +1,5 @@ - loan.issue.tree loan.issue @@ -106,8 +105,6 @@ tree,form - - loan.issue.line.form loan.issue.line @@ -160,4 +157,4 @@ - \ No newline at end of file + diff --git a/easy_my_coop_loan/views/term_view.xml b/easy_my_coop_loan/views/term_view.xml index ef41952..2352fd4 100644 --- a/easy_my_coop_loan/views/term_view.xml +++ b/easy_my_coop_loan/views/term_view.xml @@ -36,5 +36,4 @@ tree,form - - \ No newline at end of file + From c68de14356aa789fe159db08da0c206bee5e176d Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 18:14:46 +0200 Subject: [PATCH 5/7] [IMP] emc: reorder menus --- easy_my_coop/views/menus.xml | 30 +++++++++++++++--------------- easy_my_coop_loan/views/menus.xml | 11 +++++++++++ 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 easy_my_coop_loan/views/menus.xml diff --git a/easy_my_coop/views/menus.xml b/easy_my_coop/views/menus.xml index be9adb2..2103547 100644 --- a/easy_my_coop/views/menus.xml +++ b/easy_my_coop/views/menus.xml @@ -6,22 +6,22 @@ - - - - - + + + + + + + + - - - - - - - + + + - + - - + + + diff --git a/easy_my_coop_loan/views/menus.xml b/easy_my_coop_loan/views/menus.xml new file mode 100644 index 0000000..10cdd81 --- /dev/null +++ b/easy_my_coop_loan/views/menus.xml @@ -0,0 +1,11 @@ + + + + + + + + From 078dd7ebcf2962559b781afbd1b05c1dece090c5 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Wed, 16 Oct 2019 10:40:35 +0200 Subject: [PATCH 6/7] [IMP] emc: merge cooperator and company subscription request menus --- easy_my_coop/views/menus.xml | 1 - .../views/subscription_request_view.xml | 48 +++---------------- 2 files changed, 7 insertions(+), 42 deletions(-) diff --git a/easy_my_coop/views/menus.xml b/easy_my_coop/views/menus.xml index 2103547..4932b6c 100644 --- a/easy_my_coop/views/menus.xml +++ b/easy_my_coop/views/menus.xml @@ -8,7 +8,6 @@ - diff --git a/easy_my_coop/views/subscription_request_view.xml b/easy_my_coop/views/subscription_request_view.xml index 035606c..b2929b6 100644 --- a/easy_my_coop/views/subscription_request_view.xml +++ b/easy_my_coop/views/subscription_request_view.xml @@ -5,8 +5,9 @@ subscription.request.tree subscription.request - + + @@ -104,10 +105,10 @@ - - + + - + @@ -117,50 +118,15 @@ - Cooperator Subscription + Subscriptions subscription.request form - [('is_company','=',False),('is_operation','=',False)] + [('is_operation','=',False)] {'default_source':'manual'} - - subscription.request.tree - subscription.request - - - - - - - - - - - - - - - -