okay so, I am trying to inherit the sale.order.line model and tapping into the create() method. The goal is that when a new order line gets added if it's a service-type product, we add a new order line with a specific product that is already set up on Settings. However, on the create() call, it throws an error saying: Record does not exist or has been deleted.(Record: sale.order.line(115,), User: 2), I am not sure why. The first thing is, that the record exits and the second thing is, not using it on the create call. Here is my code: https://gist.github.com/M4hd1BD/9f661e189e85111df097897ce83f5a40, can anyone take a look and see what might I have done wrong here?
record doesn't exist error when creating a new record
23 views Asked by Mahdi At
1
There are 1 answers
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in ORM
- SQL schema for a fill-in-the-blank exercise
- ERROR: column "country" is of type text[] but expression is of type record (SQLSTATE 42804)
- JPA Hibernate OneToOne Mapping
- query in objects with django orm with a containing sentence
- peewee: SQLite - peewee Create() is forcing integer in PrimaryKeyField if leading character is numeric (even if there is a non-numeric in the middle)
- PHP ORM DOCTRINE
- Error appending to array oOnConflictUpdaste using Drizzle ORM (Postgresql)
- Sequelize foreign key vs SQL how to implement it
- How do i work with a potentially nullable field in prisma ORM and MongoDB that references the id of another model?
- record doesn't exist error when creating a new record
- Several relationships in one model in Laravel
- SQLALCHEMY ORM - error when using variables both for column, value in WHERE
- How to exclude instances with empty querysets in prefetch_related?
- Optimize SqlAlchemy ORM DB models
- What are the best practices regarding SSR, Django and temprarly changed data?
Related Questions in ODOO
- odoo : look for method I click on button "add line" in tree view
- Odoo live chat not working when using apache reverse proxy
- Odoo: How to set import template default for model
- record doesn't exist error when creating a new record
- Odoo Window action apply multiple filters
- Comparing value from a foreign key in Odoo
- How can i print my invoice report from a server action
- Changing journal_id in account.move default_get Method Not Reflecting in UI
- Odoo synchronization with Google agenda
- Call JS function from XML
- Migrate javascript V12 in V17
- Odoo 16 ir.actions.report qweb-pdf pass data via POST method
- How to migrate from Odoo 15 to Odoo 16 using odoo.upgrade?
- i cannot enter the http://localhost:8069/web/ odoo 16
- Odoo Custom Module - First Steps failed by model_id
Related Questions in ODOO-17
- Adding Tabs in Odoo Application Index File
- add some validation in odoo 17 point_of_sale set_discount function in file models.js
- Odoo 17 error: @spreadsheet/hooks: The following modules are needed by other modules but have not been defined
- How can I get the odoo 17 master password in the ubuntu?
- odoo 17.0 on windows. Problem with "sassc"
- What is the purpose of overriding Odoo controllers with an empty @http.route() definition?
- many2many create method error: unhashable type: 'list' Odoo 17.0
- How to change or empty "Odoo" Title from browser page in odoo 17
- How to Auto Cancel and Recreate Sale Order with Cron Schedule on Odoo 17?
- The inherited function didn't execute in Odoo 17 EE
- Why does Odoo 17 not render a label for my field in a <notebook>?
- Create odoo user with admin privileges from psql
- Odoo 17 QWeb Question: Whats behind the concept of <t t-out="0"/>
- How to use regular expression for a mini markup mechanism in PDF reports?
- Odoo 17 Create Database Database creation error: Access Denied
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The issue was matching an id with an instance of product.template. Fixed by changing the first if clause to: