Skip to content

Commit

Permalink
Merge pull request #286 from adhoc-dev/fix_in_sale_order_types
Browse files Browse the repository at this point in the history
ADD sequence to sale.order.type
  • Loading branch information
pedrobaeza committed Apr 2, 2016
2 parents d2d8c96 + 065df85 commit 9dd5e20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sale_order_type/models/sale_order_type.py
Expand Up @@ -9,6 +9,7 @@
class SaleOrderTypology(models.Model):
_name = 'sale.order.type'
_description = 'Type of sale order'
_order = 'sequence'

@api.model
def _get_domain_sequence_id(self):
Expand Down Expand Up @@ -65,3 +66,6 @@ def default_invoice_state(self):
invoice_state = fields.Selection(
selection='_get_selection_invoice_state', string='Invoice Control',
required=True, default=default_invoice_state)
sequence = fields.Integer(
string='Sequence',
default=0)
1 change: 1 addition & 0 deletions sale_order_type/views/sale_order_type_view.xml
Expand Up @@ -42,6 +42,7 @@
<field name="model">sale.order.type</field>
<field name="arch" type="xml">
<tree string="Type">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="warehouse_id"/>
<field name="sequence_id"/>
Expand Down

0 comments on commit 9dd5e20

Please sign in to comment.