Odoo 11 CE depends on the module: res. But this module is not available in your system - odoo-11

I'm currently using Odoo 11 CE and developing an app that would add some fields to res.partner. After looking at all the different samples out there I can't figure out why I get this error when upgrading:
You try to upgrade the module training_center that depends on the
module: res. But this module is not available in your system.
In my manifest file I've got the following:
manifest.py
'name': 'Training Center',
'author': 'Matt',
'website': 'tbd',
'depends': ['base','board', 'document', 'hr', 'web', 'website',
],
In my models directory I've got the following:
init.py
from . import res_partner
In my res_partner.py file I've got the following:
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
class TC_ResPartner(models.Model):
"""Adds wechat field becomes a stored function field."""
_inherit = 'res.partner'
wechat_id = fields.Char(
"Wechat User ID",
index=True,
store=True
)
When I go to upgrade in the UI via the APPS/Upgrade button, I get the following error:
You try to upgrade the module training_center that depends
on the module: res. But this module is not available in your system.
When I look in the server log, I see the following worth noting:
2018-12-08 16:12:03,313 27437 INFO odoo odoo.addons.base.module.module: ALLOW access to module.button_immediate_upgrade on ['training_center'] to user m****#gmail.com #7 via 127.0.0.1
2018-12-08 16:12:03,313 27437 INFO odoo odoo.addons.base.module.module: ALLOW access to module.button_upgrade on ['training_center'] to user m****#gmail.com #7 via 127.0.0.1
2018-12-08 16:12:03,313 27437 INFO odoo odoo.addons.base.module.module: ALLOW access to module.update_list on ['training_center'] to user m****#gmail.com #7 via 127.0.0.1
I've not had any permission issues with upgrading until I tried inheriting res.partner.
What am I missing?

Related

Dialogflow CX - Location settings have to be initialized - FAILED_PRECONDITION

I am automating Dialogflow CX using Python client libraries. That includes agent/intent/entity etc. creation/updation/deletion.
But for the first time run, I am encountering the below error from python.
If I login to console and set the location from there and rerun the code, it is working fine. I am able to create agent.
Followed this URL of GCP -
https://cloud.google.com/dialogflow/cx/docs/concept/region
I am looking for code to automate the region & location setting before running the python code. Kindly provide me with the code.
Below is the code I am using to create agent.
Error -
google.api_core.exceptions.FailedPrecondition: 400 com.google.apps.framework.request.FailedPreconditionException: Location settings have to be initialized before creating the agent in location: us-east1. Code: FAILED_PRECONDITION
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "com.google.apps.framework.request.FailedPreconditionException: Location settings have to be initialized before creating the agent in location: us-east1. Code: FAILED_PRECONDITION"
debug_error_string = "{"created":"#1622183899.891000000","description":"Error received from peer ipv4:142.250.195.170:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"com.google.apps.framework.request.FailedPreconditionException: Location settings have to be initialized before creating the agent in location: us-east1. Code: FAILED_PRECONDITION","grpc_status":9}"
main.py -
# Import Libraries
import google.auth
import google.auth.transport.requests
from google.cloud import dialogflowcx as df
from google.protobuf.field_mask_pb2 import FieldMask
import os, time
import pandas as pd
# Function - Authentication
def gcp_auth():
cred, project = google.auth.default(scopes=["https://www.googleapis.com/auth/cloud-platform"])
auth_req = google.auth.transport.requests.Request()
cred.refresh(auth_req)
# Function - Create Agent
def create_agent(agent_name, agent_description, language_code, location_id, location_path):
if location_id == "global":
agentsClient = df.AgentsClient()
else:
agentsClient = df.AgentsClient(client_options={"api_endpoint": f"{location_id}-dialogflow.googleapis.com:443"})
agent = df.Agent(display_name=agent_name, description=agent_description, default_language_code=language_code, time_zone=time_zone, enable_stackdriver_logging=True)
createAgentRequest = df.CreateAgentRequest(agent=agent, parent=location_path)
agent = agentsClient.create_agent(request=createAgentRequest)
return agent```
Currently, Dialogflow does not support configuring the location settings through the API, thus you can not initialise location settings through it. You can only set the location through the Console.
As an alternative, since the location setting has to be initialised only once for each region per project you could set the location and automate the agent creation process, some useful links: 1 and 2.
On the other hand, if you would find this feature useful, you can file a Feature Request, here. It will be evaluated by the Google's product team.
Many thanks Alexandre Moraes. I have raised a feature request for the same.

getting error message: "Target class [App\Http\Controllers\paymentController] does not exist after hosting on server

I am getting this error after hosted it on server on network tab i am currently using laravel 7.6.
message: "Target class [App\Http\Controllers\paymentController] does not exist.",…}
exception: "Illuminate\Contracts\Container\BindingResolutionException"
file: "/home4/helthr4e/public_html/trainer.helthofit.com/vendor/laravel/framework/src/Illuminate/Container/Container.php"
line: 807
i think here is the problem:
1- your namespaces are not correct - check them again
2- host and server are sensitive to uppercase and lowercase and you wrote paymentController
change it to PaymentController and test it again
added:
change your route to : Route::post('/paysuccess', 'PaymentController#paysuccess')

Error on multi-tenant hybris backoofice start-up

I have setup a slave tenant on a Hybris 1811 installation, but I cannot get the backoffice to work for the slave tenant (foo). The error that I get in browser is: Server Error.
I have followed the instructions from here: How to access Backoffice in Junit Tenant, but I cannot get it to work.
tenant_foo.properties
db.tableprefix=foo_
cronjob.timertask.loadonstartup=false
tenant.restart.on.connection.error=false
db.factory=de.hybris.platform.jdbcwrapper.JUnitDataSourceFactory
db.url=jdbc:oracle:thin:#localhost:1521:foo
db.driver=oracle.jdbc.OracleDriver
db.username=foo
db.password=bar
hac.webroot=/hac_foo
local_tenant_foo.properties
backoffice.webroot=/backoffice_foo
I have checked the Hybris logs and found this error:
ERROR [localhost-startStop-3] (foo) [ContextLoader] Context initialization failed
org.springframework.beans.factory.support.BeanDefinitionValidationException: java.io.IOException: Unable to remove a module library: E:\hybris-1811\data\backoffice\widgetlib\deployed\voucherbackoffice.jar; nested exception is com.hybris.cockpitng.core.CockpitApplicationException: java.io.IOException: Unable to remove a module library: E:\hybris-1811\data\backoffice\widgetlib\deployed\voucherbackoffice.jar
at com.hybris.backoffice.BackofficeApplicationContext.prepareRefresh(BackofficeApplicationContext.java:106) ~[classes/:?]
HAC works fine for both tenants (master and foo), but backoffice only works for the master tenant. Also, if I navigate to HAC->tenants-> foo -> view -> configured extension, I can see that for extensions acceleratorservices and admincockpit, under the WebContext column it displays "Missing configuration for this context in current tenant".
try to add backoffice library home for each tenant:
backoffice.library.home=${data.home}/foo
(foo is the tenant id). There is also some documentation about it in the help here.
I hope it helps!

RobotFramework Oracle DB Connection Issue

I'm trying to check if the oracle DB connection using the Keyword:
Connect To Database Using Custom Params
Following libraries are imported:
Database Library
JayDeBe API
This this is the connection string used:
'oracle.jdbc.driver.OracleDriver', 'jdbc:oracle:thin:#//DBHostname:Port/DBName', ['user', 'pass']
We do not get any response that can identify if the connection is established or rejected.
We see this message in RIDE:
'oracle.jdbc.driver.OracleDriver', 'jdbc:oracle:thin:#//DBHostName:Port/DBName', ['user', 'pass']
20170927 17:07:54.438 : INFO : Executing : Connect To Database Using Custom Params : jaydebeapi.connect(db_api_2.connect('oracle.jdbc.driver.OracleDriver', 'jdbc:oracle:thin:#//DBHostName:Port/DBName', ['user', 'pass']))
Can someone please help us?
We found the solution: In our case we have python 2.7(32bit) therefore we need the following:
1. Oracle Instant Client Downloads for Microsoft Windows (32-bit). you can download it from here: http://www.oracle.com/technetwork/topics/winsoft-085727.html
Set the variable path in environment variable for the Oracle Instant client.
Download cx_Oracle API (32bit- cx_Oracle-6.0.2-cp27-cp27m-win32.whl (md5) ) from the location:https://pypi.python.org/pypi/cx_Oracle/
Open command prompt and run: pip install cx_Orcle --upgrade
Open the RIDE and use the following keyword:
Connect To Database Using Custom Params cx_Oracle 'user', 'password', 'DBHOSTNAME:PORT/DBNAME'

Warning: Smarty error: unable to read resource: "widget/product/list.tpl" in core/smarty/Smarty.class.php on line 1094

I just installed a OXID eSHOP COMMUNITY EDITION 4.10.2.
I copy paste my live site code into local server. Everything is working fine, but products not display.
It shows below error.
Warning: Smarty error: unable to read resource: "widget/product/list.tpl" in core/smarty/Smarty.class.php on line 1094
However it's working fine on live site. But not working on my local setup.
Check if template file "widget/product/list.tpl" exists on your machine. Looks like you did not copy all the files from production server.

Resources