Comments (2)
You probably need to trigger the onchange specs.
Take a look at this section from the odoo development cookbook -
from odooly.
After way too many hours, I managed to get the functionality in Odoo to trigger; calculate taxes on created Expenses.
It does indeed calculate taxes now, so this is great!
This was achieved by running this command from Odooly:
env['hr.expense'].create({'product_id':39,'company_id':1,'employee_id':2,'name': "Zibby Tiny Lasagna",'unit_amount':'100','untaxed_amount':'100','quantity':'1','analytic_account_id':16,'company_currency_id':14,'account_id':'205','product_uom_id':1,'analytic_tag_ids':[('is_editable','0',[])],'tax_ids': [(6, 0, [5])]})
Remainder: The products are supposed to have a tax setting, but this is bruteforced by the tax_ids command above. So right now, Odoo doesn't follow which tax setting which was set in the product_id.
I found a clue, which got me closer to the solution here:
https://www.odoo.com/es_ES/forum/ayuda-1/question/solved-get-and-set-default-tax-by-python-command-line-82209
from odooly.
Related Issues (16)
- Python REPL HOT 1
- Support for v13
- Odooly roadmap
- Error when trying to run odooly in Odoo14 HOT 1
- Cannot uninstall modules
- Support for Odoo 15
- Massive Import
- How can I get the JSON representation of both, odoo.Record and odooly.RecordList
- Error decoding recordset returned by method HOT 5
- Error while trying to use create multi with products
- Support for timeout option HOT 1
- Clarify the ERPpeek -> Odooly fork HOT 1
- Flectra Support.
- Does `env.cr` only work when on a local server? HOT 1
- JSONRPC KeyError when result is None
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odooly.