Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo 9 : How to Enable Inter-Company?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
intercompanyodoo9.0
3 Respostes
8626 Vistes
Avatar
Rizky Prihanto

Recently I was enabling the "Multi Company" mode on Odoo 9 (cloned from 9.0 branch). And I already create three companies in the Settings.

But, when I activated the "Inter Company" from Settings while at the same time I ran logging in console, I found this error messages (see below).

I don't know what dependencies needed to successfully enable that nice-to-explore features.

Any clue? Thanks.


2015-10-30 19:01:39,288 5763 INFO mmgroup openerp.modules.module: module inter_company_rules: creating or updating database tables
2015-10-30 19:01:39,758 5763 INFO mmgroup openerp.modules.loading: loading inter_company_rules/views/inter_company_so_po_view.xml
2015-10-30 19:01:39,780 5763 INFO mmgroup openerp.addons.base.ir.ir_ui_view: View inheritance may not use attribute 'string' as a selector.
Error context:
View `res.company.form.inherit`
[view_id: 664, xml_id: n/a, model: res.company, parent_id: 110]
2015-10-30 19:01:39,783 5763 ERROR mmgroup openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 599, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 636, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 308, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 887, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 465, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 975, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 963, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/res/res_config.py", line 605, in execute
action = self._install_modules(cr, uid, to_install, context=context)
File "/opt/odoo/openerp/addons/base/res/res_config.py", line 39, in _install_modules
result = ir_module.button_immediate_install(cr, uid, to_install_ids, context=context)
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/opt/odoo/openerp/modules/registry.py", line 385, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/openerp/modules/loading.py", line 337, in load_modules
loaded_modules, update_module)
File "/opt/odoo/openerp/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/openerp/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/openerp/modules/loading.py", line 98, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/openerp/tools/convert.py", line 852, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/openerp/tools/convert.py", line 939, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/opt/odoo/openerp/tools/convert.py", line 802, in parse
self.parse(rec, mode)
File "/opt/odoo/openerp/tools/convert.py", line 805, in parse
self._tags[rec.tag](self.cr, rec, de, mode=mode)
File "/opt/odoo/openerp/tools/convert.py", line 709, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 1107, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 351, in create
context=context)
File "/opt/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 327, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4125, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/openerp/api.py", line 230, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 463, in new_api
result = method(self._model, cr, uid, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4316, in _create
recs._validate_fields(vals)
File "/opt/odoo/openerp/api.py", line 230, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 1267, in _validate_fields
raise ValidationError('\n'.join(errors))
ParseError: "Invalid view definition
Error details:
View inheritance may not use attribute 'string' as a selector.
Error context:
View `res.company.form.inherit`
[view_id: 664, xml_id: n/a, model: res.company, parent_id: 110]
None" while parsing /opt/odoo/.local/share/Odoo/addons/9.0/inter_company_rules/views/inter_company_so_po_view.xml:5, near
<record model="ir.ui.view" id="view_company_inter_change_inherit_form">
<field name="name">res.company.form.inherit</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="model">res.company</field>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@string='Configuration']" position="inside">
<group string="Inter-Company Rules">
<field name="so_from_po" attrs="{'invisible': [('auto_generate_invoices', '=', True)]}"/>
<field name="po_from_so" attrs="{'invisible': [('auto_generate_invoices', '=', True)]}"/>
<field name="warehouse_id" attrs="{'required': [('po_from_so', '=', True)], 'invisible': [('po_from_so', '=', False)]}" domain="[('company_id', '=', active_id)]"/>
<field name="auto_validation" attrs="{'invisible': [('auto_generate_invoices', '=', True)]}"/>
<field name="auto_generate_invoices" attrs="{'invisible': ['|', ('so_from_po', '=', True), ('po_from_so', '=', True)]}"/>
<field name="intercompany_user_id" colspan="2" attrs="{'required': ['|','|',('so_from_po', '=', True), ('po_from_so', '=', True), ('auto_generate_invoices', '=', True)]}"/>
</group>
</xpath>
</field>
</record>
2015-10-30 19:01:39,787 5763 INFO mmgroup werkzeug: 127.0.0.1 - - [30/Oct/2015 19:01:39] "POST /web/dataset/call_button HTTP/1.0" 200 -


0
Avatar
Descartar
Avatar
Ray Carnes
Best Answer

You need to update your version of 9.0.  

The repository for Odoo 9.0 Enterprise (inter_company_so_po_view.xml) shows:

<xpath expr="//notebook" position="inside">

The code looks like it hasn't changed since August 28th.  When did you get your version of 9.0?


Your version has this (causing the problem):

<xpath expr="//notebook/page[@string='Configuration']" position="inside">
0
Avatar
Descartar
Rizky Prihanto
Autor

I was git pull-ing the 9.0 branch just an hour ago, from https://github.com/odoo/odoo And I tried your suggestion above, and yeah... now the "Inter Company Module" was successfully loaded. Thanks so much.

Avatar
DIDIER LACOMBE
Best Answer

Hello


have you really been successful with inter-co V9 ??


Thanks for answering


0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Is there any module for manage test cases in odoo?
odoo9.0
Avatar
Avatar
1
de des. 24
6949
How to hide duplicate button inside form view Odoo 9
odoo9.0
Avatar
Avatar
Avatar
Avatar
3
d’ag. 24
7715
how to know the odoo master password? Solved
odoo9.0
Avatar
Avatar
Avatar
Avatar
Avatar
4
de jul. 24
42826
Default value in form view Solved
odoo9.0
Avatar
Avatar
Avatar
Avatar
5
d’abr. 23
101162
odoo 9 theme installed in addson are missing from app Solved
odoo9.0
Avatar
Avatar
Avatar
3
de nov. 22
5228
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now