How to perform execute SQL query in Odoo | Database Queries | SQL Statements | PSQL queries

How to perform execute SQL query in Odoo | Database Queries | SQL Statements | PSQL queries

WebLearns

3 года назад

12,539 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ateeq Rao
Ateeq Rao - 31.05.2023 12:03

Hello, I have created a column in the table using sql raw query, The column is now present in the table but odoo orm is not recognizing that column, How can I resolve that?

Ответить
Desert Rose
Desert Rose - 13.10.2022 14:31

Chukran 🎉

Ответить
Francesco
Francesco - 29.09.2021 23:18

Hello friend, are we able to make alter table - Add column / remove column operation with self.env.cr.execute ?

Ответить
Abdul Jabbar
Abdul Jabbar - 05.05.2021 12:53

i want to insert values like that:



self.env.cr.execute("insert into scms_equ_count(equipment_catagory,tcount) values(select equipment_catagory,count(*) from scms_company_equipment group by equipment_catagory)")

Ответить
Abdul Jabbar
Abdul Jabbar - 04.05.2021 13:55

please help me how i can assign data to variables.

Ответить
Abdul Jabbar
Abdul Jabbar - 04.05.2021 13:39

@Weblearns my queary is running fine. now i want assign data to variables.

Ответить
Happy Turtle
Happy Turtle - 23.04.2021 23:21

why will it bypass odoo security ? isnt this an issue ?

Ответить
deca john
deca john - 10.04.2021 02:15

How to do it in windows 10? currently, I can only access database by using postgre shell, but it still hard through pycharm's terminal like yours..:'(

Ответить
Aurangzaib Bhatti
Aurangzaib Bhatti - 22.02.2021 08:22

Python console error's "self not defined", "env not define" etc.

Ответить
Data Untelligence
Data Untelligence - 02.01.2021 11:14

thanks for the tips, very handy

Ответить