Skip to content
Extraits de code Groupes Projets
Valider 376368d7 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[UPD] model order and views

parent 77cd5002
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -9,6 +9,7 @@ class ScopGreffe(models.Model):
_name = "scop.greffe"
_description = "Mise à jours greffe"
_inherit = ["bodacc.mixin", "mail.thread", "mail.activity.mixin"]
_order = "date_parution desc"
# ------------------------------------------------------
# Fields declaration
......@@ -16,7 +17,7 @@ class ScopGreffe(models.Model):
name = fields.Char("Nom")
status = fields.Selection(
[("new", "à traiter"), ("saved", "traité")],
string="Status",
string="Statut",
default="new",
tracking=True
)
......@@ -170,10 +171,10 @@ class ScopGreffe(models.Model):
# ------------------------------------------------------
# CRON
# ------------------------------------------------------
def update_greffe_from_bodacc(self, init_year=2022):
def update_greffe_from_bodacc(self, init_year=2025):
"""
Update list from bodacc API.
If no data get all from 01/01/2023 else from yesterday
If no data get all from 01/01/2025 else from yesterday
"""
if self.env["scop.greffe"].search([]):
since_days = 1
......
static/description/icon_greffe.png

8,35 ko | W: | H:

static/description/icon_greffe.png

8,58 ko | W: | H:

static/description/icon_greffe.png
static/description/icon_greffe.png
static/description/icon_greffe.png
static/description/icon_greffe.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- ROOT-->
<menuitem
id="scop_greffe_menu_root"
name="Greffe"
sequence="35"
sequence="29"
web_icon="cgscop_greffe,static/description/icon_greffe.png"
action="scop_greffe_act_window"
/>
......
......@@ -58,8 +58,9 @@
/>
</header>
<sheet>
<group>
<group>
<group name="coop" string="Coopérative">
<field
name="status"
widget="badge"
......@@ -77,7 +78,8 @@
<field name="siren" />
</group>
<group>
<group name="announce" string="Annonce">
<field name="numero_annonce" />
<field name="famille_avis" />
<field name="modifications_generales" />
<button
......@@ -96,6 +98,7 @@
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
......@@ -116,7 +119,7 @@
<field name="partner_ur_id" optional="show" />
<field name="partner_followup_delegate_id" optional="show" />
<field name="siren" />
<field name="famille_avis" />
<field name="famille_avis" optional="hide" />
<field name="modifications_generales" />
<field
name="status"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter