Skip to content

Commit

Permalink
Merge pull request #1340 from OCA/17.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/partner-contact (17.0)
  • Loading branch information
bt-admin authored Jan 8, 2025
2 parents 4b39bcb + 12cd22e commit 0ba1b69
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ addon | version | maintainers | summary
[partner_pricelist_search](partner_pricelist_search/) | 17.0.1.0.0 | | Partner pricelist search
[partner_property](partner_property/) | 17.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Partner Property
[partner_ref_unique](partner_ref_unique/) | 17.0.1.0.0 | | Add an unique constraint to partner ref field
[partner_second_lastname](partner_second_lastname/) | 17.0.1.0.1 | | Have split first and second lastnames
[partner_second_lastname](partner_second_lastname/) | 17.0.1.0.2 | | Have split first and second lastnames
[partner_stage](partner_stage/) | 17.0.1.0.0 | [![dreispt](https://github.com/dreispt.png?size=30px)](https://github.com/dreispt) | Add lifecycle Stages to Partners
[partner_stage_only_confirmed](partner_stage_only_confirmed/) | 17.0.1.0.0 | | Adds filters on form views to display only confirmed partners
[partner_tz](partner_tz/) | 17.0.1.0.0 | | Remove partner timezone default value and display on form
Expand Down
30 changes: 15 additions & 15 deletions partner_second_lastname/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Partner second last name
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bafdbdb615a90a20dddf767945091e7aa6a8703a4c66dc2375e8ddca40201095
!! source digest: sha256:04440c72cb5fd06d1eb9247a1964276894ec31e45577f0c6daaa1bbaed3d773b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -49,12 +49,12 @@ Configuration
You can configure some common name patterns for the inverse function in
Settings > Configuration > General settings:

- Lastname SecondLastname Firstname: For example 'Anderson Lavarge
Robert'
- Lastname SecondLastname, Firstname: For example 'Anderson Lavarge,
Robert'
- Firstname Lastname SecondLastname: For example 'Robert Anderson
Lavarge'
- Lastname SecondLastname Firstname: For example 'Anderson Lavarge
Robert'
- Lastname SecondLastname, Firstname: For example 'Anderson Lavarge,
Robert'
- Firstname Lastname SecondLastname: For example 'Robert Anderson
Lavarge'

After applying the changes, you can recalculate all partners name
clicking "Recalculate names" button. Note: This process could take so
Expand All @@ -70,9 +70,9 @@ Usage

To use this module, you need to:

- Edit any partner's form.
- Make sure the partner is not a company.
- Enter firstname and lastnames.
- Edit any partner's form.
- Make sure the partner is not a company.
- Enter firstname and lastnames.

If you directly enter the full name instead of entering the other fields
separately (maybe from other form), this module will try to guess the
Expand Down Expand Up @@ -103,11 +103,11 @@ Authors
Contributors
------------

- Jairo Llopis <[email protected]>.
- Antonio Espinosa.
- Pedro M. Baeza <[email protected]>.
- Nikul Chaudhary <[email protected]>
- Manuel Regidor <[email protected]>
- Jairo Llopis <[email protected]>.
- Antonio Espinosa.
- Pedro M. Baeza <[email protected]>.
- Nikul Chaudhary <[email protected]>
- Manuel Regidor <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion partner_second_lastname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Partner second last name",
"summary": "Have split first and second lastnames",
"version": "17.0.1.0.1",
"version": "17.0.1.0.2",
"license": "AGPL-3",
"website": "https://github.com/OCA/partner-contact",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion partner_second_lastname/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Partner second last name</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bafdbdb615a90a20dddf767945091e7aa6a8703a4c66dc2375e8ddca40201095
!! source digest: sha256:04440c72cb5fd06d1eb9247a1964276894ec31e45577f0c6daaa1bbaed3d773b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/partner-contact/tree/17.0/partner_second_lastname"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_second_lastname"><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/partner-contact&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 was written to extend the functionality of
Expand Down
2 changes: 1 addition & 1 deletion partner_second_lastname/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<field name="lastname" position="after">
<field
name="lastname2"
required="not lastname2 and not lastname and not is_company and type == 'contact'"
required="not firstname and not lastname and not is_company and type == 'contact'"
/>
</field>
</field>
Expand Down
2 changes: 1 addition & 1 deletion partner_second_lastname/views/res_user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<attribute name="required" add="(not lastname2)" separator=" and " />
</field>
<field name="lastname" position="after">
<field name="lastname2" required="not lastname2 and not lastname" />
<field name="lastname2" required="not firstname and not lastname" />
</field>
</field>
</record>
Expand Down

0 comments on commit 0ba1b69

Please sign in to comment.