Skip to content

Commit

Permalink
Merge PR #520 into 9.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Sep 26, 2019
2 parents fcd6e28 + 0780a72 commit de70634
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 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 asc"

@api.model
def _get_domain_sequence_id(self):
Expand Down Expand Up @@ -44,3 +45,7 @@ def default_picking_policy(self):
payment_term_id = fields.Many2one('account.payment.term', 'Payment Term')
pricelist_id = fields.Many2one('product.pricelist', 'Pricelist')
incoterm_id = fields.Many2one('stock.incoterms', 'Incoterm')
sequence = fields.Integer(
'Sequence',
required=True,
default=10)
1 change: 1 addition & 0 deletions sale_order_type/views/sale_order_type_view.xml
Expand Up @@ -43,6 +43,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 de70634

Please sign in to comment.