mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 22:12:05 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
/** @odoo-module alias=sale_expense.sale_order_many2one **/
|
||||
|
||||
import { Many2OneField } from '@web/views/fields/many2one/many2one_field';
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
export class OrderField extends Many2OneField {
|
||||
setup() {
|
||||
super.setup();
|
||||
}
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
get Many2XAutocompleteProps() {
|
||||
// hide the search more option from the dropdown menu
|
||||
return {
|
||||
...super.Many2XAutocompleteProps,
|
||||
noSearchMore: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
registry.category('fields').add('sale_order_many2one', OrderField)
|
||||
registry.add('sale_order_many2one', OrderField);
|
||||
Loading…
Add table
Add a link
Reference in a new issue