Skip to content

Commit

Permalink
[IMP] crm_lead_firstname: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
celm1990 committed Jan 13, 2024
1 parent 4a60ab4 commit c8916de
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 66 deletions.
59 changes: 31 additions & 28 deletions crm_lead_firstname/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ Firstname and Lastname in Leads
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github
:target: https://github.com/OCA/crm/tree/16.0/crm_lead_firstname
:target: https://github.com/OCA/crm/tree/17.0/crm_lead_firstname
:alt: OCA/crm
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname
:target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_firstname
: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/crm&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of CRM leads to support split first and
last name fields for contacts and allow you to port that information to and
from partners.
Since leads are expected to create partners only when needed and after
information is correctly set up, in leads there is no inverse logic to
transform the old single name in the new split names automatically. The old
single name will simply be the firstname now.
This module extends the functionality of CRM leads to support split
first and last name fields for contacts and allow you to port that
information to and from partners. Since leads are expected to create
partners only when needed and after information is correctly set up, in
leads there is no inverse logic to transform the old single name in the
new split names automatically. The old single name will simply be the
firstname now.

**Table of contents**

Expand All @@ -46,50 +46,53 @@ Installation

To install this module, you need to:

* Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo.
- Install
`OCA/partner-contact <https://github.com/OCA/partner-contact>`__
repo.

Usage
=====

To use this module, you need to:

* Go to *CRM > Leads > Leads > Create*.
* You have the new split fields *Firstname* and *Lastname*. Fill them.
* Press *Convert to Opportunity*.
* In *Related Customer* choose *Create a new customer*.
* Press *Create Opportunity*.
* In the new opportunity, go to *Followup* tab. There are the new fields too.
* If you go to the partner you just created, you will see that its first and
last names match those in the lead.
- Go to *CRM > Leads > Leads > Create*.
- You have the new split fields *Firstname* and *Lastname*. Fill them.
- Press *Convert to Opportunity*.
- In *Related Customer* choose *Create a new customer*.
- Press *Create Opportunity*.
- In the new opportunity, go to *Followup* tab. There are the new
fields too.
- If you go to the partner you just created, you will see that its
first and last names match those in the lead.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

* Rafael Blasco
* Jairo Llopis
* Raf Ven <raf.ven@dynapps.be>
* Nikos Tsirintanis <ntsirintanis@therp.nl>
- Rafael Blasco
- Jairo Llopis
- Raf Ven <raf.ven@dynapps.be>
- Nikos Tsirintanis <ntsirintanis@therp.nl>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -101,6 +104,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/crm <https://github.com/OCA/crm/tree/16.0/crm_lead_firstname>`_ project on GitHub.
This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/17.0/crm_lead_firstname>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions crm_lead_firstname/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions crm_lead_firstname/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Rafael Blasco
- Jairo Llopis
- Raf Ven \<<raf.ven@dynapps.be>\>
- Nikos Tsirintanis \<<ntsirintanis@therp.nl>\>
4 changes: 0 additions & 4 deletions crm_lead_firstname/readme/CONTRIBUTORS.rst

This file was deleted.

7 changes: 7 additions & 0 deletions crm_lead_firstname/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module extends the functionality of CRM leads to support split
first and last name fields for contacts and allow you to port that
information to and from partners. Since leads are expected to create
partners only when needed and after information is correctly set up, in
leads there is no inverse logic to transform the old single name in the
new split names automatically. The old single name will simply be the
firstname now.
7 changes: 0 additions & 7 deletions crm_lead_firstname/readme/DESCRIPTION.rst

This file was deleted.

4 changes: 4 additions & 0 deletions crm_lead_firstname/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To install this module, you need to:

- Install [OCA/partner-contact](https://github.com/OCA/partner-contact)
repo.
3 changes: 0 additions & 3 deletions crm_lead_firstname/readme/INSTALL.rst

This file was deleted.

11 changes: 11 additions & 0 deletions crm_lead_firstname/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To use this module, you need to:

- Go to *CRM \> Leads \> Leads \> Create*.
- You have the new split fields *Firstname* and *Lastname*. Fill them.
- Press *Convert to Opportunity*.
- In *Related Customer* choose *Create a new customer*.
- Press *Create Opportunity*.
- In the new opportunity, go to *Followup* tab. There are the new fields
too.
- If you go to the partner you just created, you will see that its first
and last names match those in the lead.
10 changes: 0 additions & 10 deletions crm_lead_firstname/readme/USAGE.rst

This file was deleted.

31 changes: 17 additions & 14 deletions crm_lead_firstname/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,14 @@ <h1 class="title">Firstname and Lastname in Leads</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d89299b802331ab36ebfb460f5956c82da92a8f9dc525a3a1e864dc20be898bb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of CRM leads to support split first and
last name fields for contacts and allow you to port that information to and
from partners.
Since leads are expected to create partners only when needed and after
information is correctly set up, in leads there is no inverse logic to
transform the old single name in the new split names automatically. The old
single name will simply be the firstname now.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/17.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of CRM leads to support split
first and last name fields for contacts and allow you to port that
information to and from partners. Since leads are expected to create
partners only when needed and after information is correctly set up, in
leads there is no inverse logic to transform the old single name in the
new split names automatically. The old single name will simply be the
firstname now.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -395,7 +395,9 @@ <h1 class="title">Firstname and Lastname in Leads</h1>
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p>To install this module, you need to:</p>
<ul class="simple">
<li>Install <a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> repo.</li>
<li>Install
<a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a>
repo.</li>
</ul>
</div>
<div class="section" id="usage">
Expand All @@ -407,17 +409,18 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<li>Press <em>Convert to Opportunity</em>.</li>
<li>In <em>Related Customer</em> choose <em>Create a new customer</em>.</li>
<li>Press <em>Create Opportunity</em>.</li>
<li>In the new opportunity, go to <em>Followup</em> tab. There are the new fields too.</li>
<li>If you go to the partner you just created, you will see that its first and
last names match those in the lead.</li>
<li>In the new opportunity, go to <em>Followup</em> tab. There are the new
fields too.</li>
<li>If you go to the partner you just created, you will see that its
first and last names match those in the lead.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -444,7 +447,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/17.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit c8916de

Please sign in to comment.