Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5235 Widoki

Forgive me if this seems trivial but I have spent a considerable amount of time trying to make this work. In trying to import the very first list, in this case, Vendors,  with only two input lines into a new instance of Odoo using the TEST IMPORT command. Odoo posts a message: "No matching record found for external id 'base.state_us_' in field 'State' at row 3." Using the "Get all possible values" lists a number of cities none of which are in the US are shown. The only way to clear the error is to hard code "base.state_us_**" putting the actual numeric code for the state in the csv file where I have shown **.

What am I doing wrong? I have googled this for hours, searched the community blog, read all the documentation I can find to solve the problem. This should not be this difficult.

Your help would be greatly appreciated.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Mark,

Please do check with state id should be exists in odoo DB, for example country is US and state id = 2 for country US.

Import file should be "state_countrycode_state.id" like following:

name                 state_id/id             country_id/id

Vendor Name base.state_us_2     base.us

Thanks!


 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 23
7038
1
lis 19
6980
1
mar 15
5253
2
lip 25
1915
2
lip 25
1740