[IMP] order invoice per date, solve issue with multi journal
This commit is contained in:
@@ -29,6 +29,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class AccountInvoice(models.Model):
|
class AccountInvoice(models.Model):
|
||||||
_inherit = 'account.invoice'
|
_inherit = 'account.invoice'
|
||||||
|
_order = "date_invoice desc, number desc, id desc"
|
||||||
|
|
||||||
origin = fields.Char(track_visibility='onchange')
|
origin = fields.Char(track_visibility='onchange')
|
||||||
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
||||||
|
|||||||
Reference in New Issue
Block a user