odoo-dev | odoo 二次开发 | Portal library
kandi X-RAY | odoo-dev Summary
kandi X-RAY | odoo-dev Summary
修正: 1,继承视图时某些字段翻译提取不正确。例如,产品规格视图。 2,报表模块view翻译问题。例如销售报表分析。 3,修正全局过滤器翻译问题。.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of odoo-dev
odoo-dev Key Features
odoo-dev Examples and Code Snippets
Community Discussions
Trending Discussions on odoo-dev
QUESTION
I can add other attributes like "string" etc, and it's worked. But "js_class" cannot add like this. My code:
...ANSWER
Answered 2021-Jan-05 at 03:08Try Using class in place of js_class if you want to add the class attribute.
Pass your custom class and existing class like this. You can find out what the existing class is by using something like firebug or just "view source". Just add a space, no comma between classes.
For Example:
QUESTION
i want to add variable in the initialize function but i dont know how to do it properly
here is what i have tried right now
...ANSWER
Answered 2020-Apr-20 at 11:55You do not need var self = this;
as it is not used later on.
Also, you most likely need to return something from the initialize function.
_super_order.initialize.apply(this,arguments);
Should be:
return _super_order.initialize.apply(this,arguments);
QUESTION
I'm following the book for self learning. And I came to this step
To add the new addons directory to the Odoo server addons path, change the current directory, and start the server with the appropriate addons path configuration:
This is what I entered into the Ubuntu Terminal:
...ANSWER
Answered 2020-Apr-17 at 09:59I found what is wrong, we actually have to store a working module in the directory before run the command.
QUESTION
I'm trying to add some functions in the POS buttons, specifically the button that shows up like "Validate". To test if the guide in this link https://odoo-development.readthedocs.io/en/latest/dev/pos/gui.html works, I'm just adding a console.log like the following:
...ANSWER
Answered 2020-Apr-12 at 05:32To add your code to the Validate
button you will need to modify the payment screen widget via the include
method (You already did that).
If you inspect the button from the browser you will find that it has a class next
which is used to bind an event handler to the click JavaScript event.
Example:
QUESTION
I'm trying to add data to the POS's order and send that data to the 'pos.order' model based on the site https://odoo-development.readthedocs.io/en/latest/dev/pos/load-data-to-pos.html. To make my case more generic I'm creating a new odoo model named 'custom.model', I'm creating a relation with the 'pos.config' to help me with the model domain in javascritp latter with the following code:
...ANSWER
Answered 2020-Apr-08 at 05:15This error due to of the argument mismatch on the method, just check on the odoo-13 this method _process_order
In your code, you were using the older version method and from the odoo13 version, it is changed.
You have to update the field in this method, where the data came from the export_as_JSON
function.
QUESTION
I have a base module called theater
with the following model called ticket
:
ANSWER
Answered 2020-Jan-09 at 05:46Actually the error is very simple but hard to spot, ref
accepts a string representation of XML-ID
and you forgot to put quotes around your IDs:
QUESTION
Trying to add fields to the model hr.employees (cmp after address_home_id)
This is my code.
__manifest__.py
...ANSWER
Answered 2019-Apr-09 at 07:12Make sure your res_hr.py is imported. Normally a module/app looks like
QUESTION
I am trying to create a module for "Daily Transaction" and getting a ValueError
...
ANSWER
Answered 2017-May-04 at 09:25It is giving this error because you are using action before it is created, So first you have to define your action and then you can use it.
So you should try as following:
QUESTION
I followed the standard Odoo container instructions on Docker to start the required postgres and odoo servers, and tried to pass host directories as persistent data storage for both as indicated in those instructions:
...ANSWER
Answered 2019-Jan-22 at 19:29I figured out some good debugging methods that both solved this problem and seem generally useful for figuring out Docker persistent data volume issues.
Test 1: can the container work with an empty Docker volume?
This is a really easy test: just create a new Docker volume and pass that in your -v argument (instead of a host directory absolute path):
QUESTION
I am modifying the report sale.report_saleorder_document for some days I am trying to insert images I have tried the following:
But to date, only shows me small squares, image attached.
Any help will be much appreciate[![enter image description here][1]][1]d
mp_report_sale_order.xml
...ANSWER
Answered 2018-Oct-16 at 16:51I now have an idea. Try to do this steps:
1- In the module mp_report_saleorder
create a folder with name static
, put you images inside that folder. For example move your module src/images
folder to static/src/images
.
2- Restart your Odoo instance so your static folder will be available
3- Set this path in your QWEB template for the images(example path):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install odoo-dev
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page