[stock_landed_costs] button_validate method should not create a Journal Entry as long as there are no entry lines

Bug #1312910 reported by hbto [Vauxoo] http://www.vauxoo.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

[stock_landed_costs]
button_validate method should not create a Journal Entry as long as there are no entry lines

Even it should not return True and write the state to done as there are no entry lines at all

self.write(cr, uid, cost.id, {'state': 'done', 'account_move_id': move_id}, context=context)

Best Regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.