Skip to content

Commit

Permalink
[MIG] l10n_fr_siret_lookup: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Luis-Mora committed Apr 25, 2024
1 parent cf72108 commit 15d1dd3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions l10n_fr_siret_lookup/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Contributors
- Benjamin Rivier <benjamin-filament> (https://le-filament.com)
- Remi Cazenave <remi-filament> (https://le-filament.com)
- Alexis de Lattre <[email protected]>
- `Binhex <https://binhex.cloud//com>`__:

- David Luis Mora <[email protected]>

Other credits
-------------
Expand Down
2 changes: 1 addition & 1 deletion l10n_fr_siret_lookup/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "SIRET Lookup",
"summary": "Lookup partner via an API on the SIRENE directory",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Partner",
"website": "https://github.com/OCA/l10n-france",
"author": "Le Filament, Akretion, Odoo Community Association (OCA)",
Expand Down
2 changes: 2 additions & 0 deletions l10n_fr_siret_lookup/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Benjamin Rivier \<benjamin-filament\> (<https://le-filament.com>)
- Remi Cazenave \<remi-filament\> (<https://le-filament.com>)
- Alexis de Lattre \<<[email protected]>\>
- [Binhex](https://binhex.cloud//com):
- David Luis Mora \<<[email protected]>\>
4 changes: 4 additions & 0 deletions l10n_fr_siret_lookup/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Benjamin Rivier &lt;benjamin-filament&gt; (<a class="reference external" href="https://le-filament.com">https://le-filament.com</a>)</li>
<li>Remi Cazenave &lt;remi-filament&gt; (<a class="reference external" href="https://le-filament.com">https://le-filament.com</a>)</li>
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
<li><a class="reference external" href="https://binhex.cloud//com">Binhex</a>:<ul>
<li>David Luis Mora &lt;<a class="reference external" href="mailto:d.luis&#64;binhex.cloud">d.luis&#64;binhex.cloud</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="other-credits">
Expand Down
6 changes: 2 additions & 4 deletions l10n_fr_siret_lookup/wizard/fr_siret_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ class FrSiretLookup(models.TransientModel):
_description = "Get values from companies"

name = fields.Char(string="Name to Search", required=True)
line_ids = fields.One2many(
"fr.siret.lookup.line", "wizard_id", string="Results", readonly=True
)
partner_id = fields.Many2one("res.partner", readonly=True, required=True)
line_ids = fields.One2many("fr.siret.lookup.line", "wizard_id", string="Results")
partner_id = fields.Many2one("res.partner", required=True)

@api.model
def default_get(self, fields_list):
Expand Down
4 changes: 2 additions & 2 deletions l10n_fr_siret_lookup/wizard/fr_siret_lookup_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="arch" type="xml">
<form string="SIREN Lookup via opendatasoft.com">
<group name="company">
<field name="partner_id" />
<field name="partner_id" readonly="True" />
<field name="name" />
<button
class="btn-primary"
Expand All @@ -16,7 +16,7 @@
colspan="2"
/>
</group><group string="Search Results" name="lines">
<field name="line_ids" nolabel="1" colspan="2">
<field name="line_ids" nolabel="1" colspan="2" readonly="True">
<tree>
<field name="name" />
<field name="street" optional="show" />
Expand Down

0 comments on commit 15d1dd3

Please sign in to comment.