← Back to team overview

credativ team mailing list archive

[Bug 1227929] [NEW] [7.0] Incorrect behaviour for account.invoice.line migration (note & name)

 

Public bug reported:

Hi,

I think that there is a little bug in account module. In the merging of
'name' and 'note' field in account.invoice.line model.

Reproduce the bug.

6.1 : 
row #1 : {name : 'my name' ; note : 'my note'}
row #2 : {name : 'my name' ; note : None}

Expected datas after migration in 7.0 : 
row #1 : {name : 'my name' + '\n' + 'my note'}
row #2 : {name : 'my name'}

Observed datas : 
row #1 : {name : 'my name' + '\n' + 'my note'}
row #2 : {name : None}

Observed log : 
WARNING : Table 'account_invoice_line': unable to set a NOT NULL constraint on column 'name' !

** Affects: openupgrade-addons
     Importance: Medium
         Status: New

** Also affects: openupgrade-addons/7.0
   Importance: Medium
       Status: New

** No longer affects: openupgrade-addons/7.0

-- 
You received this bug notification because you are a member of
OpenUpgrade Committers, which is subscribed to OpenUpgrade Addons.
https://bugs.launchpad.net/bugs/1227929

Title:
  [7.0] Incorrect behaviour for account.invoice.line migration (note &
  name)

Status in OpenUpgrade Addons:
  New

Bug description:
  Hi,

  I think that there is a little bug in account module. In the merging
  of 'name' and 'note' field in account.invoice.line model.

  Reproduce the bug.

  6.1 : 
  row #1 : {name : 'my name' ; note : 'my note'}
  row #2 : {name : 'my name' ; note : None}

  Expected datas after migration in 7.0 : 
  row #1 : {name : 'my name' + '\n' + 'my note'}
  row #2 : {name : 'my name'}

  Observed datas : 
  row #1 : {name : 'my name' + '\n' + 'my note'}
  row #2 : {name : None}

  Observed log : 
  WARNING : Table 'account_invoice_line': unable to set a NOT NULL constraint on column 'name' !

To manage notifications about this bug go to:
https://bugs.launchpad.net/openupgrade-addons/+bug/1227929/+subscriptions


Follow ups

References