Skip to content
Extraits de code Groupes Projets
Valider 83fa378a rédigé par Juliana's avatar Juliana
Parcourir les fichiers

Modifs SIREN

parent 0966fb61
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
'version': '12.0.1.0.0', 'version': '12.0.1.0.0',
'license': "AGPL-3", 'license': "AGPL-3",
'depends': ['base', 'account'], 'depends': ['l10n_fr'],
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
......
...@@ -36,7 +36,7 @@ class AutreResPartner(models.Model): ...@@ -36,7 +36,7 @@ class AutreResPartner(models.Model):
# Societe # Societe
statuts = fields.Many2one('res.partner.statut', string="Statut") statuts = fields.Many2one('res.partner.statut', string="Statut")
num_of = fields.Char('Numéro OF') num_of = fields.Char('Numéro OF')
financement = fields.Selection([('direct', 'direct'), ('agfiph', 'AGFIPH'), ('piphfp','PIPHFP'), ('eoth' ,'EOTH')], string='Fincancement') financement = fields.Selection([('direct', 'direct'), ('agfiph', 'AGFIPH'), ('piphfp','PIPHFP'), ('eoth' ,'EOTH')], string='Financement')
preference_email = fields.Boolean('E-mail') preference_email = fields.Boolean('E-mail')
preference_courrier = fields.Boolean('Courrier') preference_courrier = fields.Boolean('Courrier')
preference_chorus = fields.Boolean('Chorus Pro') preference_chorus = fields.Boolean('Chorus Pro')
......
...@@ -121,13 +121,13 @@ ...@@ -121,13 +121,13 @@
<field name="email" widget="email" context="{'gravatar_image': True}" /> <field name="email" widget="email" context="{'gravatar_image': True}" />
</group> </group>
<group string="Contacts Pros"> <group string="Contacts Pros">
<field name="role" widget="many2many_tags" attrs="{'invisible': ['|', ('is_company','!=', False),('beneficiaire','!=',False)]}"/>
<field name="function" attrs="{'invisible': [('is_company','=', True)]}"/> <field name="function" attrs="{'invisible': [('is_company','=', True)]}"/>
<field name="phone_pro" widget="phone"/> <field name="phone_pro" widget="phone"/>
<field name="mobile_pro" widget="phone"/> <field name="mobile_pro" widget="phone"/>
<field name="email_pro" widget="email" context="{'gravatar_image': True}" /> <field name="email_pro" widget="email" context="{'gravatar_image': True}" />
<field name="website" widget="url" placeholder="e.g. www.odoo.com"/> <field name="website" widget="url" placeholder="e.g. www.odoo.com"/>
<field name="category_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="Tags..."/> <field name="category_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="Tags..."/>
<field name="role" widget="many2many_tags" attrs="{'invisible': ['|', ('is_company','!=', False),('beneficiaire','!=',False)]}"/>
</group> </group>
</group> </group>
<group attrs="{'invisible': [('is_company','!=', True)]}"> <group attrs="{'invisible': [('is_company','!=', True)]}">
...@@ -244,6 +244,23 @@ ...@@ -244,6 +244,23 @@
</sheet> </sheet>
</form> </form>
</xpath> </xpath>
<xpath expr="//field[@name='vat']" position="after">
<field name="siret" string="SIREN" attrs="{'invisible': [('is_company', '=', False)]}"/>
</xpath>
</field>
</record>
<record id="autrement_res_partner_form_l10n_fr" model="ir.ui.view">
<field name="name">autrement.res.partner.form.l10n.fr</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="l10n_fr.res_partner_form_l10n_fr"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='siret']" position="replace">
</xpath>
</data>
</field> </field>
</record> </record>
......
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