odoo-15

What is **error: [Errno 32] Broken pipe** in Odoo?

What is **error: [Errno 32] Broken pipe** in Odoo? Question: Exception happened during processing of request from (‘192.168.15.184’, 44813)Traceback (most recent call last): File "/usr/lib/python3.8/SocketServer.py", line 593, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.8/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.8/SocketServer.py", line 651, in __init__ self.finish() File "/usr/lib/python3.8/SocketServer.py", line 704, in finish self.wfile.flush() File …

Total answers: 1

How to make onchange field editable only for draft state?

How to make onchange field editable only for draft state? Question: I have onchange field, and i need to make it readonly for all state except the draft state. My .py file: class SaleOrderInherited(models.Model): _inherit = ‘sale.order’ custom_field = fields.Char(string=’Test’, store=True, default=randint(1, 1000) ) @api.onchange(‘tax_totals_json’, ‘date_order’) def _onchage_test(self): for record in self: if int(json.loads(record.tax_totals_json)[‘amount_total’]) == …

Total answers: 1

how fetch inherit model into another model field value fetch in other module value in odoo15

how fetch inherit model into another model field value fetch in other module value in odoo15 Question: class StockPicking(models.Model): _inherit = [‘stock. Picking’] _description = ‘test.test’ _order = ‘id’ def _default_group_id(self): if self.env.context.get(‘default_picking_id’): return self.env[‘stock. Picking’].browse(self.env.context[‘default_picking_id’]).group_id.id return False 1.Inventory—>tranfers—>create—-> quantity_done(Done) value fetch employee_id = fields.Many2one(‘hr.employee’, ‘Employee’) product_id = fields.Many2one(‘product. Product’, string=’Product’, check_company=True) department_id = fields.Many2one(‘hr. …

Total answers: 1

Invalid model name in action definition

Invalid model name in action definition Question: I am trying to create custom module in odoo 15. when doing install it raise an error "Invalid model name ‘school.course’ in action definition" My code as following: school/courses_action_menu.xml <?xml version="1.0" encoding="UTF-8"?> <odoo> <record id="courses_action" model="ir.actions.act_window"> <field name="name">course</field> <field name="res_model">school.course</field> <field name="type">ir.actions.act_window</field> <field name="view_mode">tree,form</field> <field name="help" type="html"> <p …

Total answers: 1

No module named 'importlib.metadata'

No module named 'importlib.metadata' Question: I’m trying to install Odoo 15.0 on mac (python 3.7) when i come to run the command: pip3 install -r requirements.txt I got this error message: Traceback (most recent call last): File "/usr/local/opt/[email protected]/bin/pip3", line 10, in <module> from importlib.metadata import distribution ModuleNotFoundError: No module named ‘importlib.metadata’ Asked By: Omri Maher …

Total answers: 1

Odoo15 error while converting odoo11 to Odoo15

Odoo15 error while converting odoo11 to Odoo15 Question: I want to covert a module from odoo11 to odoo15. But there is an error with ast.py . I’m using python 3.7 This is the error. File "/usr/local/lib/python3.7/ast.py", line 55, in _convert_num raise ValueError(‘malformed node or string: ‘ + repr(node)) ValueError: malformed node or string: <_ast.Subscript object …

Total answers: 2