odoomates / odooapps

247 stars 339 forks source link

Error in Installation of Odoo Accounting 16 : Field `analytic_distribution_stored_char` does not exist #85

Open trgazdar opened 2 years ago

trgazdar commented 2 years ago

File "D:\odoo-16.0\odoo\tools\convert.py", line 706, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback odoo.tools.convert.ParseError: while parsing file:/d:/odoo-16.0/custom/om_account_asset/views/account_move_views.xml:4 Error while validating view near:

Field `analytic_distribution_stored_char` does not exist View error context: {'file': 'd:\\odoo-16.0\\custom\\om_account_asset\\views\\account_move_views.xml', 'line': 1, 'name': 'account.move.supplier.form', 'view': ir.ui.view(2766,), 'view.model': 'account.move', 'view.parent': ir.ui.view(876,), 'xmlid': 'view_invoice_asset_category'}
odoomates commented 2 years ago

Hi, We are not able to reproduce this issue. Are you still getting this ?

arijSH commented 1 year ago

Yes, the same error is still occurring.

Error raised upon trying to install the accounting module.

q

Steps To Reproduce: Create new database Try to directly install the accounting module

The issue is resolved by adding the following to model analytic.mixin (community\addons\analytic\models\analytic_mixin.py)

analytic_distribution_stored_char = fields.Char(
   compute="_compute_analytic_distribution_stored_char", store=True, copy=True)

def _compute_analytic_distribution_stored_char(self):
   pass