This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Notifiable; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Auth\Passwords\CanResetPassword; | |
use Laravel\Lumen\Auth\Authorizable; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
yarn install | |
yarn build | |
git checkout --orphan latest | |
mkdir release_tmp | |
mv packages/ui/dist release_tmp/dist | |
mv packages/ui/package.json release_tmp | |
rm -rf packages | |
rm `find . -type f | grep -Ev '.git|release_tmp|node_modules'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SaleOrder(models.Model): | |
_inherit = "sale.order" | |
@api.model_create_multi | |
def create_from_po(self, vals_list): | |
partner = self.env['res.partner'].search([('name', 'ilike', self.env.user.name)], limit=1) | |
if not partner: | |
raise ValidationError(_('Partner database is not configured properly')) | |
product_codes = set() | |
uom_names = set() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Django==4.0.5 | |
djangorestframework==3.13.1 | |
Pillow==9.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scrapy | |
class DienmayxanhSpider(scrapy.Spider): | |
name = "dienmayxanh" | |
def start_requests(self): | |
urls = [ | |
"https://www.dienmayxanh.com", | |
] |
OlderNewer