Suljettu

Odoo search method

I have a string that represents a products name, but string is longer than needed,

string_i_receive = SHK AMIN 800 12X0.5 KG

17 16 3203 7000459/2017-12-18/MANZANILLO **this is a line break

description_purchase = SHK AMIN 800 12X0.5 KG

how i make this search method to match the above values?

product_exist = [login to view URL]['[login to view URL]'].search([('description_purchase','=like',cfdi_line_description + '%')], limit=1)

**

i cannot count since the strings i receive are variable in size

Taidot: Odoo , PostgreSQL, Python

Näytä lisää: can program search method using web developer, zencart search method post, search method zen cart, odoo 11 fields, orm odoo 11, odoo 11 api, orm methods in odoo 11, odoo api, orm methods in odoo 10, odoo 10 api, odoo 10 fields, search method twitter, write search method java jcreator, i need a manfucture make my design capsule, i need help to make logo with illustrator, i need someone to make me a 3d model, i need someone to make me a fake shoutcast listener script i have tried different ways but cannot get it if anyone can make a sc, i need someone to make my clothing designs, i need someone to make some changes to my letter head, i need someone to make the design for my commercial van

Tietoa työnantajasta:
( 7 arvostelua ) Metepec, Mexico

Projektin tunnus: #18176150

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$88 USD 2 päivässä
(0 arvostelua)
0.0
VDSSI

Muy buen día, mi nombre es Abner Velasco puedo ayudarte con tu problema en Odoo

$50 USD 2 päivässä
(0 arvostelua)
0.0
beme0702

We are team of odoo Developer and having 3.5 years of experience in providing services of odoo. We are provide services of installation or setup, implementation of odoo with your business requirements, customisation as Lisää

$25 USD 1 päivässä
(1 arvostelu)
0.0
AnaghanHeri

Hello, Good Day I have read your posting with and i'm interested . I have 3+years experience Expert programming and implementation of Odoo. If you are interested so We can discuss further Regards, Heri

$55 USD 2 päivässä
(0 arvostelua)
0.0
yasmany003

Hello, you requierement is easy. All you need to do is search by product name or code. That string you recive is a concatenation of name + code, is a result of name_get method. Only check or split the string.

$15 USD 1 päivässä
(0 arvostelua)
0.0