Skip to content

Commit

Permalink
[REM] stock_picking_invoicing: Feature already in core
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Mar 23, 2017
1 parent 006271e commit bd8d4a8
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 868 deletions.
16 changes: 8 additions & 8 deletions account_invoice_merge/wizard/invoice_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _dirty_check(self):
if self.env.context.get('active_model', '') == 'account.invoice':
ids = self.env.context['active_ids']
if len(ids) < 2:
raise exceptions.Warning(
raise exceptions.UserError(
_('Please select multiple invoice to merge in the list '
'view.'))
inv_obj = self.env['account.invoice']
Expand All @@ -28,26 +28,26 @@ def _dirty_check(self):
'partner_id', 'currency_id', 'journal_id'])
for d in invs:
if d['state'] != 'draft':
raise exceptions.Warning(
raise exceptions.UserError(
_('At least one of the selected invoices is %s!') %
d['state'])
if d['account_id'] != invs[0]['account_id']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices use the same account!'))
if d['company_id'] != invs[0]['company_id']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices are at the same company!'))
if d['partner_id'] != invs[0]['partner_id']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices are for the same partner!'))
if d['type'] != invs[0]['type']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices are of the same type!'))
if d['currency_id'] != invs[0]['currency_id']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices are at the same currency!'))
if d['journal_id'] != invs[0]['journal_id']:
raise exceptions.Warning(
raise exceptions.UserError(
_('Not all invoices are at the same journal!'))
return {}

Expand Down
42 changes: 0 additions & 42 deletions stock_picking_invoicing/README.rst

This file was deleted.

21 changes: 0 additions & 21 deletions stock_picking_invoicing/__init__.py

This file was deleted.

33 changes: 0 additions & 33 deletions stock_picking_invoicing/__openerp__.py

This file was deleted.

45 changes: 0 additions & 45 deletions stock_picking_invoicing/i18n/ca.po

This file was deleted.

46 changes: 0 additions & 46 deletions stock_picking_invoicing/i18n/de.po

This file was deleted.

47 changes: 0 additions & 47 deletions stock_picking_invoicing/i18n/es.po

This file was deleted.

45 changes: 0 additions & 45 deletions stock_picking_invoicing/i18n/es_MX.po

This file was deleted.

45 changes: 0 additions & 45 deletions stock_picking_invoicing/i18n/fi.po

This file was deleted.

0 comments on commit bd8d4a8

Please sign in to comment.