Questions tagged [odoo-16]

Use this tag for version specific questions about Odoo 16 - the suite of open-source business applications written in Python. When using this tag also include the more generic [odoo] tag where possible.

187 questions
3
votes
1 answer

Error: Field is restricted to the group(s)

I'm migrating a module from version 15.0 to version 16.0 and I'm getting an error in context due to the group added to the "operation_unit_id" field in the xml and I don't know how to fix it. Can you help me? The field "operation_unit_id" is created…
2
votes
1 answer

Odoo 16 Make Fields Readonly Using XPath Based on Group

In previous version (15.0 and below) we are able to inherit a views and set the attributes to certain fields based on group assigned using groups_id. We can later change a…
altela
  • 306
  • 2
  • 13
2
votes
2 answers

Add number week in timesheet Odoo

I'm trying to add number of week in the grid of timesheet in Odoo V16. Like this : But my new function in my inherit js doesn't be call and i don't know why ? This is my xml file (inherit from web_grid) :
2
votes
1 answer

Patching StockForecasted Javascript Odoo

Could someone help me how to patch StockForecasted in Odoo16? class StockForecasted extends Component{ async _getReportValues(){ ​ ​this.resModel = this.context.active_model || (this.context.params &&…
2
votes
1 answer

odoo 16 reconciliation translate not working

when adding name = fields.Char(translate=True,) company_name = fields.Char(translate=True) display_name = fields.Char(translate=True) to the res.partner then go to trying to open the reconciliation action i am geting TypeError:…
Moaz Mabrok
  • 697
  • 10
  • 32
2
votes
0 answers

How to create user accounts for existing employees in Odoo 15?

In odoo 15 i have to create users for existing employees. so is there any way to create it from existing employee instead of I create users and then from HR Setting i select Related User. so how I can create all employees to users in odoo?
RAK
  • 109
  • 7
2
votes
1 answer

Odoo add line button not showing for one2many field in form

I want to create child item line from the parent model form page but Add Data Line button not showing. I have given all permission to the base user for both model like create,update, and delete still create button not showing. Reference image: look…
Riajul Kashem
  • 89
  • 3
  • 13
2
votes
1 answer

Symbol not found in flat namespace '_exsltDateXpathCtxtRegister' in Odoo16 Mac m1

After installing Odoo from source and requirements I run python3 odoo-bin --addons-path addons -r odoo -w odoo and get I get the following error: ImportError:…
2
votes
1 answer

Odoo Unit Test is not running

I am running the following command inside docker container of odoo image 16 and it doesn't run the unit-test: odoo -i custom_fields_mapping -d odootest8 -p 8001 --db_user=odoo --db_password=11111111111 --db_host=localhost --log-level=test…
KostasC
  • 1,076
  • 6
  • 20
  • 40
2
votes
2 answers

why odoo16 doesn't load the js files

I‌ am trying to load a js file in odoo16 according to the odoo16 document but I can't and it doesn't load my js file despite that it doesn't give any error, I wondered if there is anyone to help me to load a js file in odoo manifest.py # -*- coding:…
2
votes
1 answer

How to Solution for owl errors odoo16

how can i overcome this error during adding code and restarting the server the below error happend tha works previousily. The added is module is not related UncaughtPromiseError > OwlError Uncaught Promise > An error occured in the owl lifecycle…
n.naw
  • 21
  • 1
  • 2
1
vote
1 answer

Extending pydantic v2 model in Odoo

Odoo 16, Pydantic v2, extendable-pydantic 1.1.0 Use case: Main module with pydantic model MainModel One (or more) add-on modules which are dependant on Main module and extend MainModel with new fields When only main module is active, the MainModel…
Corwin
  • 645
  • 1
  • 9
  • 17
1
vote
1 answer

How would I get the quotes created by an Odoo ecommerce site, to default to a specific payment method?

How would I set the "payment_term_id" to default to a custom payment term? The payment term's ID is 11. I attempted to do this with a system parameter, but I was unsure of the syntax. I tried: key: "x_default_payment_term_on_quotes" value:…
TxTechnician
  • 318
  • 1
  • 11
1
vote
0 answers

ODOO 16 How to set current page number on One2many field on open form view

I have a wizard defined like this: class OrderLineSelectionWizard(models.TransientModel): _name = 'order.line.selection.wizard' _description = 'Wizard selezione prodotti' _rec_name = 'order_id' def…
1
vote
0 answers

Odoo 16 plugin creation: override an existing function

I'm very new at Odoo addon development, yet i'm trying to create a simple Odoo 16 plugin that will just override a few methods from the built-in addons and skip their functionality. The plugin installs succesfully, but won't override the code or…
Fed C
  • 143
  • 1
  • 13
1
2 3
12 13