Комментарии:
Thanks for this video ,
How to decide which field i exactly need to fulfill my requirment like one2many or many2one or many2many
can you make video relations one2one
ОтветитьYour series are amazing! But I have one little, perhaps stupid, question: How does Odoo engine know which data are you asking for when making that many2one field? Is it because when using res.partner as comodel_name, contacts ids are the only kind of data you are going to get?
thanks!
How to determine a certain value among the res.partner module?
Ответитьhow to get list of customer contacts in account invoice please !
ОтветитьYour videos are awesome. Please keep it up. It helped me a lot. I can't thank you enough.
ОтветитьThank you so much for the videos.
you helped me so much :)
Vary Nice✔👌
ОтветитьHello in my case the UI does not show the values of the related model on a many2one field, it just show the string but either the list form nothing to capture, here is my model:
class enviarPago(models.TransientModel):
_name = "enviar.pago"
_description = "Envio de Pago"
transaction_id = fields.Many2one("payment.transaction", readonly=True)
acquirer_id = fields.Many2one("payment.acquirer", required=True)
amount = fields.Monetary(string="Monto", required=True)
currency_id = fields.Many2one("res.currency", string="Moneda")
payment_date = fields.Date(string="Fecha Pago:", required=True, default=fields.Date.context_today)
pers_id = fields.Many2one("hr.employee", readonly=True)
and the xml:
<field name="acquirer_id" string="Forma Pago" />
<field name="amount" string="Monto:" />
</group>
<group>
<field name="payment_date" />
<field name="currency_id" />
<field name="pers_id" string="Chofer" />
The one that does not work is the employee pers_id while as the acquirer and the currency work fine. I have de hr module on my manifest dependencies. Help please
hey, thanks for the video. I wanted to ask.
so I have 3 models, "modelA" "modelB" and "modelC"
"modelA" has a many2one field from "modelB" records, it's called "your_name"
"modelC" has a char field, called "names"
I've created a function on "modelA" to create a record , and pass modelA.your_name value to "names" field on "modelC".
when I execute the code, instead of showing the value, it just shows "modelB(2)", or "modelB(3)", the numbers changes according to the value from the your_name field.
can you tell me how to make it show the value? all I know that this happens because the "modelC" did'nt know the values from "modelB".
p.s does myexplanation clear? pls let meknow. thanks
thank you so much for this videos
Ответитьthanks, very helpful.
if i wanted to bind some attribute of res.partner, how to acheive this. i.e rather than showing responsible person name, i wanted to show that person contact number. thanks in adv for all the help
Hello, thank you so much for the video.
When we add a new relational field, shouldn't we specify something in the depends section inside the manifest file?
Regards