Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
62 Views
: Many2many fields hr.employee.em_contrat and hr.employee.em_champ use the same table and columns


lors de la migration du module odoo 10  vers 15

code

# -*- coding: utf-8 -*-

from odoo import fields, models, api, _

from odoo.exceptions import ValidationError


class payrollReport(models.Model):

    _name = 'ir.model.fields',string="Contrats")

Avatar
Discard

Hey,

I hope you are doing well.

This warning will be resolved by defining relation to each of the fields using the same table and columns.

Like you already did in the below fields 

Please find code in comment. 

I hope this will help you.

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!