diff --git a/contract/README.rst b/contract/README.rst index 0630d36c50..126e3b3fd5 100644 --- a/contract/README.rst +++ b/contract/README.rst @@ -17,13 +17,13 @@ Recurring - Contracts Management :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github - :target: https://github.com/OCA/contract/tree/17.0/contract + :target: https://github.com/OCA/contract/tree/18.0/contract :alt: OCA/contract .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract + :target: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -93,9 +93,9 @@ Usage |image2| -.. |image| image:: https://raw.githubusercontent.com/OCA/contract/17.0/contract/static/src/screenshots/portal-my.png -.. |image1| image:: https://raw.githubusercontent.com/OCA/contract/17.0/contract/static/src/screenshots/portal-list.png -.. |image2| image:: https://raw.githubusercontent.com/OCA/contract/17.0/contract/static/src/screenshots/portal-detail.png +.. |image| image:: https://raw.githubusercontent.com/OCA/contract/18.0/contract/static/src/screenshots/portal-my.png +.. |image1| image:: https://raw.githubusercontent.com/OCA/contract/18.0/contract/static/src/screenshots/portal-list.png +.. |image2| image:: https://raw.githubusercontent.com/OCA/contract/18.0/contract/static/src/screenshots/portal-detail.png Known issues / Roadmap ====================== @@ -109,7 +109,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -166,6 +166,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/contract `_ project on GitHub. +This module is part of the `OCA/contract `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 28b4634a38..82ac23f6bd 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "17.0.1.1.1", + "version": "18.0.1.0.0", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/contract/controllers/main.py b/contract/controllers/main.py index e588bd02fe..ee61d576bf 100644 --- a/contract/controllers/main.py +++ b/contract/controllers/main.py @@ -16,7 +16,7 @@ def _prepare_home_portal_values(self, counters): contract_model = request.env["contract.contract"] contract_count = ( contract_model.search_count([]) - if contract_model.check_access_rights("read", raise_exception=False) + if contract_model.check_access("read") else 0 ) values["contract_count"] = contract_count @@ -46,7 +46,7 @@ def portal_my_contracts( values = self._prepare_portal_layout_values() contract_obj = request.env["contract.contract"] # Avoid error if the user does not have access. - if not contract_obj.check_access_rights("read", raise_exception=False): + if not contract_obj.check_access("read"): return request.redirect("/my") domain = self._get_filter_domain(kw) searchbar_sortings = { diff --git a/contract/data/contract_cron.xml b/contract/data/contract_cron.xml index 379e7a0a26..524e1e5c33 100644 --- a/contract/data/contract_cron.xml +++ b/contract/data/contract_cron.xml @@ -8,7 +8,5 @@ 1 days - -1 - diff --git a/contract/data/contract_renew_cron.xml b/contract/data/contract_renew_cron.xml index 1a5b570250..aea0e67fb7 100644 --- a/contract/data/contract_renew_cron.xml +++ b/contract/data/contract_renew_cron.xml @@ -8,7 +8,5 @@ 1 days - -1 - diff --git a/contract/models/contract.py b/contract/models/contract.py index 7208e276b4..7a61159ed0 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -298,12 +298,12 @@ def action_show_invoices(self): "type": "ir.actions.act_window", "name": "Invoices", "res_model": "account.move", - "view_mode": "tree,kanban,form,calendar,pivot,graph,activity", + "view_mode": "list,kanban,form,calendar,pivot,graph,activity", "domain": [("id", "in", self._get_related_invoices().ids)], "context": ctx, } if tree_view and form_view: - action["views"] = [(tree_view.id, "tree"), (form_view.id, "form")] + action["views"] = [(tree_view.id, "list"), (form_view.id, "form")] return action @api.depends("contract_line_ids.date_end") diff --git a/contract/report/report_contract.xml b/contract/report/report_contract.xml index 4eed574b86..8860ff3260 100644 --- a/contract/report/report_contract.xml +++ b/contract/report/report_contract.xml @@ -14,7 +14,7 @@

VAT:

-
+
Responsible: diff --git a/contract/static/description/index.html b/contract/static/description/index.html index 31daf98b90..b0b4da463a 100644 --- a/contract/static/description/index.html +++ b/contract/static/description/index.html @@ -369,7 +369,7 @@

Recurring - Contracts Management

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d03061fa09dd38d53cbaf6f7ca79de5ff114d100162c7f7646d6a6f301ad3941 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

+

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

This module enables contracts management with recurring invoicing functions. Also you can print and send by email contract report.

It works for customer contract and supplier contracts.

@@ -435,9 +435,9 @@

Usage

  • Contracts appear in portal to following users in every contract:
-

image

-

image1

-

image2

+

image

+

image1

+

image2

Known issues / Roadmap

@@ -451,7 +451,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -511,7 +511,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/contract project on GitHub.

+

This module is part of the OCA/contract project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/contract/views/contract.xml b/contract/views/contract.xml index eae34394ee..6eaf741c1b 100644 --- a/contract/views/contract.xml +++ b/contract/views/contract.xml @@ -17,11 +17,8 @@

This contract was terminated for the reason - - + + on . @@ -183,7 +180,7 @@ widget="section_and_note_one2many" context="{'default_contract_type': contract_type, 'default_recurring_rule_type': recurring_rule_type, 'default_recurring_invoicing_type': recurring_invoicing_type, 'default_recurring_interval': recurring_interval, 'default_date_start': date_start, 'default_recurring_next_date': recurring_next_date}" > - - + - @@ -426,17 +423,17 @@ groups="base.group_no_one" invisible="not is_auto_renew" /> - + - + - + @@ -482,11 +479,7 @@ -

- - - -
+ @@ -530,10 +523,10 @@ - contract.contract tree view (in contract) + contract.contract list view (in contract) contract.contract - + @@ -545,7 +538,7 @@ /> - + @@ -611,7 +604,7 @@ Customer Contracts contract.contract - tree,form + list,form [('contract_type', '=', 'sale')] {'is_contract':1, @@ -627,7 +620,7 @@ - tree + list @@ -647,7 +640,7 @@ Supplier Contracts contract.contract - tree,form + list,form [('contract_type', '=', 'purchase')] {'is_contract':1, @@ -663,7 +656,7 @@ - tree + list diff --git a/contract/views/contract_line.xml b/contract/views/contract_line.xml index 51deb9f675..0cf53bb9b9 100644 --- a/contract/views/contract_line.xml +++ b/contract/views/contract_line.xml @@ -85,10 +85,10 @@ - contract.line tree view (in contract) + contract.line list view (in contract) contract.line - @@ -166,12 +166,12 @@ groups="base.group_no_one" invisible="not is_auto_renew" /> - + - contract.line supplier tree view (in contract) + contract.line supplier list view (in contract) contract.line primary diff --git a/contract/views/contract_tag.xml b/contract/views/contract_tag.xml index b29f3f6298..0148f75371 100644 --- a/contract/views/contract_tag.xml +++ b/contract/views/contract_tag.xml @@ -21,20 +21,20 @@ contract.tag - + - + Contract Tags contract.tag - tree,form + list,form Contract Tag diff --git a/contract/views/contract_template.xml b/contract/views/contract_template.xml index 8e9bf94516..cd3212aeef 100644 --- a/contract/views/contract_template.xml +++ b/contract/views/contract_template.xml @@ -29,7 +29,7 @@ nolabel="1" colspan="2" > - + - +

#START#: Start date of the invoiced period

+ >#START#: Start date of the invoiced period

#END#: End date of the invoiced period

@@ -83,14 +83,14 @@
- contract.template tree view (in contract) + contract.template list view (in contract) contract.template - + - + @@ -125,7 +125,7 @@ Contract Templates contract.template - tree,form + list,form

diff --git a/contract/views/contract_terminate_reason.xml b/contract/views/contract_terminate_reason.xml index d148a96870..6f7e2972cb 100644 --- a/contract/views/contract_terminate_reason.xml +++ b/contract/views/contract_terminate_reason.xml @@ -18,16 +18,16 @@ contract.terminate.reason - + - + Contract Termination Reason contract.terminate.reason - tree,form + list,form Contract Termination Reason diff --git a/contract/wizards/contract_manually_create_invoice.py b/contract/wizards/contract_manually_create_invoice.py index 940cc922f3..592936373b 100644 --- a/contract/wizards/contract_manually_create_invoice.py +++ b/contract/wizards/contract_manually_create_invoice.py @@ -50,7 +50,7 @@ def action_show_contract_to_invoice(self): "name": _("Contracts to invoice"), "res_model": "contract.contract", "domain": [("id", "in", self.contract_to_invoice_ids.ids)], - "view_mode": "tree,form", + "view_mode": "list,form", "context": self.env.context, } @@ -81,6 +81,6 @@ def create_invoice(self): "name": _("Invoices"), "res_model": "account.move", "domain": [("id", "in", invoices.ids)], - "view_mode": "tree,form", + "view_mode": "list,form", "context": self.env.context, }